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

Don't sanitize away colons in metric names #498

Merged
merged 1 commit into from
Sep 4, 2019
Merged

Don't sanitize away colons in metric names #498

merged 1 commit into from
Sep 4, 2019

Conversation

ugniusb
Copy link
Contributor

@ugniusb ugniusb commented Sep 4, 2019

The docs specify that colons (:) are allowed in metric names, but Collector.sanitizeMetricName removes them.
This PR makes it keep the colons.

cc @brian-brazil

The docs specify that colons (`:`) are allowed in metric names, but
`Collector.sanitizeMetricName` removes them.

Signed-off-by: ugniusb <ugniusb@wix.com>
@brian-brazil brian-brazil merged commit 10fa80b into prometheus:master Sep 4, 2019
@brian-brazil
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants