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

Allow more valid characters for prom label #41

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

harrisi
Copy link

@harrisi harrisi commented Jul 23, 2024

According to https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels, capital letters are valid as the first character. This allows parsing something like https://github.com/NVIDIA/dcgm-exporter.

This is not actually a complete fix for parsing, since metric names and metric labels have a slightly different form, but this fixes an issue someone on slack was having with this package.

didn't realize 0.1.10 was on hex already
Co-authored-by: João Thallis <joaothallis@icloud.com>
@@ -4,7 +4,7 @@ defmodule PrometheusParser.MixProject do
def project do
[
app: :prometheus_parser,
version: "0.1.9",
version: "0.1.11",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
version: "0.1.11",
version: "0.1.10",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is actually a 0.1.10 on hex already, which is why I went up to 0.1.11.

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