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

Removing special character from metric and label name #8

Open
dinumathai opened this issue Apr 26, 2018 · 1 comment
Open

Removing special character from metric and label name #8

dinumathai opened this issue Apr 26, 2018 · 1 comment

Comments

@dinumathai
Copy link

If I have a "-' in my kafka topic name the metrics exported by the exporter is failing at promethues during scraping.

Need changes in "KafkaCollector.java"
String metricName = topic.replaceAll("[^A-Za-z0-9]","") + "" + record.getName().replaceAll("[^A-Za-z0-9]","");
labelNames.add(entry.getKey().replaceAll("[^A-Za-z0-9]","
"));

@dinumathai
Copy link
Author

dinumathai commented May 7, 2018

Fixed this issue and Dockerized the exporter - dinumathai/kafka-topic-exporter

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

No branches or pull requests

1 participant