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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace space and dot by underscore in Prometheus metric names #59

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

ghostdogpr
Copy link
Member

Prometheus metric names must follow the regex [a-zA-Z_][a-zA-Z0-9_]* (source: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels).

Currently - is replaced automatically by _. I think it makes sense to also catch space and dot (actually, we did use dots and broke our metrics 馃槶 ).

@petoalbert petoalbert merged commit 714c83d into zio:zio/series2.x Dec 23, 2023
12 checks passed
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.

None yet

3 participants