Questions tagged [micrometer]

micrometer is a facade to log different kind of metrics to data sinks of multiple vendors.

https://micrometer.io/

Think SLF4J, but for metrics.

Contains built-in support for Prometheus, Netflix Atlas, CloudWatch, Datadog, Graphite, Ganglia, JMX, Influx/Telegraf, New Relic, StatsD, SignalFx, and Wavefront.

563 questions
0
votes
1 answer

Ops unit in Grafana

I have put annotation io.micrometer.core.annotation.Timed on a spring rest endpoint and configured prometheus. It provides me with three metrics on grafana: myMetricsName_seconds_count myMetricsName_seconds_sum myMetricsName_seconds_max Going by…
Mandroid
  • 6,200
  • 12
  • 64
  • 134
0
votes
1 answer

How to configure Micrometer KafkaClientMetrics with spring-cloud-stream

I would like to know how the io.micrometer.core.instrument.binder.kafka.KafkaClientMetrics class (v1.5.2) can be configured. From where do I get the Consumer & Producers which are created by the underlying kafka binder. And when do I have to invoke…
Chr3is
  • 387
  • 5
  • 21
0
votes
0 answers

Kafka Consumer lag configuration with micrometer

I am trying to configure consumer lag for my Kafka consumers, is there a way to configure this using micrometer. I don't find proper examples to implement.
0
votes
1 answer

How to run micrometer elastic with micrometer spring legacy?

im quite new to spring and am trying to connect my application to an elk. The Application is running spring boot 1.5.5, hence I'm using micrometer legacy. My pom looks like this: io.micrometer
Chris Rothe
  • 11
  • 1
  • 3
0
votes
1 answer

Start prometheus within spring application

I'm new to micrometer and Prometheus, I only used dropwizards metrics. It bothers me a bit, that I actually need to have 3 different instances up and running to see the metrics The spring boot application itself with micrometer Prometheus for…
Mr Shorly
  • 139
  • 7
0
votes
1 answer

Prometheus metrics not give path variable values

Code sample from spring boot application, which is producing prometheus metrics. I am trying to access it with http://localhost:8080/myApi/ABC. But In prometheus metrics it is producing the metrics with "uri=/myApi/{refNum}". Promotheus…
0
votes
1 answer

Spring Boot Micrometer Counting Cancelled

This is more of a Meta question than a clear technical issue. I am monitoring a Spring Boot (2.2.6) service with Micrometer (1.4.1). The application is Reactor based and is healthy, but every now and then following value is increased one…
Sven
  • 892
  • 14
  • 29
0
votes
0 answers

Custom metric for vertx

I am using Vertx micrometer (with Prometheus option) and I would like to ask if it's possible to add a custom metric. I would like to keep track of a number of users with a specific property so I need to call a service (via event bus) to get this…
horak90
  • 105
  • 9
0
votes
1 answer

Computing Monitoring metrics of Spring-Boot Micro-Service in Java

Problem statement: Expose Latency, Error-Rate, Throughput, Retry-Count (For persisting into SQL DB failures and Kafka publishing failures), and Unsuccessful-Retries of the Spring Boot application as ManagedBeans on JConsole. There are no REST…
ArnabSaha
  • 23
  • 8
0
votes
0 answers

Is it feasible to create wrappers around external code in Spring to track metrics on their run time?

My specific problem relates to Spring Actuator's default health checks - it's not code I have edit access to so I'm not able to wire in Micrometer, but is there still a way to create metrics around them? Examples of default health checks:
notacorn
  • 3,526
  • 4
  • 30
  • 60
0
votes
1 answer

io.micrometer.core.instrument.config.MeterFilter : DENY is not working in spring boot

I want to expose all metrics on the metrics endpoint but publish some of them to a remote meter registry. For doing so, I have a SimpleMeterRegistry for the metrics endpoint and added a MeterRegistryCustomizer for the remote meter registry(Datadog)…
esha ingle
  • 163
  • 1
  • 3
  • 18
0
votes
1 answer

Adding Micrometer for Prometheus library to Grails project throws NoClassDefFoundError at run time

I am having some trouble to add micrometer library to my Grails project The environment standard Groovy on Grails with Gradle for artifact management where build creates one big war file with all dependencies included The Library:…
Panteleev Dima
  • 175
  • 2
  • 18
0
votes
1 answer

Spring boot for Micrometer registers filter in nested Prometheus registry not Global which is ignored during metric creation?

I am trying to add a filter for reactive flows: metrics() Registering it with IoC successfully: public class FluxMetricsFilter implements MeterFilter { private FluxMetricsConfigurationProperties fluxMetricsConfigurationProperties; public…
Aubergine
  • 5,862
  • 19
  • 66
  • 110
0
votes
1 answer

How to set name for MeterRegistry httpRequest metrics?

Good evening all. I have created GraphiteMeterRegistry bean. @Bean public GraphiteMeterRegistry meterRegistry(GraphiteConfig graphiteConfig) { String host; try { host =…
0
votes
1 answer

Is it possible to declare multiple micrometer binders in a single bean declaration

By default, metrics from all MeterBinder beans will be automatically bound to the Spring-managed MeterRegistry This works great when it's possible to configure the binders individually. What I'm looking, however, it to be able to bulk declare…