-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[2.0] InfluxDB notification rule doesn't send Slack message on status change #17809
Comments
@mildebrandt thanks for opening this issue. We've got a fix in place that has been making its way into the code base. As a temporary work around, if you don't use |
Thanks for the update, looking forward to that! Yes, "is equal to" works....but of course sends multiple messages until it's resolved. Another related thing we noticed, we have a check that's scheduled every 2 minutes and a notification that's scheduled every 10 minutes. We get 5 notifications every time the notification fires (I'm assuming for the 5 times the check ran). Does that sound right to you, or do we need another issue opened? |
@mildebrandt how many series are in the check? You can figure out how many series are there by running
|
So, the check recently was changed to check every 1 minute...and the notification was changed to every 2 minutes. When I run your query for that check, it's 2. |
I'm happy to see this issue and response :). For the record I hit the same behavior for HTTP notifications (and assumed I was doing something wrong). I'm guessing the fix that's in the works is independent of destination, just figured this was worth noting in case any other non-Slack folks come across this. Thanks! |
@mildebrandt clarification question: when you get 5 (or 2, in the subsequent case) notifications, are the Checks evaluating to a state that should be triggering notifications? Or is there a notification for each of the Check windows in the Rule interval no matter what the Check evaluates to? |
I think I understand what you're asking. Let's see if this helps:
So, I'd get two slack notifications for both checks that saw the Crit status. I would like just one. I don't know what happens if the status goes back to Hopefully that helps. |
Ok, thanks @mildebrandt ! |
I believe that we have recently fixed this issue in cloud 2 and should have the fix available in the next influxdb oss release. Specifically, the state changes functionality should now work. |
That's great, I'll watch for the next release. Thanks! |
Just writing in to note that my state change notifications did indeed start working after that last release. Yay and thank you! |
Sorry, I forgot to come back. This works for me now as well. Thanks! |
I have the check applied and the notification rule set from ANY to ANY. But still I don't get any notification on slack channel. My check is schedule every 5m with offset of 2s @mildebrandt any idea, how this can be solved? I see you have got this resolved. my influx versions are:- |
Steps to reproduce:
Expected behavior:
A slack notification to be sent when the state changes.
Actual behavior:
No notification happens.
Environment info:
Docker container of InfluxDB 2.0.0 beta 8
I don't know if it's only Slack, but that's what we're testing with. When the rule is changed to the "is equal to" condition, we get the slack message successfully. So the endpoint and the check work correctly.
When I look at the history of the notification rule, the table says the state changed to "crit" was seen and it says a notification was sent. But we don't get any notification in Slack.
The text was updated successfully, but these errors were encountered: