738 questions
0
votes
0
answers
73
views
Micrometer Counter backed by DB aggregate causes Prometheus rate() to exceed 100% and spikes on app restart
We have a Jakarta app that exposes Prometheus metrics about OIDC session. The success rate metric occasionally spikes above 100% (observed 133%, 300%) in production.
The metric:
(
sum by(stage)(rate(...
1
vote
1
answer
449
views
Spring Boot 4.0.1: OpenTelemetry trying to connect to collector despite excludinq OTLP exporter
After migrating from Spring Boot 3.5.6 to 4.0.1, I switched from Micrometer tracing tc OpenTelemetry (as Micrometer autoconfiguration is no longer supported). I don't need to export traces to a ...
Advice
3
votes
2
replies
165
views
How can I control the shutdown order of Spring-managed beans that I don’t create myself?
I have a Spring Boot application running in Kubernetes. I’m trying to implement a graceful shutdown flow using a readiness probe:
App receives SIGTERM.
App should start returning 503 from /health so ...
0
votes
2
answers
515
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 ...
1
vote
1
answer
135
views
Thousand micrometer-kafka-metrics Threads in Spring Cloud Stream
We are running a Spring Cloud Stream (SCS) application (Spring Boot 3.5.6, SCS 4.3.0, Micrometer 1.15.4) with a Kafka Binder.
It is a fairly huge system
reading from 3 topics with 48 partitions
...
0
votes
1
answer
198
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
...
0
votes
1
answer
94
views
Spring Boot Actuator 'http.server.requests' metric MIN time
The actuator endpoint /actuator/metrics/http.server.requests can exhibit this informations:
{
"name": "http.server.requests",
"baseUnit": "seconds",
"...
3
votes
1
answer
175
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
41
views
How to remove meters registered with MeterBinder?
I'm using an implementation of io.micrometer.core.instrument.binder.MeterBinder to bind a particular set of meters in my MeterRegistry. However, the objects that I'm metering can come and go during ...
0
votes
0
answers
215
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
2
answers
529
views
Otel-collector not sending traces to jaeger
I have a few Java applications that have working otel tracing implementations. The details of how this works is largely irrelevant (implemented using micrometer and spring-boot-actuator) but the point ...
0
votes
1
answer
61
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 ...
-2
votes
1
answer
549
views
How to send metrics to Prometheus using Spring Boot 3.5, Micrometer, using Pushgateway, i.e. without scraping
I have a Spring Boot application that needs to send metrics to Prometheus, but I can't use the traditional scraping approach because my application runs in an environment where Prometheus can't reach ...
0
votes
1
answer
154
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 ...
2
votes
0
answers
126
views
Camel Quarkus Micrometer metrics cannot be viewed in Dynatrace
I have a Camel Quarkus application, and I can successfully view the Camel metrics at http://localhost:8080/metrics.
I’m using the Prometheus extension to expose the /metrics endpoint, and Micrometer ...