micrometer Questions
3
I need to measure method-metrics using micrometer @Timed annotation. As it doesn't work on arbitrary methods; i added the configuration of @TimedAspect explicitly in my spring config. Have referred...
Biquadrate asked 30/5, 2019 at 11:14
3
I am looking for a way to export spring boot metrics to file in Spring Boot 2.
In Spring Boot 1.5.10, we used a Custom MetricsExporter class which implements MetricWriter and overrides set and incr...
Modal asked 5/5, 2018 at 19:30
2
Solved
I have a Spring boot app throwing out open metric stats using micrometer.
For each of my HTTP endpoints, I can see the following metric which I believe tracks the number of requests for the given e...
Dump asked 19/2, 2021 at 17:45
3
Solved
I have a question regarding PromQL and its query functions rate() and how to use it properly. In my application, I have a thread running, and I use Micrometer's Timer to monitor the thread's runtim...
Neogothic asked 21/12, 2020 at 21:41
3
Solved
I'm trying to programmatically read the Meters as follows:
Get registry:
MeterRegistry registry = Metrics.globalRegistry.getRegistries().iterator().next();
Read measurement:
double systemCp...
Wroth asked 4/7, 2019 at 13:39
2
Solved
I am trying to integrate a simple Spring Boot Application with New Relic using Micrometer.
Here are the configurations details:-
application.properties
management.endpoints.web.exposure.include=*
m...
Hoecake asked 24/10, 2021 at 7:45
1
We are seeing some of our services (Java <> SpringBoot) getting OOM. On checking heap dump, we found the micrometer library is taking 113MB (around 54% of total heap memory).
io.micrometer.st...
Digraph asked 17/9, 2021 at 2:51
2
Solved
I am currently trying to migrate our prometheus lib to spring boot 2.0.3.RELEASE.
We use a custom path for prometheus and so far we use a work around to ensure this. As there is the possibility for...
Timber asked 5/7, 2018 at 15:36
3
Solved
I am new to using spring-boot metrics and started with micrometer. I couldn't find good examples(the fact that its new) for performing timer Metrics in my spring-boot app. I am using spring-boot-st...
Lehmann asked 21/8, 2018 at 16:15
4
Solved
Recently I switched to Spring Boot 2 with Micrometer. As I got these shiny new metrics, I talked with our DevOps guys and we started exporting them to Telegraf.
To distinguish between different app...
Ciccia asked 27/7, 2018 at 7:27
1
I am using spring boot 2.3.2. With help of actuator, publishing the application metrics to metrics console. I would like to know what is the difference between system.cpu.usage and process.cpu.usag...
Beggarly asked 25/11, 2020 at 15:26
1
Solved
The OpenApi documentation says that it supports micrometer. How does the integration works? I could not find anything except this little documentation.
I have a FeignClient in a spring boot applica...
Prebend asked 14/1, 2021 at 13:33
4
Solved
I have api endpoint : /user/{tenant}/create
I am using spring boot 2 with micrometer for metrics.
By default @Timer annotation for spring boot 2 endpoint includes the following tags: exception,me...
Patrickpatrilateral asked 19/10, 2018 at 13:33
2
Solved
I'm new to metrics in general and especially Micrometer, so this might be a dumb question:
Micrometer describes itself on the home page as a "facade" "without vendor lock-in", "think SLF4J, but fo...
Ace asked 15/1, 2020 at 10:17
1
I want to add graphite metrics through micrometer to my spring boot app.
I added this to my pom
<!-- https://mvnrepository.com/artifact/io.micrometer/micrometer-registry-graphite -->
<de...
Hirschfeld asked 12/10, 2020 at 18:40
2
Solved
I am using the new MicroMeter metrics in Spring Boot 2 version 2.0.0-RELEASE.
When publishing metrics over the /actuator/metrics/{metric.name} endpoint, i get the following:
For a DistributionSum...
Chevet asked 8/3, 2018 at 5:48
7
Solved
I'd like to use Micrometer to record the execution time of an async method when it eventually happens. Is there a recommended way to do this?
Example: Kafka Replying Template. I want to record the...
Illusionary asked 16/3, 2018 at 0:35
1
In micrometer, we can create a new gauge doing something like
myMeterRegistry.gauge("my_metric", 69);
See the code here https://github.com/micrometer-metrics/micrometer/blob/master/micrometer-co...
Aquiculture asked 6/3, 2020 at 15:25
1
Solved
In Prometheus I've got 14 seconds for http_server_requests_seconds_max.
http_server_requests_seconds_max{exception="None",method="GET",outcome="SUCCESS",status="200",uri="/v1/**",} 14.3
Does th...
Greerson asked 13/2, 2020 at 11:14
1
Solved
I use MicroMeter gauges in a Spring Boot 2 application to track statuses of objects. On status change, the statusArrived() method is called. This function should update the gauge related to that ob...
Astri asked 11/2, 2020 at 14:48
1
I have a springboot 2 application, and I want to display metrics in AWS Cloudwatch.
I have included micrometer cloudwatch dependency in pom.
Here setting is documented for various metric systems ...
Hardnett asked 24/5, 2018 at 8:49
1
Solved
When running a native-image of a Micronaut application retrieving Prometheus metrics fails because it cannot get jvm metrics.
Of course native-image pre-compiles the application and includes only ...
Electrotype asked 30/8, 2019 at 9:9
2
Solved
I'm transforming a Spring Boot application from Spring Boot 1 (with the Prometheus Simpleclient) to Spring Boot 2 (which uses Micrometer).
I'm stumped at transforming the labels we have with Sprin...
Hayes asked 8/3, 2018 at 9:50
1
Solved
I have a simple spring boot 2.1.7.RELEASE project using micrometer Elasticsearch registry (using Elasticsearch 7.2.0). The project is available here on github. It has only two classes and looks lik...
Bust asked 9/8, 2019 at 9:47
1
Solved
I wrote a Spring Boot app and I'd like to expose custom metrics to Prometheus with Micrometer. Here's a code snippet where I'm incrementing a counter (which works) and attempts to set a couple of g...
Inexpedient asked 29/7, 2019 at 20:17
© 2022 - 2025 — McMap. All rights reserved.