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
4
votes
3 answers

Spring Boot Metrics.counter("x").count() always return 0 for Influxdb

Having a spring-boot (2.7.10) application include: io.micrometer micrometer-core io.micrometer
Grim
  • 1,938
  • 10
  • 56
  • 123
4
votes
0 answers

how to show the number of calls per minute on grafana using micrometer

I have a simple Spring Boot application. I want to monitor application metrics using grafana and prometheus. To do this, I added the actuator and micrometer-registry-prometheus to the application
4
votes
0 answers

Ensure one last Prometheus scrape before graceful shutdown

I have a spring-boot application (with default Tomcat server) producing metrics for Prometheus using micrometer. The application is configured with graceful shutdown. When shutting down I want to make sure Prometheus scrapes one last time to get the…
chriptus13
  • 705
  • 7
  • 20
4
votes
1 answer

Micro meter high memory usage

We are seeing some of our services (Java <> SpringBoot) getting OOM. On checking heap dump, we found the micrometer library is taking 113MB (around 54% of total heap…
4
votes
1 answer

How to start micrometer with spring boot?

I want to add graphite metrics through micrometer to my spring boot app. I added this to my pom io.micrometer
4
votes
1 answer

Prometheus range duration in Range vector w.r.t. Grafana time interval

I am using micrometer with prometheus and grafana for dashbaords. my prom query is : rate(my_counter[10m]) Now, My current date is 1-Jun-2020 and I select the past dates in time interval of grafana as 1-Feb-2020 to 4-Mar-2020. In this case, the…
PrasadB
  • 91
  • 1
  • 7
4
votes
3 answers

Spring Boot Micrometer metrics for MongoDB

I use spring boot 2.2.5 + micrometer 1.3.5 + starter-data-mongodb Under "io.micrometer.core.instrument.binder.mongodb" I can see 2 classes CommandListener and ConnectionPoolListener. I would like to know what purpose these serve? In actuator metrics…
4
votes
4 answers

How to configure LoggingMeterRegistry step duration in Spring Boot 2.x?

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 configured management: metrics: export: …
golfradio
  • 457
  • 3
  • 7
  • 17
4
votes
4 answers

How to enable ExecutorServiceMetrics in SpringBoot 2.1.2?

How to enable ExecutorServiceMetrics listed here ? https://github.com/micrometer-metrics/micrometer/blob/master/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jvm/ExecutorServiceMetrics.java SpringBoot version:…
4
votes
1 answer

How can I Report Kafka Producer's metrics to prometheus(using spring boot)

I am working with spring-integration for data flow from a UDP endpoint to kafka. I have initialized a replyingKafkaTemplate as a @Bean in the @Configuration with both consumer and producer configurations. When my server is up and after sending some…
4
votes
1 answer

/beans of spring boot actuator not accessible

Tried with a simple spring boot application with actuator dependency, but not able to access http://localhost:8080/actuator/beans I am able to access http://localhost:8080/actuator with the following output…
Nilotpal
  • 3,237
  • 4
  • 34
  • 56
4
votes
2 answers

What configuration is required to get micrometer with spring-boot to output jvm_info{} guage?

I have a number of non spring-boot services which generate JVM metrics automatically using io.prometheus simpleclient_hotspot. I am trying to obtain parity with these and the JVM metrics produced from my spring-boot services which are using…
Jon
  • 146
  • 7
4
votes
1 answer

Counter with tags - How to group by dimension/tag?

I am trying to understand spring micromenter's group by dimension/tag functionality. I am using StepMeterRegistry and incrementing the counter but don't see desired result. create counters as, final MeterRegistry myRegistry = new…
josh
  • 13,793
  • 12
  • 49
  • 58
4
votes
1 answer

How to retrieve metrics from spring-boot micrometer

I was experimenting with micrometer using below code. How do i configure rate aggregation and get rate-aggregated data from a given counter within the application. By rate aggregated i mean data for previous publishing interval ? final MeterRegistry…
josh
  • 13,793
  • 12
  • 49
  • 58
3
votes
1 answer

Can we expose Apache Pulsar metrics through Micrometer?

The broker metrics are exposed under "/metrics/" at port 8080. But, what about the client metrics (both consumer and producer)? Can we expose Apache Pulsar metrics through Micrometer (particularly with Prometheus)? It would be interesting if we are…
1 2
3
23 24