Skip to content

v4.2.1

Compare
Choose a tag to compare
@Sinjo Sinjo released this 04 Aug 17:12
· 20 commits to main since this release
e144d62

4.2.1 / 2023-08-04

Codename: If a bug falls in the forest

Bug fixes

  • #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!