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
0
votes
1 answer

How to provide Credentials to Micrometer for CloudWatch in Spring Boot 2

I'm using Spring Boot 2.0.9.RELEASE and am trying to figure out how to configure CloudWatch monitoring for my application running on an EC2-instance. What I did can be seen in my answer to this question. But I'm stuck with the following…
0
votes
1 answer

Publish Micrometer Metrics to Prometheus

I am using Spring Boot v2.1.3 and Micrometer Registry for Prometheus v1.2.1. I have created a DistributionSummary in my code and added it to PrometheusRegistry. I am using this Metric to store the time taken by the API. Moreover, I have created…
0
votes
1 answer

Micrometer's Gauge - update ratio

I'm wondering what's the update ratio of gauge meter in micrometer: List list = registry.gauge("listGauge", Collections.emptyList(), new ArrayList<>(), List::size); now let's say that list is changing sometimes often, sometimes stays…
raduy
  • 482
  • 5
  • 11
0
votes
1 answer

Custom user events using micrometer

I’m new to micrometer. I want to record events such as user registrations, user logins etc. Can I do this with micrometer and Spring Boot and show the data in Prometheus/Grafana?
Swordfish
  • 1,127
  • 24
  • 46
0
votes
2 answers

SimpleMeterRegistry clears data if data not polled every minute

I have a simple spring boot app with the following config (the project is available here on GitHub): management: metrics: export: simple: mode: step endpoints: web: exposure: include: "*" The above config…
0
votes
2 answers

get exception integrating micrometer to elastic-search application

I have a Spring-Boot application that calls to elastic-search cluster. I want to add prometheous monitoring to it. I have just add only following dependencies, As soon as i run the application i get java.util.concurrent.TimeoutException