Alert not working when condition is less than and equal to -n%
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.
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.
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 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
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:
The TICKScript appears to set crit var to -5 and then properly use the crit function on the alert
Let me know what I'm missing @goller
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.