prometheus/storage
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
..
remote Remote Write: Queue Manager specific metrics shouldn't exist if the queue no longer exists (#5445) 2019-04-23 09:49:17 +01:00
tsdb updated tsdb to 0.6.0 (#5292) 2019-03-04 21:42:45 +02:00
buffer.go Minor optimization for BufferedSeriesIterator: actually drop the samples falling outside of the new delta from the underlying sampleRing, when ReduceDelta is called. (#4849) 2018-12-18 11:25:45 +00:00
buffer_test.go Use a fake SeriesIterator (that generates samples on the fly instead of using a slice) for BufferedSeriesIterator, to reduce the variance of benchmark results due to memory pressure. (#4847) 2018-12-18 11:22:33 +00:00
fanout.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00
fanout_test.go Return warnings on a remote read fail (#4832) 2018-11-30 14:27:12 +00:00
interface.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00
noop.go Move err to be the last return value from storage.Select. (#5054) 2019-01-02 11:10:13 +00:00