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

Handle / in job name in Prometheus::Client::Push #291

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

Sinjo
Copy link
Member

@Sinjo Sinjo commented Aug 3, 2023

This a subtlety I missed when overhauling the Pushgateway client.

While the job name can't be empty like other grouping key labels can, it can contain /, which means we need to base64 encode the value in that case.

@Sinjo Sinjo requested a review from dmagliola August 3, 2023 09:58
This a subtlety I missed when overhauling the Pushgateway client.

While the job name can't be empty like other grouping key labels can, it
can contain `/`, which means we need to base64 encode the value in that
case.

Signed-off-by: Chris Sinjakli <chris@sinjakli.co.uk>
@Sinjo Sinjo merged commit 8dc02e4 into main Aug 3, 2023
1 check passed
@Sinjo Sinjo deleted the sinjo-base64-job-push branch August 3, 2023 14:43
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