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

Dynamic Alert Rules #1251

Closed
changwuf31 opened this Issue Dec 2, 2015 · 5 comments

Comments

Projects
None yet
2 participants
@changwuf31
Copy link

changwuf31 commented Dec 2, 2015

So we can allow something like

IF node_load1 > 2 * count(node_cpu{mode="idle"}) by (instance) FOR 5m
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 2, 2015

That's a valid rule, though load average isn't a particularly useful metric for alerting these days. We'd generally encourage alerting on something that directly affects users such as latency or error rates.

@changwuf31

This comment has been minimized.

Copy link
Author

changwuf31 commented Dec 3, 2015

It runs without failure, yes.. but it does not return the expected result.
And yes, we'd love to use latency and error rates as alert trigger, still trying to figure how best to implement that.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 3, 2015

Try:

node_load1 > on (instance) 2 * count by (instance)(node_cpu{mode="idle"})

@changwuf31

This comment has been minimized.

Copy link
Author

changwuf31 commented Dec 3, 2015

@brian-brazil It works, thank you 👍

@changwuf31 changwuf31 closed this Dec 3, 2015

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.