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.

[Question] Missing kafka_cluster_* metrics

See original GitHub issue

I tried to look at the documentation but I couldn’t find anything related to how to export at-min-insync metrics. My prometheus doesn’t have kafka_cluster_* metrics (kafka_cluster_partition_atminisr and kafka_cluster_partition_underminisr) and some panels on kafka-exporter dashboard are not working. Am I missing something on Strimzi kafkaExporter definition?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
scholzjcommented, Sep 2, 2020

Prometheus scrape the kafka exporter /metrics endpoint right? Since I don’t have kafka_cluster_partition_atminisr and kafka_cluster_partition_underminisr on kafka exporter, prometheus won’t have them as well.

No. Your Prometheus has to scrape metrics from the Kafka Exporter as well as from Kafka brokers directly. I guess the name could be confusing. But Kafka Exporter does not expose the Kafka metrics. It is used to create additional metrics which Kafka it self doesn’t provide (with the main focus being consumer lag monitoring). So you need to have Prometheus scrape the Kafka metrics from Kafka + the additional metrics from Kafka Exporter.

1reaction
ndealmeidacommented, Sep 2, 2020

Nice I fixed it here and I can see all the metrics on prometheus. The problem was that I didn’t have the metrics defined for Kafka, so I copied everything from the example and also prometheus was not scraping the kafka brokers, so I added the template prometheus annotations like this:

spec:
  kafka:
    ...
    metrics:
      lowercaseOutputName: true
      rules:
        ...
    template:
      pod:
        metadata:
          annotations:
            prometheus.io/scrape: true
            prometheus.io/port: 9404
            prometheus.io/path: /metrics

I’m closing this issue, thank you very much for the support @scholzj!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monitoring Kafka Performance Metrics | Datadog
Key metrics for monitoring Kafka​​ Kafka metrics can be broken down into three categories: Kafka server (broker) metrics. Producer metrics. ...
Read more >
Grafana Dashboard Monitoring Apache Kafka Cluster ...
Grafana Dashboard Monitoring Apache Kafka Cluster Suddenly Missing JMX Metrics Due to JMX Exporter Out of Heap Space.
Read more >
Missing Kafka Connect Metrics using Jmx Exporter for ...
It seems like the pattern you are providing for the connector part is wrong. Can I ask for what set of metrics it...
Read more >
Monitoring Kafka - Confluent Documentation
Confluent Control Center and Confluent Cloud monitors the following important operational broker metrics aggregated across the cluster, and per broker or ...
Read more >
Missing kafka.consumer.* MBeans - Cloudera Community
I'm using JConsole connected to my Kafka 0.9.0 broker to find this: ... Find answers, ask questions, and share your expertise ... What...
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