![](/img/trans.png)
[英]Is there a way to configure kafka-connect jmx metrics to be captured using a jmx_exporter/prometheus?
[英]Adding custom labels to jvm related metrics using jmx_exporter
在将prometheus_jmx_exporter与kafka结合使用时,我想为jvm.*
或process.*
相关指标添加自定义标签"key:my-app"
。 我不知道要用于相同的规则/模式。 记录了Github关于类似问题的评论,但没有回应。
以下代码不会将标签"services="my-app"
到生成的指标中:
rules:
- pattern : process.cpu.seconds.total
name: kafka_process_cpu_seconds_total
labels:
services: "my-app"
在Prometheus中,此类标签称为目标标签,并应用于Prometheus端。 通常,这是根据服务发现中的元数据使用relabel_configs
完成的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.