danielqsj / kafka_exporter

Kafka exporter for Prometheus
Apache License 2.0
2.09k stars 602 forks source link

The kafka_exporter argument kafka.labels is not valid #421

Open huangpeng0817 opened 5 months ago

huangpeng0817 commented 5 months ago

At startup, use --kafka.labels to define the cluster name. This parameter is not valid if it is not available in the monitoring data.

erlfos commented 5 months ago

You can define a label like this: --kafka.labels=cluster=yourclustername It should show up in your metrics: kafka_brokers{cluster="yourclustername"} 3

huangpeng0817 commented 5 months ago

您可以像这样定义标签: --kafka.labels=cluster=yourclustername 它应该显示在您的指标中: kafka_brokers{cluster="yourclustername"} 3

good