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 create a multi-value tag metric gauge?

Already read this but with no lucky. All examples I've found just show how to create a single value tag like this: { "name" : "jvm.gc.memory.allocated", "measurements" : [ { "statistic" : "COUNT", "value" : 1.98180864E8 } ], …
Magno C
  • 1,922
  • 4
  • 28
  • 53
0
votes
1 answer

Cannot get spring boot actuator to expose endpoints other than the default ones, advice needed

I have a spring boot application that's packaged as a .war file and running on a wildfly instance. I just recently added the micrometer and actuator dependencies to my pom file: io.micrometer
0
votes
1 answer

Measuring ElasticScheduler with micrometer?

Is there any way to measure how ElasticScheduler utilities it's thread pools? I've went through code but I haven't seen any straightforward option to do it.
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
2 answers

Micrometer Timer and Spring Boot 2.0.4

I'm trying to send metrics to InfluxDB using Spring Boot 2.0.4 + Micrometer, but only Counter works, the Timer didn't. So, this is my dependencies: ... io.micrometer
0
votes
2 answers

Metric in micrometer in URI template . Some path variable needs to be replaced from URL

I want to collect metrics for particular REST API Suppose I have a URL like /company/{companyName}/person/{id} Is it possible to collect metrics across /company/test/person/{id} /compaby/test2/person/{id}
naval jain
  • 353
  • 3
  • 4
  • 14
0
votes
2 answers

Graphite doesnt show unit for time metrics

Graphite doesn't show the unit for time metrics. I am not sure if it is milliseconds or microseconds. How to verify that? I am reporting from JMX MeterRegistry.
hegde
  • 1
  • 2
0
votes
1 answer

Spring Boot metrics export to InfluxDB - how to reduce number of exports?

I have: plugins { id 'org.springframework.boot' version '2.0.3.RELEASE' } And: compile 'org.springframework.boot:spring-boot-devtools' compile 'org.springframework.boot:spring-boot-starter-actuator' compile…
Justinas Jakavonis
  • 8,220
  • 10
  • 69
  • 114
-1
votes
0 answers

MeterRegistry using in the Map

I have this code: static method(){ // also other class called this method for (Map.Entry dataSource :dbhealth.entrySet()) { Connection connection = dataSource.getValue().getConnection() if…
-1
votes
0 answers

Not able to publish custom ScheduledExecutorService metrics to Prometheus using Prometheus Java Agent

I am trying to publish custom metrics from my MyCustomExecutor class to the /metrics endpoint using the Prometheus Java Agent. I have implemented a custom executor class as follows: @Slf4j public class MyCustomExecutor extends…
-1
votes
1 answer

How to trigger gauge only manually?

I want to monitor a value from my database. This value could increase and decrease, so I use a gauge. I have no instance variable for this value, so I use a method reference instead of a object reference. The gauge calls this method…
dur
  • 15,689
  • 25
  • 79
  • 125
-1
votes
1 answer

Display only a count of failures for Java success/fail metrics

Quick question regarding how to build a visual on a specific condition of a java counter in Grafana please. Currently, I have a small piece of java code, straightforward. private String question(MeterRegistry meterRegistry) { if…
PatPanda
  • 3,644
  • 9
  • 58
  • 154
1 2 3
23
24