prometheus/storage/remote
Chris Marchbanks b299aba6cf
Fix panic when updating a remote write queue (#7452)
Right now Queue Manager metrics are registered when the metrics struct
is created, which happens before a changed queue is shutdown and the old
metrics are unregistered. In the case of named queues or updates to
external labels the apply config will panic due to duplicate metrics.

Instead, register the metrics as part of starting the queue as we always
guarantee that Stop will be called before a new Start.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2020-06-26 12:03:52 +05:30
..
chunked.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
chunked_test.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
client.go Trace Remote Write requests (#7206) 2020-06-01 09:21:13 -06:00
client_test.go Improve testutil.ErrorEqual (#6471) 2019-12-17 21:11:33 +00:00
codec.go storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response. 2020-03-20 21:14:43 +01:00
codec_test.go Fix some warnings: 'redundant type from array, slice, or map composite literal' (#7109) 2020-04-15 11:17:41 +01:00
ewma.go Merge the 2.13 release branch to master (#6117) 2019-10-09 17:41:46 +02:00
intern.go Merge the 2.13 release branch to master (#6117) 2019-10-09 17:41:46 +02:00
intern_test.go Fix order of testutil.Equals (#6695) 2020-01-27 12:21:59 +00:00
max_gauge.go resolve race condition in maxGauge (#5647) 2019-06-13 20:55:08 +01:00
queue_manager.go Fix panic when updating a remote write queue (#7452) 2020-06-26 12:03:52 +05:30
queue_manager_test.go Add test for unregistering queue manager metrics 2020-05-05 14:14:04 -06:00
read.go added the prometheus_remote_storage_remote_read_queries_total (#7328) 2020-06-03 10:30:52 -07:00
read_test.go storage: Removed SelectSorted method; Simplified interface; Added requirement for remote read to sort response. 2020-03-20 21:14:43 +01:00
storage.go Hash YAML instead of JSON 2020-04-13 22:32:37 +00:00
storage_test.go storage/remote: add tests for config changes 2020-04-13 22:32:37 +00:00
write.go Remove duplicate metrics in QueueManager 2020-05-05 14:13:59 -06:00
write_test.go Fix panic when updating a remote write queue (#7452) 2020-06-26 12:03:52 +05:30