-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix
MimirIngesterStuckProcessingRecordsFromKafka
(#9855)
* fix `MimirIngesterStuckProcessingRecordsFromKafka` The alert `MimirIngesterStuckProcessingRecordsFromKafka` relied on the metric `cortex_ingest_storage_reader_buffered_fetch_records_total ` provided by the Kafka client to identify wether we had stuck buffers or not. Now that we've implemented concurrent fetching from Kafka and bypass the client's polling function we needed an equivalent metric when using concurrent fetching. This PR does that; In addition to that - the metric also takes the client's buffered records In case we do use a mixture of non-concurrent fetching and concurrent fetching. * Add changelog Signed-off-by: gotjosh <[email protected]> * reestrcture metric assignment Signed-off-by: gotjosh <[email protected]> * Remove the registry Signed-off-by: gotjosh <[email protected]> * Fix helm Signed-off-by: gotjosh <[email protected]> * Protected the fetchers Signed-off-by: gotjosh <[email protected]> * Change log to debug Signed-off-by: gotjosh <[email protected]> * make `BufferedRecords` int64 and remove debug logs Signed-off-by: gotjosh <[email protected]> * Move buffered records increment location Signed-off-by: gotjosh <[email protected]> * Use atomic functions for locking / unlocking the client and fetcher. Signed-off-by: gotjosh <[email protected]> * assert on buffered records Signed-off-by: gotjosh <[email protected]> * reset the records buffer when `stop()` is called. Signed-off-by: gotjosh <[email protected]> * Fix test Signed-off-by: Marco Pracucci <[email protected]> * Changed how buffered records are tracked, improved unit tests and used atomic instead of a mutex to protect client/fetcher access Signed-off-by: Marco Pracucci <[email protected]> * Fix Signed-off-by: Marco Pracucci <[email protected]> * Fix comment Signed-off-by: Marco Pracucci <[email protected]> * Fix comment Signed-off-by: Marco Pracucci <[email protected]> * Get back to Josh implementation of buffered records tracking which has better coverage of all buffered records Signed-off-by: Marco Pracucci <[email protected]> * Use atomic for fetcher too Signed-off-by: Marco Pracucci <[email protected]> --------- Signed-off-by: gotjosh <[email protected]> Signed-off-by: Marco Pracucci <[email protected]> Co-authored-by: Marco Pracucci <[email protected]>
- Loading branch information
Showing
9 changed files
with
477 additions
and
156 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
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
Oops, something went wrong.