Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sappusaketh opened this issue Nov 16, 2023 · 2 comments

Comments

@sappusaketh
Copy link

sappusaketh commented Nov 16, 2023

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

@dhoard
Copy link
Collaborator

dhoard commented Nov 17, 2023

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.

@sappusaketh
Copy link
Author

sappusaketh commented Nov 22, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants