#291 Handle / in job name in
Prometheus::Client::Push:
Previously, if you included a / in your job name when using the Pushgateway client,
you'd get a 400 error back as we didn't encode it properly. We now base64 encode it
per the Pushgateway spec.
It's possible that nobody has hit this bug (/ is fairly unlikely to appear in a job
name) or that the error message (a 400 from Pushgateway with a complaint about an
odd number of path components) didn't make it look like a bug in the Ruby client.
Either way, this hopefully brings us fully in line with the spec!
v4.2.0
4.2.0 / 2023-07-25
Codename: Funny number
Small improvements
#287 Add Gauge#set_to_current_time:
Does what you'd expect - sets a gauge to the current unix epoch timestamp (including
fractional seconds).
Other client libraries have this and it's about time we did!
#291 Handle / in job name in
Prometheus::Client::Push:
Previously, if you included a / in your job name when using the Pushgateway client,
you'd get a 400 error back as we didn't encode it properly. We now base64 encode it
per the Pushgateway spec.
It's possible that nobody has hit this bug (/ is fairly unlikely to appear in a job
name) or that the error message (a 400 from Pushgateway with a complaint about an
odd number of path components) didn't make it look like a bug in the Ruby client.
Either way, this hopefully brings us fully in line with the spec!
4.2.0 / 2023-07-25
Codename: Funny number
Small improvements
#287 Add Gauge#set_to_current_time:
Does what you'd expect - sets a gauge to the current unix epoch timestamp (including
fractional seconds).
Other client libraries have this and it's about time we did!
Commits
e144d62 Merge pull request #292 from prometheus/sinjo-prepare-4-2-1
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps prometheus-client from 4.1.0 to 4.2.1.
Release notes
Sourced from prometheus-client's releases.
Changelog
Sourced from prometheus-client's changelog.
Commits
e144d62
Merge pull request #292 from prometheus/sinjo-prepare-4-2-1a9e8a30
Prepare release 4.2.18dc02e4
Merge pull request #291 from prometheus/sinjo-base64-job-push6f7b6cf
Handle/
in job name inPrometheus::Client::Push
77e6b7b
Merge pull request #288 from prometheus/sinjo-prepare-release-4-2-06ce3fdd
Prepare release 4.2.07507716
Merge pull request #287 from prometheus/sinjo-add-gauge-current-timestamp1d96723
AddGauge#set_to_current_time
907b495
Merge pull request #285 from duffn/duffn/update-test-headeresf543a3c
Use Rack::Response#headers in place of headerDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)