To obtain the recorded metric from Micrometer/Prometheus, you can use the Prometheus endpoint to access the data. Here are the steps to follow:
Start the Prometheus server and configure Micrometer to publish its metrics to it.
Access the Prometheus user interface by opening a web browser and navigating to "http://localhost:9090" (or the URL where Prometheus is running).
In the query box, enter the name of the metric you want to retrieve, for example:
my_application_requests_total
Click the "Execute" button. This will show the metric values for the selected time range.
To view the recorded metric data, click the "Graph" tab to display a graph of the metric over time. You can adjust the time range and resolution using the controls below the graph.
To download the metric data, click the "Download" button and select a format (such as CSV or JSON). This will generate a file containing the metric values for the selected time range.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-10 10:24:21 +0000
Seen: 19 times
Last updated: May 10 '23
How can one open the "What's New" window in IntelliJ?
What is the process to sort the first 50 rows?
If I click on an item, it doesn't seem to be reacting.
How can key and value be saved in admin setting using Opencart 3?
How can a new tab be opened in Windows Terminal with the same environment as the current one?
When I click on "Install Requirements" in PyCharm, why is nothing occurring?
How can padding be added to an HTML email signature in Outlook?
Is it possible for you to assist me with understanding the time complexity?