Skip to content

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

Merged
Sinjo merged 1 commit into
mainfrom
sinjo-base64-job-push
Aug 3, 2023
Merged

Handle / in job name in Prometheus::Client::Push#291
Sinjo merged 1 commit into
mainfrom
sinjo-base64-job-push

Conversation

@Sinjo

@Sinjo Sinjo commented Aug 3, 2023

Copy link
Copy Markdown
Member

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 force-pushed the sinjo-base64-job-push branch from 3c9f197 to 6f7b6cf Compare August 3, 2023 14:31
@Sinjo
Sinjo merged commit 8dc02e4 into main Aug 3, 2023
@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

2 participants