prometheus/storage/remote
Callum Styan e87449b59d Remote Write: Queue Manager specific metrics shouldn't exist if the queue no longer exists (#5445)
* Unregister remote write queue manager specific metrics when stopping the
queue manager.

* Use DeleteLabelValues instead of Unregister to remove queue and watcher
related metrics when we stop them. Create those metrics in the structs
start functions rather than in their constructors because of the
ordering of creation, start, and stop in remote storage ApplyConfig.

* Add setMetrics function to WAL watcher so we can set
the watchers metrics in it's Start function, but not
have to call Start in some tests (causes data race).

Signed-off-by: Callum Styan <callumstyan@gmail.com>
2019-04-23 09:49:17 +01:00
..
client.go Exhaust every request body before closing it (#5166) (#5479) 2019-04-18 09:50:37 +01:00
client_test.go refine error handling in prometheus (#5388) 2019-03-26 00:01:12 +01:00
codec.go refine error handling in prometheus (#5388) 2019-03-26 00:01:12 +01:00
codec_test.go *: apply gofmt -s 2019-01-16 17:28:14 -05:00
ewma.go Initial port of remote storage to v2. 2017-07-12 12:27:57 +01:00
intern.go Review feedback. 2019-03-18 20:31:12 +00:00
intern_test.go Review feedback. 2019-03-18 20:31:12 +00:00
max_gauge.go Refactor and fix queue resharding (#5286) 2019-03-01 11:04:26 -08:00
queue_manager.go Remote Write: Queue Manager specific metrics shouldn't exist if the queue no longer exists (#5445) 2019-04-23 09:49:17 +01:00
queue_manager_test.go Prevent reshard concurrent with calling stop (#5460) 2019-04-16 11:25:19 +01:00
read.go Review feedback. 2019-03-18 20:31:12 +00:00
read_test.go Review feedback. 2019-03-18 20:31:12 +00:00
storage.go Don't stop, recreate, and start remote storage QueueManagers if the (#5485) 2019-04-23 09:47:18 +01:00
wal_watcher.go Remote Write: Queue Manager specific metrics shouldn't exist if the queue no longer exists (#5445) 2019-04-23 09:49:17 +01:00
wal_watcher_test.go Remote Write: Queue Manager specific metrics shouldn't exist if the queue no longer exists (#5445) 2019-04-23 09:49:17 +01:00
write.go Refactor and fix queue resharding (#5286) 2019-03-01 11:04:26 -08:00