question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kafka metrics not appearing on Actuator

See original GitHub issue

Hi,

We’re trying to expose our Kafka binder’s metrics using Actuator but they don’t seem to be appearing. Based on the documentation, we expected spring.cloud.stream.binder.kafka.offset to appear in the names array on the /actuator/metrics endpoint with details at /actuator/metrics/spring.cloud.stream.binder.kafka.offset. We’re using version 2.1.0.RELEASE of Spring Boot and Actuator as well as version 1.1.0 of Micrometer. Our binding is appearing at /actuator/bindings.

Our application.yml contains the following:

management:
  endpoints:
    web:
      exposure:
        include: bindings, metrics, health

Happy to supply any more information if required.

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
sobychackocommented, Nov 29, 2018

@lawhiteley @mark-r-m Aplogies for the delay. I just ran a sample application with Boot 2.1.0.RELEASE and Spring Cloud Stream Fishtown snapshot, micrometer 1.1.0.RELEASE etc.

I am actually getting the metrics. See below.

actuator/metrics

{"names":[,"spring.cloud.stream.binder.kafka.offset","kafka.consumer.join.rate",
"jvm.threads.states","kafka.consumer.commit.rate",
"kafka.consumer.io-wait-time-avg","kafka.consumer.heartbeat.rate",
"kafka.consumer.select.total","..............]}

and actuator/metrics/spring.cloud.stream.binder.kafka.offset

{"name":"spring.cloud.stream.binder.kafka.offset",
"description":"Unconsumed messages for a particular group and topic","baseUnit":null,"measurements":
[{"statistic":"VALUE","value":5.0}],"availableTags":
[{"tag":"topic","values":["kafka-binder-gh-498"]},
{"tag":"group","values":["anonymous.5fff7127-3efa-4dd7-9b4c-d4c49a04fd95"]}]}

If you can provide a small sample app where it fails for you, we can troubleshoot it further.

0reactions
ennalacommented, Feb 12, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring boot 2.3.4 - Kafka metrics are not visible in /actuator ...
4) and I'm using @KafkaListener to consume records. I also use actuator and micrometer (version 1.5.5) for the metrics. The problem is that...
Read more >
Kafka metrics not available in /actuator/prometheus-Springboot
Coding example for the question Spring Boot Kafka - Kafka metrics not available in /actuator/prometheus-Springboot.
Read more >
57. Metrics - Spring
Spring Boot provides a metrics endpoint that can be used diagnostically to examine the metrics collected by an application. The endpoint is not...
Read more >
Gathering Metrics with Micrometer and Spring Boot Actuator
Traditionally, metrics have really been not much more than just simple ... Kafka - native metrics on all configured producers/consumers ...
Read more >
spring-projects/spring-metrics - Gitter
I am using spring metrics to view the kafka metrics.. I am able to see values for metrics ... Was wondering is anyone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found