prometheus/documentation/examples
Stephen Soltesz 3f29324e04 Fix kubernetes host:port relabel regex.
This change corrects a bug introduced by PR
https://github.com/prometheus/prometheus/pull/2427

The regex uses three groups: the hostname, an optional port, and the
prefered port from a kubernetes annotation.

Previously, the second group should have been ignored if a :port was not
present in the input. However, making the port group optional with the
"?" had the unintended side-effect of allowing the hostname regex "(.+)"
to match greedily, which included the ":port" patterns up to the ";"
separating the hostname from the kubernetes port annotation.

This change updates the regex for the hostname to match any non-":"
characters. This forces the regex to stop if a ":port" is present and
allow the second group to match the optional port.
2017-02-16 14:46:04 -05:00
..
kubernetes-rabbitmq Fix typo in documentation/examples/kubernetes-rabbitmq/README.md 2016-02-08 02:00:10 +01:00
remote_storage Remove legacy remote storage implementations 2017-02-14 17:52:05 +01:00
prometheus-kubernetes.yml Fix kubernetes host:port relabel regex. 2017-02-16 14:46:04 -05:00
prometheus.yml The defaults stated in the example config where wrong (#2110) 2016-11-21 09:53:59 +01:00