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
0 answers

Micrometer | Why CompositeMeterRegistry manages Set of Registry instead List/LinkedHashSet?

I am using Micrometer project for publishing metrics in my spring boot 2.x application. I have implemented two MeterRegistry(StepMeterRegistry and SimpleMeterRegistry) so spring boot internally creates CompositeMeterRegistry having a set of…
c.sankhala
  • 850
  • 13
  • 27
0
votes
1 answer

How to filter meters when publishing NewRelicMeterRegistry

I am using custom timers to instrument a ton of fields via Micrometer. Ideally I do not want the metrics reported for this specific meter that have a count of zero between the configured step interval. This is not crucial but would love to…
GoldFlsh
  • 1,095
  • 2
  • 11
  • 26
0
votes
1 answer

Micrometer KafkaConsumerMetrics present when running locally but not when deployed

When I run locally I can see that kafka.consumer. are being collected. While when I deploy my service - I see that those metrics are not present. I use kafka version 1.11.0, java 11 and Spring Boot 2.2. How I can determine what is missing?
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
1 answer

Custom name for grouping metrics with same tags

My application based on spring-boot and I'm using micrometer with AWS cloudwatch for collecting specific metrics. Faced an issue that it is hard to find needed metric if it has many additional tags, because of AWS naming metric groups (metrics with…
0
votes
1 answer

PrometheusMeterRegistry stuck at scrape function call

Im having a problem configuring a PrometheusMeterRegistry to get metrics from a Geode cluster. After configuring the endpoint, if I run curl command to check if the metrics are available at the configured endpoint, the http request handler gets…
alb3rtobr
  • 311
  • 2
  • 8
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

Why is a counter a double and not a long?

What is the motivation for a Micrometer counter to be a double, not a long? Is there a reason a user would count partial changes? How does it continue to measure increments after the count is over the size of the mantissa (~2 billion I…
Adam
  • 3,675
  • 8
  • 45
  • 77
0
votes
1 answer

Micrometer to Prometheus conversion

I have a Spring Boot 2 application that uses Micrometer. Unfortunately, I need to use Prometheus PushGateway (i.e. pushing instead of pulling) So I need to read all Meter's from MeterRegistry and convert them to Prometheus objects (e.g. Gauge,…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
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

SpringBoot application monitoring Adding Timed annotation cause to error

I'm implementing micrometer to spring web project. While trying to add @Timed annotation. Prior to add @Timed i'm supposed to create TimedSpect bean. But it says could not autowire no bean of MeterRegistry type found @Configuration public class…
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
1 answer

How to pass application name for New Relic Insights in Spring boot micrometer

I successfully configured New Relic with micrometer, but I've observed that there is no application name sent along. I would like to include it in order to be able filter on different environments.
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
1 answer

How to emit custom metrics from SpringBoot application and use it in PCF Autoscaler

I am following this example for emitting the custom metrics and followed these details for registering the metrics in PCF. Here is the code: @RestController public class CustomMetricsController { @Autowired private MeterRegistry registry; …
Avhi
  • 806
  • 2
  • 15
  • 29
0
votes
1 answer

How to enable Camel NettyChannelBufferStreamCache type conversion?

Trying to get this example to work: https://github.com/apache/camel/tree/master/examples/camel-example-micrometer When I go to the metrics endpoint e.g. curl http://0.0.0.0:8088/metrics I get this error: Caused by:…
Charlie
  • 2,004
  • 6
  • 20
  • 40