chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Alert not working when condition is less than and equal to -n%

Open gaurav-moonfroglabs opened this issue 9 years ago • 5 comments

So i added the percentage as negative change from last 5 min in chronograf. The alerts are coming if i make percentage change as positive but not working as negative.

gaurav-moonfroglabs avatar Dec 15 '16 06:12 gaurav-moonfroglabs

Hey @gaurav-moonfroglabs I'm able to see the issue right now. I've been talking to @nhaugo and I think we'll improve the UI to add your use case as well as make the clear what the alert currently does.

Right now, this alert will look for a change that is +/- change%. Basically, it takes the absolute value of the change % and sees if it breaks that amount. However, as you point out, it we be great to specify the direction of the change.

goller avatar Dec 21 '16 00:12 goller

Thanks @goller , also one more point i saw is we should be able to configure multiple slack channels and can divide the alerts on those channels as per need.

Because there can be multiple teams using same setup and has setup different alerts. And every team wants to send alert on there channel for there alerts only.

gaurav-moonfroglabs avatar Dec 21 '16 06:12 gaurav-moonfroglabs

@gaurav-moonfroglabs good point... we have a few cases around that issue where we want some per alert settings for kapacitor alert nodes like slack: #635, #638, #639, and #690

goller avatar Dec 21 '16 06:12 goller

Okay I'm having trouble reproducing this issue. I've POSTed a rule with the "less than or equal to n%" condition, with the following response: screen shot 2016-12-29 at 10 17 49 am The TICKScript appears to set crit var to -5 and then properly use the crit function on the alert screen shot 2016-12-29 at 10 38 23 am Let me know what I'm missing @goller

willpiers avatar Dec 29 '16 17:12 willpiers

This may also be related to #714. I am going to close this for now and do some testing around percentage change with the fixes that have been added. I'll reopen if I still see issues.

nhaugo avatar Jan 04 '17 01:01 nhaugo