prometheus / jmx_exporter

A process for exposing JMX Beans via HTTP for Prometheus consumption

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to add custom k8s attributes as labels for Kafka connect JMX metrics

sappusaketh opened this issue · comments

I want to see if I can add annotations from Kafkaconnector crd to connect specific metrics? I know this issue is not directly linked to jmx_exporter wondering if there is a way to add custom k8s attributes as labels
I m using strimzi as my kafka cluster operator and here is my metrics config map

You should be able to add static labels in your exporter YAM. If the labels are POD specific you would have to preprocess the exporter YAML before starting.

The labels are specific to KafkaConnector CRD I m not sure if i have to build some map and add any custom logic? Wondering if I can do this via JMX rules?