prometheus/storage/remote
Goutham Veeramachaneni 1af81dc5c9
Update sent timestamp when write irrecoverably fails.
We have an alert that fires when prometheus_remote_storage_highest_timestamp_in_seconds - prometheus_remote_storage_queue_highest_sent_timestamp_seconds
becomes too high. But we have an agent that fires this when the remote "rate-limits" the user.

This is because prometheus_remote_storage_queue_highest_sent_timestamp_seconds doesn't get updated
when the remote sends a 429.

I think we should update the metrics, and the change I made makes sense. Because if the requests fails
because of connectivity issues, etc. we will never exit the `sendWriteRequestWithBackoff` function. It only
exits the function when there is a non-recoverable error, like a bad status code, and in that case, I think
the metric needs to be updated.

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
2022-01-03 11:13:48 +01:00
..
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 Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
client.go Enable HTTP2 again (#9398) 2021-09-26 23:16:12 +02:00
client_test.go tests: Move from t.Errorf and others. (Part 2) (#9309) 2021-09-13 21:19:20 +02:00
codec.go storage: fix bug #10027 in iterators' Seek method 2021-12-16 12:07:35 +01:00
codec_test.go storage: expose bug in iterators #10027 2021-12-16 12:02:15 +01:00
ewma.go Replace sync/atomic with uber-go/atomic (#7683) 2020-07-30 13:15:42 +05:30
intern.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
intern_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
max_timestamp.go Remote: Do not collect non-initialized timestamp metrics (#8060) 2020-10-15 23:53:59 +02:00
metadata_watcher.go Fix imports formatting 2021-11-02 19:52:34 +01:00
metadata_watcher_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
queue_manager.go Update sent timestamp when write irrecoverably fails. 2022-01-03 11:13:48 +01:00
queue_manager_test.go Review feedback 2021-12-09 14:40:44 +00:00
read.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
read_handler.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
read_handler_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
read_test.go storage/remote: use t.TempDir instead of ioutil.TempDir on tests (#9811) 2021-11-19 15:21:45 -05:00
storage.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
storage_test.go storage/remote: use t.TempDir instead of ioutil.TempDir on tests (#9811) 2021-11-19 15:21:45 -05:00
write.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
write_handler.go Log time series details for out-of-order samples in remote write receiver (#9894) 2021-12-08 15:07:51 +00:00
write_handler_test.go Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
write_test.go storage/remote: use t.TempDir instead of ioutil.TempDir on tests (#9811) 2021-11-19 15:21:45 -05:00