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

Properly handle empty job and label values #752

Merged
merged 1 commit into from May 14, 2020
Merged

Properly handle empty job and label values #752

merged 1 commit into from May 14, 2020

Conversation

beorn7
Copy link
Member

@beorn7 beorn7 commented May 13, 2020

An empty job name was always an error, but it was previously only
detected when pushing to the PGW and receiving an error. With this
commit, the error is detected before pushing.

An empty label value should have been OK but was encoded in a way that
couldn't be pushed to the
PGW. Cf. prometheus/pushgateway#344 . This
commit changes the creation of the path in the URL so that it works
with empty label values.

@matevz
Fixes #750 .

An empty job name was always an error, but it was previously only
detected when pushing to the PGW and receiving an error. With this
commit, the error is detected before pushing.

An empty label value should have been OK but was encoded in a way that
couldn't be pushed to the
PGW. Cf. prometheus/pushgateway#344 . This
commit changes the creation of the path in the URL so that it works
with empty label values.

Signed-off-by: beorn7 <beorn@grafana.com>
Copy link
Member

@roidelapluie roidelapluie left a comment

Choose a reason for hiding this comment

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

LGTM

@beorn7
Copy link
Member Author

beorn7 commented May 14, 2020

Thanks @roidelapluie

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.

push: properly handle empty label values in grouping key
2 participants