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
2
votes
2 answers

How do I get the number of messages in a Spring Integration queue with Micrometer?

Spring's Metrics and Management: MessageChannel Metric Features describes: If it is a QueueChannel, you also see statistics for the receive operation as well as the count of messages that are currently buffered by this QueueChannel However: These…
Michel Jung
  • 2,966
  • 6
  • 31
  • 51
2
votes
1 answer

micrometer statistics for RestTemplate

I am trying to get metric for rest uri using micrometer. I read this, this, and also bunch of SO posts. After reading all these, I have a some questions about it. For micrometer to work correctly uri should be parameterized(Reference). I assume…
2
votes
0 answers

Spring Boot Micrometer Prometheus metrics showing exception that can not be found in application logs

I have a Spring Boot project exposing Micrometer metrics for Prometheus. I notice from some Prometheus / AlertManager alarms that we are having some server errors (500) in our Spring Boot application. In the daily use of the application we did not…
2
votes
1 answer

Spring boot micro meter datadog socket connection error

I am working on to create some custom metrics for my spring boot 2 rest api. I have added the required micro meter and datadog dependency. My office machine works behind a proxy. I have setup proxy through spring boot…
GAK
  • 1,018
  • 1
  • 14
  • 33
2
votes
0 answers

Spring r2dbc + actuator not collecting metrics

I have set up a Spring boot application using version 2.2.2.RELEASE with both spring-boot-starter-data-r2dbc and spring-boot-actuator-autoconfigure-r2dbc on the classpath. I am however unable to see any r2dbc metrics on the actuator endpoint, even…
2
votes
1 answer

Expose metrics from spring application to prometheus without using spring-boot actuator

I have been trying to collect micrometer metrics in a non springboot application and expose them to prometheus.I have added the following dependency and the test method for the same.I would like to know how to proceed and expose the collected…
2
votes
1 answer

Percentile with spring boot and micrometer

I'm writing an application with Spring boot 2. My method try to generate value until the value will be unique. Each unique generated value is added to the cache. Generally, it should generate value with the first try, but the more application run -…
a3dsfcv
  • 1,146
  • 2
  • 20
  • 35
2
votes
0 answers

Spring boot 2 micormeter to statsd prefix not appending to the metrics

I've migrated spring boot 1.x to spring boot 2 with micrometer for metrics. After which could see the metrics in graphite via statsd. But, i can't see it with the prefix After that i tried for basic prototype by following Configure…
CdVr
  • 323
  • 3
  • 15
2
votes
1 answer

How to add custom MeterRegisty for Spring Boot 2

I am currently exporting Actuator metrics for my Spring Boot Webflux project to DataDog with 10 seconds interval. I would like to add another exporter for one of our internal system that is not in the list of supported backends. Looking at the…
user3139545
  • 6,882
  • 13
  • 44
  • 87
2
votes
0 answers

Could not load io.micrometer.core.instrument.Timer$1

I have a problem with the application in Spring Boot deployed on the Tomcat. After a couple of days (~7 days) the Spring scheduler is stopping working. I have found in logs following exception: 11-Oct-2019 10:41:20.473 INFO [Service Thread]…
Cayman_h
  • 31
  • 1
2
votes
1 answer

Spring Actuator Metrics generate logs

I'm trying to get micrometer metrics data to Splunk. Each metric endpoint gives the current value of a metric, so I would need Splunk to send a http request to my application periodically, or I can write the metric values to a log file periodically.…
George
  • 2,820
  • 4
  • 29
  • 56
2
votes
1 answer

Using Timer for batch operations

I'm new to using Micrometer and am trying to see if there's a way to use a Timer that would also include a count of the number of items in a batch processing scenario. Since I'm processing the batch with Java streams, I didn't see an obvious way to…
2
votes
1 answer

How to disable/enable Micrometer metrics in running microservice

How can I disable or enable some of Micrometer's metrics without restarting my microservice? I want to expose an endpoint to change the metrics my application collects.
lewis
  • 21
  • 2
2
votes
2 answers

Measuring rate of events with Micrometer

In Dropwizard there is something like meter: https://metrics.dropwizard.io/3.1.0/getting-started/#meters It lets me measure rate of events just by invoking mark() method on the metric. How can I do that in Micrometer? I can use timers, but I don't…
Piotr Kozlowski
  • 899
  • 1
  • 13
  • 25
2
votes
1 answer

Change logging format of SpringBoot - micrometer to JSON

I have a SpringBoot application that uses micrometer to print out application metrics. My pom.xml has: io.micrometer micrometer-core 1.1.3 My…
Deepboy
  • 523
  • 3
  • 16
  • 28