-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
*: improve latency when streaming series from Prometheus (#3146)
I've found that when requesting many series (in the order of ten thousands), the Thanos sidecar spends half of its time computing the number of received series. To calculate the number of series, it needs to build a label-based identifier for each chunked series and compare it with the previous identifier. Eventually this number is only used for logging and tracing so it doesn't feel like it's worth the penalty. This change adds an histogram metric, `thanos_sidecar_prometheus_store_received_frames`, which tracks the number of frames per request received from the Prometheus remote read API (buckets: 10, 100, 1000, 10000, 100000). It can be used to evaluate whether expensive Series requests are being performed. Signed-off-by: Simon Pasquier <spasquie@redhat.com>
- Loading branch information
1 parent
24a8b58
commit 1078fe7
Showing
4 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters