prometheus/storage/remote
Callum Styan 67838643ee
Add config option for remote job name (#6043)
* Track remote write queues via a map so we don't care about index.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Support a job name for remote write/read so we can differentiate between
them using the name.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Remote write/read has Name to not confuse the meaning of the field with
scrape job names.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Split queue/client label into remote_name and url labels.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Don't allow for duplicate remote write/read configs.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Ensure we restart remote write queues if the hash of their config has
not changed, but the remote name has changed.

Signed-off-by: Callum Styan <callumstyan@gmail.com>

* Include name in remote read/write config hashes, simplify duplicates
check, update test accordingly.

Signed-off-by: Callum Styan <callumstyan@gmail.com>
2019-12-12 12:47:23 -08:00
..
chunked.go remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703) 2019-08-19 21:16:10 +01:00
chunked_test.go remote-read: streamed chunked server side; Extended protobuf; Added chunked, checksumed reader (#5703) 2019-08-19 21:16:10 +01:00
client.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
client_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
codec.go Pushdown aggregator group by through read hint (#6401) 2019-12-05 14:06:28 +00:00
codec_test.go Replaced test validations with testutils on storage/remote/codec_test.go (#6097) 2019-10-07 11:35:53 -06: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 Review feedback. 2019-03-18 20:31:12 +00:00
max_gauge.go resolve race condition in maxGauge (#5647) 2019-06-13 20:55:08 +01:00
queue_manager.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
queue_manager_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
read.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
read_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
storage.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
storage_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
write.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00
write_test.go Add config option for remote job name (#6043) 2019-12-12 12:47:23 -08:00