prometheus/config
Paul Gier d24d2acd11 config: set target group source index during unmarshalling (#4245)
* config: set target group source index during unmarshalling

Fixes issue #4214 where the scrape pool is unnecessarily reloaded for a
config reload where the config hasn't changed.  Previously, the discovery
manager changed the static config after loading which caused the in-memory
config to differ from a freshly reloaded config.

Signed-off-by: Paul Gier <pgier@redhat.com>

* [issue #4214] Test that static targets are not modified by discovery manager

Signed-off-by: Paul Gier <pgier@redhat.com>
2018-06-13 16:34:59 +01:00
..
testdata
config.go config: set target group source index during unmarshalling (#4245) 2018-06-13 16:34:59 +01:00
config_default_test.go
config_test.go config: set target group source index during unmarshalling (#4245) 2018-06-13 16:34:59 +01:00
config_windows_test.go