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

Trigger by "Less Than" #368

Closed
1337newbee opened this issue Feb 16, 2016 · 12 comments
Closed

Trigger by "Less Than" #368

1337newbee opened this issue Feb 16, 2016 · 12 comments

Comments

@1337newbee
Copy link

Currently, all the alerts are triggered by "Bigger Than", say if I have a metrics as "memory free"
I wanted the warning when memory free is less than 10% and an error when it's less than 5%.

I can use 1-memory-used to calculate memory available, but it will be better if we have that feature supported as well.

@scobal
Copy link
Owner

scobal commented Feb 16, 2016

Hi Tracy,

Does setting the error threshold lower than warning threshold give you what you want here?

Mark

@1337newbee
Copy link
Author

I don't think so. we still want to keep the warning as lower than error. but different ways of trigger it.
Instead of memory-used > 90%
I'd like memory-available < 10% to trigger the alert

@scobal
Copy link
Owner

scobal commented Feb 16, 2016

Hmm perhaps I'm missing something. Am I right in thinking you have a metric like:

server.memory-available

And the value can be something like a range of 0..4000 to indicate megabytes available?

@1337newbee
Copy link
Author

well, my metrics are from Graphite, so I have all of the memory metrics
memory-used
memory-free
memory-cached
memory-buffered

To get memory available, I will add memory-free+memory-buffered+memory-cached, plus, they will be all in percentage (by dividing the memory_total), so range would be 0-100

@scobal
Copy link
Owner

scobal commented Feb 16, 2016

OK great :-)

So you'd like Seyren to warn when the value is between 10-5 and to error when the value is below 5?

@1337newbee
Copy link
Author

Exactly

@scobal
Copy link
Owner

scobal commented Feb 16, 2016

Cool. So unless I'm still missing something, it sounds like you need to set the warn threshold to 10 and the error threshold to 5.

@1337newbee
Copy link
Author

it sounds right. Just how the threshold will be triggered. If I put the current values into seyren, it will trigger
the alert when my memory_available larger than 19 and trigger error when memory_available bigger than 5.

But in the real case, we want alert triggered if memory_available is less than 10

@scobal
Copy link
Owner

scobal commented Feb 17, 2016

Have you tried setting the warn threshold to 10 and the error threshold to 5? Seyren will handle what you're describing automatically.

@scobal
Copy link
Owner

scobal commented Feb 19, 2016

@1337newbee let me know if you managed to get this working please

@1337newbee
Copy link
Author

It worked very well for me. Thanks.
Just wondering, if the bigger than (and smaller than ) case also includes "equal".
For instance, if the metric is smaller/equal than the threshold, seyren alert will be triggered?

@scobal
Copy link
Owner

scobal commented May 1, 2016

@1337newbee not sure off the top of my head but please let me know if you find out!

@scobal scobal closed this as completed May 1, 2016
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

No branches or pull requests

2 participants