micrometer Questions

8

I want to show some metrics using micrometer prometheus in combination with the spring-boot-actuator. My project is totally based on spring-boot and has the actuator feature enabled and mapped on t...

4

Solved

New Spring Boot added exemplars support: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#broader-exemplar-support-in-micrometer-112 After upgrading to Spring Boot ...

3

I have a SpringBoot 2.2.4.RELEASE with a RestRepostory like import io.micrometer.core.instrument.Gauge; import io.micrometer.core.instrument.MeterRegistry; import org.springframework.web.bind.anno...
Trumpetweed asked 13/5, 2020 at 9:39

2

What is the right way to create an aspect around Kotlin suspended function? From my observation, Micrometer's @Timed aspect does work with them, but shows incorrect result - looks like it measures...
Retro asked 29/12, 2018 at 22:11

2

Solved

After migrating spring boot from version 2.x to 3 we miss traceId and spanId in our logs. We removed all sleuth dependencies and added implementation 'io.micrometer:micrometer-core' implementation ...
Polite asked 19/1, 2023 at 9:58

3

Recently we upgraded spring-boot version to 2.7.2 and spring framework version to 5.3.22. Since then we are seeing this error in one of the apps "required a bean of type 'io.micrometer.core.in...
Fingering asked 24/8, 2022 at 11:51

3

I'm fresh new to Micrometer/Prometheus world. I need to use it to get some metrics for existing spring application. No spring boot just plain spring java. And I'm having a lot of trouble register...
Malefaction asked 28/3, 2019 at 10:52

2

Solved

I am writing a SpringBoot 3 application which needs to report metrics inside log files too. I registered an instance of io.micrometer.core.instrument.logging.LoggingMeterRegistry by: @Bean LoggingM...
Maulstick asked 11/8, 2023 at 14:15

2

Solved

I am trying to monitor logged in users, i am getting the logged in user info by calling api, this is the code i have used, public class MonitorService { private InfoCollectionService infoService;...
Scratches asked 15/6, 2018 at 16:24

4

Solved

I want to display traceId in logs for each request in Spring Cloud Gateway. However, traceId and spanId are just empty. Log config is like below: logging: pattern: level: "%5p [TRACE_ID: %X{t...
Canzona asked 24/1, 2023 at 13:0

4

With OpenTelemetry trying to become the de-facto standard for Observability of applications/services, where does Micrometer fit in? Micrometer website claims that it is SLF4J for metrics, but does ...
Auricula asked 26/6, 2020 at 20:19

3

I have a springboot Kotlin web service that uses Actuator (spring-boot-starter-actuator) and micrometer (micrometer-registry-prometheus) to expose metrics to a prometheus scraper. To monitor the s...

4

I am trying to configure the LoggingMeterRegistry to log metrics for my Spring Boot 2.1.6 application. I want the metrics to be logged every hour. In my application.yml, I've the following configu...
Volumed asked 26/8, 2019 at 18:50

6

Solved

I am trying to generate Prometheus metrics with using Micrometer.io with Spring Boot 2.0.0.RELEASE. When I am trying to expose the size of a List as Gauge, it keeps displaying NaN. In the document...

3

If I understand the answer to this question correctly, Spring Cloud Sleuth will be replaced by Micormeter Tracing with Spring Boot 3. My experiments with Spring Boot 3 milestone 3 to implement trac...
Ginni asked 27/5, 2022 at 13:40

2

Solved

Is it possible to configure micrometer to send traces to otel container in spring? I easily configured sending spans to Zipkin and Wavefront: https://docs.spring.io/spring-boot/docs/3.1.0-SNAPSHOT/...
Strengthen asked 31/1, 2023 at 6:13

1

I have below code which handle requests from other apps which pass the traceId through Traceparent header. I expect it will hydrate the parent traceId from the request, and in zipkin dashboard I sh...

3

Solved

I am trying to publish number of events my App is processing. This is the code I have at the receiving end: public void process(List<String> batch) { logger.info ("Processing batch of size ...
Propylene asked 12/3, 2020 at 9:59

2

Solved

After upgrading from spring-boot-parent version 2.5.5 to 2.6.0, I started seeing these error messages spamming the logs: [INFO] [stdout] 2022-01-11 13:40:01.157 WARN 76859 --- [ udp-epoll-2] i.m.s....
Attorn asked 11/1, 2022 at 12:54

2

Solved

I tried to obtains these measurements from prometheus: increase(http_server_requests_seconds_count{uri="myURI"}[10s]) increase(http_server_requests_seconds_count{uri="myURI"}[3...
Weirick asked 24/1, 2022 at 14:52

1

Solved

After upgrading to Spring Boot 3 I've had to update the tracing/correlation configuration to switch from Spring Cloud Sleuth to the new Micrometer Tracing library. At this point I can see traceId/s...

1

Solved

What is the explanation of this metric: system_load_average_1m This is the help text, but I don't really understand it. HELP system_load_average_1m The sum of the number of runnable entities queue...
Grigson asked 25/11, 2022 at 10:54

1

Problem I want to monitor the usage of a thread pool from a specific Scheduler (BoundedElasticScheduler). I want to see if the thread pool capacity fits or if it gets to its limit quite often and i...
Valise asked 14/11, 2022 at 11:3

2

I have created a Micrometer class where counters are created and incremented. How to write unit test cases for the public method and avoid registering or sending the events to micrometer. public cl...
Earwax asked 20/10, 2022 at 16:54

2

Solved

Newbie here, trying to learn more about the micrometer. I'm currently exploring ways on how to accomplish this: I'm using Spring boot 2 with actuator and micrometer enabled. Consider the following...
Defer asked 4/1, 2020 at 15:27

© 2022 - 2024 — McMap. All rights reserved.