743 questions
0
votes
2
answers
75
views
Building and running Micrometer with Java 25
We're trying to verify that Micrometer runs on JDK 25, but when I try to build it (Mac OS, OpenJDK Runtime Environment Temurin-25.0.1+8), I get
BUG! exception in phase 'semantic analysis' in source ...
0
votes
1
answer
114
views
How to collect GC metrics for GraalVM native image in Spring Boot?
I wonder if it's possible to enable metrics for GC using GraalVM native-image in Spring Boot.
When starting the container, I get:
GC notifications will not be available because no
...
3
votes
1
answer
113
views
Prometheus/Grafana: increase() spikes during Kubernetes deploys with multi-pod counters (dynamic labels)
Context
Java service in Kubernetes, multiple pods.
Metrics exposed via Micrometer + Prometheus.
Grafana dashboards use increase(...) and sum by (...) to count events in a time range.
Counters are ...
0
votes
0
answers
103
views
Failed to send metrics to datadog: Payload too big
I'm using Micrometer 1.12.13 in a Spring Boot 3 project, with spring boot auto configured DatadogMeterRegistry to export metrics. My code looks like this:
MeterRegistry.counter("metric-name",...
0
votes
1
answer
46
views
Counter type/label not getting displayed in prometheus web console [closed]
I use micrometer + spring boot + prometheus to create, register and monitor the counters from the application, apart from counters we have timer and gauge. counter created inside application which has ...
0
votes
1
answer
115
views
How to add request header values as attribute to a Span?
The OTLP agent has a feature where you can add the values of request headers to a span as an attribute automatically through some configuration. How would you achieve this when using the tracing ...
1
vote
0
answers
54
views
Most appropriate PromQL function and corresponding panel type on grafana for methods with @Timed
I am using @Timed from micrometer-core on a few methods to capture the response time of methods in a very simple way like this - @Timed(percentiles = {0.50, 0.95, 0.99, 0.999})
It is a spring-boot ...
1
vote
1
answer
66
views
How can I get the start and stop times from an Observation which was run?
I have full control over an observation in my code:
Observation observation = Observation.createNotStarted("something", observationRegistry)
observation.observe(() -> doSomething(...
0
votes
1
answer
188
views
Propagate new micrometer tracing context to Reactor Mono
Processing the message from SQS - which has initial traceId in the message and wanted to use the same traceId while processing the message, but unable to reset the traceId in the tracing context. we ...
-1
votes
1
answer
141
views
Spotbugs + Java: EI_EXPOSE_REP2 may expose internal representation by storing an externally mutable object into MyService.observationRegistry [closed]
Small question regarding a Spotbugs finding I am having a hard time fixing.
In this super simple class:
import io.micrometer.observation.ObservationRegistry;
@Service
public final class MyService {
...
1
vote
1
answer
82
views
Get both metrics and traces in Mongodb in Spring
I followed the Spring's documentation to see traces in Mongodb by adding the bean
@Bean
MongoClientSettingsBuilderCustomizer mongoMetricsSynchronousContextProvider(ObservationRegistry registry) {
...
2
votes
2
answers
254
views
Spring boot 3.4+ webclient reactive depracated metrics filter alternative
I have spring boot 3.4+ reactive webflux app
we have been using below config to get prometheus metrics (Spring Boot 2.x)
private ExchangeFilterFunction metricsWebClientFilterFunction(String name) {...
0
votes
1
answer
58
views
How to propagate micrometer traces to Ldap server using unboundId sdk?
Based on
official spring boot documentation
Propagating Traces
To automatically propagate traces over the network, use the auto-configured RestTemplateBuilder,
RestClient.Builder or WebClient.Builder ...
0
votes
1
answer
111
views
How to put argument values to traces of method annotated with @Observed
I have a method annotated with @Observed annotation:
@Observed(
name = "foo",
contextualName = "foo",
)
fun foo(arg1: String, arg2: Integer){...}
When I go to Zipkin I see ...
0
votes
0
answers
28
views
How to set micrometer prometheus response content
I use latest quarkus-micrometer-registry-prometheus library 1.14.4 expose the default metrics. But our company service collect metrics by text/plain context. Collector send request without any header, ...
0
votes
0
answers
203
views
Is it possible to add custom label to feign-micrometer?
I have many interfaces with @FeignClient annotations, and I provide name, url and config class parameters inside annotation.
I got this libraries in my project:
implementation("io.github....
1
vote
1
answer
318
views
Sending custom metrics to Elasticsearch in Spring Boot
I am integrating my Spring Boot application to Kibana and followed these steps:
JDK: 17
step-1: Adding elastic-apm-agent
added elastic-apm-agent.jar(1.51.1) into dockerfile. And I see the APM on ...
0
votes
0
answers
114
views
Spring boot 3 with micrometer 1.4+, how to skip tracing but continue to report metrics
While upgrading to Spring boot 3.4 I'm struggling to figure out how to "only" skip tracing for certain uris/paths while continuing to report metrics.
For some endpoints like actuators and ...
0
votes
1
answer
327
views
Micrometer cannot send metrics of spring applications to influxdb
I'm triing to add monitoring to my Spring application. A added dependencies
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-...
0
votes
0
answers
61
views
How to rename http metric in OTEL JS
I have many java applications and they have been instrumented with Micrometer(SpringBoot natively support it). They send metric to OTLP Mimir.
I have a NodeJS application which I want to instrument ...
1
vote
1
answer
129
views
Histogram metric with labels/tags
I have the following Java snippet that I am using to publish histogram metrics
public class MessageConsumer {
private MeterRegistry meterRegistry;
private NormalRandomGenerator ...
0
votes
0
answers
110
views
Intermittent Spring Boot micrometer failed to send metrics to elastic: premature EOF after Elastic 8.16 upgrade
I am using spring boot 3.3.6, looks like it is using micrometer-elastic-registry:1.13.6. I didn't see this errors until I upgrade Elastic from 8.11.4 to 8.16. There were no changes to anything else so ...
0
votes
0
answers
187
views
Correlate traces for spans sent in parallel for Springboot micrometer
I have a Springboot 3.4 web service with micrometer
The endpoint is straightforward, the controller accepts a list of messages to be sent to an external rest API I have no control over. The processing ...
2
votes
0
answers
167
views
Propagate/continue the traces from a client sending traces via custom headers in Springboot 3.4
We have a Springboot 3.4 web service with micrometer, serving traffic for two clients.
Client one, we are lucky, is also using Springboot 3+. Like magic, Springboot is able to "propagate", &...
0
votes
1
answer
95
views
Configure Wildfly micrometer to set name of application
We are using Wildfly 33 (jboss 7.1.0) and we have configured it to use micrometer. It now sends the metrics via an Open Telemetry collector to a prometheus instance. This works great but the problem ...