Skip to content

Conversation

@tobz
Copy link
Member

@tobz tobz commented May 17, 2021

This PR addresses #173, which is related to the mismatch/ergonomics of how matchers are used against metric keys.

Now, we ensure that matchers are "sanitized" in the same way we sanitize keys to match the Prometheus restrictions. In addition, we've also improved the key sanitation. While the previous sanitizer code dealt with known issues, the new code is closer to the actual specification for what a Prometheus metric name can be.

@tobz tobz merged commit 6fad083 into main May 17, 2021
@tobz tobz deleted the tlawrence_prom_matcher_fix branch May 17, 2021 00:31
mnpw pushed a commit to mnpw/metrics that referenced this pull request Mar 8, 2024
…her_fix

metrics-exporter-prometheus: sanitize matchers the same as input keys
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.

metrics-exporter-prometheus: bucket matcher values should be transformed to match metric names

2 participants