commit | dd4e4ef74ac6c7c4c96f9bfa4d9253c2520d3722 | [log] [tgz] |
---|---|---|
author | Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com> | Wed Aug 07 17:45:25 2019 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Mon Aug 12 08:56:22 2019 +0200 |
tree | bc7128140839082ddc8c210a077c807f1f78f61a | |
parent | b59291a2e3593008ae9eacdbfd9790e09282d7aa [diff] |
BUG/MINOR: Fix prometheus '# TYPE' and '# HELP' headers Prometheus protocol defines HELP and TYPE as a token after the '#' and the space after the '#' is necessary. This is expected in the prometheus python client for example (https://github.com/prometheus/client_python/blob/a8f5c80f651ea570577c364203e0edbef67db727/prometheus_client/parser.py#L194) and the missing space is breaking the parsing of metrics' type. This patch must be backported to 2.0. (cherry picked from commit 51c3aa4628cf597eb133f6ae8bb36e09139a73dc) Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>