Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an alert for when querier index cache churn rate is too high. #26

Closed
wants to merge 1 commit into from

Conversation

cstyan
Copy link
Contributor

@cstyan cstyan commented Apr 3, 2020

It's been a while since I did anything interesting with queries/label substitution and alerts, so let me know what we could change here to make sure this alert is useful. I based the entries in cache < 10m bit based on our env with the lowest value for entries in cache / churn rate / 60s being an average of entry in cache for 12+ minutes, but for other environments we have anything from 30-60 minutes.

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

@cstyan cstyan requested a review from gouthamve April 3, 2020 19:52
Signed-off-by: Callum Styan <callumstyan@gmail.com>
@cstyan
Copy link
Contributor Author

cstyan commented Apr 13, 2020

bump @gouthamve

@@ -226,6 +226,22 @@ local windows = [
|||,
},
},
{
alert: 'CortexQuerierIndexCacheChurnRate',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The metrics here are for the in-mem fifo-cache imo. We kinda don't care about the fifocache churn rate, but rather about the memcache churn rates.

The query should be sum without (job) (memcached_current_items) / sum without (job) (rate(memcached_items_evicted_total[5m])) < 3600.

It shouldn't be for just index cache, but rather all caches.

Base automatically changed from master to main March 3, 2021 14:44
@gouthamve gouthamve requested a review from a team as a code owner March 3, 2021 14:44
@CLAassistant
Copy link

CLAassistant commented Jun 15, 2022

CLA assistant check
All committers have signed the CLA.

@cstyan cstyan closed this Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants