client_golang/prometheus/push
beorn7 389d3c3b9a Properly handle empty job and label values
An empty job name was always an error, but it was previously only
detected when pushing to the PGW and receiving an error. With this
commit, the error is detected before pushing.

An empty label value should have been OK but was encoded in a way that
couldn't be pushed to the
PGW. Cf. https://github.com/prometheus/pushgateway/issues/344 . This
commit changes the creation of the path in the URL so that it works
with empty label values.

Signed-off-by: beorn7 <beorn@grafana.com>
2020-05-13 23:35:31 +02:00
..
example_add_from_gatherer_test.go Remove obsolete copyright notices 2018-02-14 18:49:18 +01:00
examples_test.go Remove HostnameGrouping method 2018-02-14 17:19:52 +01:00
push.go Properly handle empty job and label values 2020-05-13 23:35:31 +02:00
push_test.go Properly handle empty job and label values 2020-05-13 23:35:31 +02:00