Questions tagged [spring-micrometer]

Micrometer is the metrics collection facility included in Spring Boot 2’s Actuator. It has also been backported to Spring Boot 1.5, 1.4, and 1.3 with the addition of another dependency.

About

Micrometer is a dimensional-first metrics collection facade whose aim is to allow you to time, count, and gauge your code with a vendor neutral API. Through classpath and configuration, you may select one or several monitoring systems to export your metrics data to. Think of it like SLF4J, but for metrics!

Links

357 questions
1
vote
1 answer

How can I generate Webclient Histogram Metrics

I want to capture metrics (number of calls, 95th percentile) about calls made from my backend service to other third party services. I am using WebClient to make these http calls. I couldn't find a specific property to enable WebClient Histogram…
1
vote
1 answer

Prometheus gives empty query result although individual component metrics are available

In a Grafana dashboard a custom metric is shown. This metric is received via Prometheus. The metric is built via Spring Boot Actuator / Micrometer. In about half of the cases the Prometheus query of the metric gives an empty result. In the other…
tm1701
  • 7,307
  • 17
  • 79
  • 168
1
vote
1 answer

Micrometer - Prometheus: Some meters are showing, others are not

I have a rabbitmq message queue on which many other services report status updates for what's called a Point. Now, on a separate service (written with SpringBoot), I need to listen for those Point updates and convert that into a Prometheus-scrapable…
user3235738
  • 335
  • 4
  • 22
1
vote
1 answer

How to specify single endpoint to be metered in micrometer in Spring Boot?

I would like to limit metrics http.server.requests.seconds to a single method and uri. Currently, I can see that all URIs are being metered (eg. /actuator/health) Is this possible?
pixel
  • 24,905
  • 36
  • 149
  • 251
1
vote
0 answers

What and where is this class 'UniversalScalabilityLawForecast' in Micrometer library?

I'm reading 'SRE with Java Microservices'(O'reilly) "USL forecasting is a form of “derived” Meter in Micrometer and can be enabled as shown in Example 4-39. " Example 4-39. Universal scalability law forecast configuration in…
BY-J
  • 11
  • 2
1
vote
1 answer

Track the number of requests per client per api in Spring Boot using Micrometer

I am using AWS Cloudwatch to monitor my application. I want to track the number of requests I receive per client per API. I have micrometer configured for other metrics. How do I track this metric using micrometer? For reference, I have a finite set…
1
vote
1 answer

SpringBoot Actuator Maintain State

I'm pushing custom metrics to Prometheus using micrometer. So, prometheus scrapes /actuator/prometheus and stores data. But the problem is, when I redeploy my applications, all the values are resetting to 0. Ex: I'm pushing the request count to…
1
vote
0 answers

Springboot disable selected prometheus metrics

I am using springboot gateway 2.0.4.RELEASE. io.micrometer micrometer-registry-prometheus After adding this dependency, it is exposing all metrics to prometheus endpoint. I…
1
vote
3 answers

Springboot, Micrometer and Aws Lambda function

I'm trying to send metrics to AWS cloudwatch by using micrometer, however, I'm facing a problem with the AWS credentials. ERROR i.m.c.CloudWatchMeterRegistry - error sending metric data. com.amazonaws.SdkClientException: Unable to load AWS…
1
vote
1 answer

Will updating a micrometer gauge ever block the calling thread?

Will updating a micrometer gauge ever block the calling thread (eg perform I/O)? I believe the answer is "no, I/O happens in a separate metrics collection thread" but would like to know of exceptions to this, edge cases, .. Thanks Tarik
tariksbl
  • 1,069
  • 6
  • 20
1
vote
1 answer

Spring Boot Micrometer Hierarchical Metric Namespace Concatenation

I have a Spring Boot Java app and am sending metrics to a hierarchical Graphite metrics system. I'm using the management.metrics.export.graphite.tags-as-prefix and mapping host and app to prefix my metrics. I then have a metric with namespace…
1
vote
1 answer

How to provide tags for some Spring Boot Micrometer metrics but not others?

I'm using Spring Boot Micrometer and it produces metrics like http_server_requests_seconds_bucket, http_server_requests_seconds_sum, http_server_requests_seconds_count, http_server_requests_seconds_max etc. I'm using a WebFluxTagsProvider to add…
kane
  • 5,465
  • 6
  • 44
  • 72
1
vote
1 answer

programmatically configuration for spring boot micrometer with influxdb

I am facing some challenges while configuring Spring Boot Micrometer for my application. Micrometer documents says we can configure influxdb uri, userName, password, db etc through application.yml file which is working fine for my demo application…
ppb
  • 2,299
  • 4
  • 43
  • 75
1
vote
1 answer

Java Micrometer @Counted - exception="none" and result="success" for @ExceptionHandler?

Quick question regarding Java Micrometer with @Counted and @ExceptionHandler please. I have a very straightforward @ExceptionHandler: @ExceptionHandler @Counted(value = "MY_EXCEPTION", description = "SOME_DESCRIPTION") public…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
1
vote
0 answers

Spring Micrometer custom common tags not displaying after meterRegistry access from applicationContext

In my Spring boot Application I am using micrometer where I am trying to add custom common tags as below - @Configuration public class MeterConfig { private static final String SERVICE_NAME = "serviceName"; @Bean public…
ppb
  • 2,299
  • 4
  • 43
  • 75