prometheus/retrieval/discovery
Julius Volz d88aea7e6f Fix SD mechanism source prefix handling.
The prefixed target provider changed a pointerized target group that was
reused in the wrapped target provider, causing an ever-increasing chain
of source prefixes in target groups from the Consul target provider.

We now make this bug generally impossible by switching the target group
channel from pointer to value type and thus ensuring that target groups
are copied before being passed on to other parts of the system.

I tried to not let the depointerization leak too far outside of the
channel handling (both upstream and downstream) because I tried that
initially and caused some nasty bugs, which I want to minimize.

Fixes https://github.com/prometheus/prometheus/issues/1083
2015-10-09 14:08:22 +02:00
..
fixtures Fix discarding of labels in file target groups 2015-05-27 18:52:44 +02:00
kubernetes Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
marathon Switch from client_golang/model to common/model 2015-08-21 13:33:38 +02:00
consul.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
dns.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
ec2.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
file.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
file_test.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
kubernetes.go Fix most golint warnings. 2015-08-26 12:44:46 +02:00
marathon.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
marathon_test.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00
serverset.go Fix SD mechanism source prefix handling. 2015-10-09 14:08:22 +02:00