confluentinc / jmx-monitoring-stacks

📊 Monitoring examples for Confluent Cloud and Confluent Platform
Apache License 2.0
59 stars 170 forks source link

Missing metrics in prometheus exporter #243

Open lavalex opened 4 months ago

lavalex commented 4 months ago

Hello,

When I tried to use kafka_broker.yml I noticed for example that all kafka_controller* metrics are missing. If I try exporter with no rules, I do see that metric.

I think the issue is somewhere here:

https://github.com/confluentinc/jmx-monitoring-stacks/blob/509334cf3988d23f3d66387fef811774d37dc41f/shared-assets/jmx-exporter/kafka_broker.yml#L145 ?

Thanks.

hifly81 commented 4 months ago

Hi @lavalex

I tried using dev-toolkit

dev-toolkit/start.sh

then I have scraped all prometheus metrics from broker 1:

curl -v http://kafka1:1234/metrics >> /tmp/metrics.txt

and _kafkacontroller metrics are visible (see img)

Screenshot 2024-07-18 alle 11 00 44

could you pls try it?