prometheus/config
Simon Pasquier cccd542891
*: avoid missed Alertmanager targets (#6455)
This change makes sure that nearly-identical Alertmanager configurations
aren't merged together.

The config's identifier was the MD5 hash of the configuration serialized
to JSON but because `relabel.Regexp` has no public field and doesn't
implement the JSON.Marshaler interface, it was always serialized to
"{}".

In practice, the identifier can be based on the index of the
configuration in the list.

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-12-12 17:00:19 +01:00
..
testdata config: add test case for scrape interval larger than timeout. (#6037) 2019-09-23 13:26:56 +02:00
config.go *: avoid missed Alertmanager targets (#6455) 2019-12-12 17:00:19 +01:00
config_default_test.go Renaming the config_notwin test to config_default 2017-07-10 11:08:16 -03:00
config_test.go config: add test case for scrape interval larger than timeout. (#6037) 2019-09-23 13:26:56 +02:00
config_windows_test.go Fixing code style to adhere gofmt 2017-07-09 02:43:33 -03:00