chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

kapacitor rules [tasks] disable option

Open chetu opened this issue 9 years ago • 9 comments

Need to option to mute kapacitor tasks from chronograf UI.

Right now we have to do it from kapacitor cli :

  • kapacitor list tasks
  • kapacitor disable taskid

The requirement to mute rules is required when we plan downtime/maintenance to production servers and avoid all alerts during maintenance period.

chetu avatar Feb 06 '17 03:02 chetu

@chetu thanks for writing in and absolutely we need to do this!

goller avatar Feb 06 '17 15:02 goller

Yes, it will be very useful for us as well. Also I want to have the ability to write some comments when I disable tasks or I wan`t to disable it for some time (it should be automatically enabled after some time)

alyan2008 avatar Feb 09 '17 08:02 alyan2008

@alyan2008 I agree that recording comments about alerts is important.

@nathanielc does kapacitor have facilities for adding "notes" to a task? I don't see anything in the API (https://github.com/influxdata/kapacitor/blob/master/client/API.md#tasks).

goller avatar Feb 09 '17 15:02 goller

@goller No it does not. Slightly related we do plan to add a silence feature to Kapacitor that would allow you to silence individual alerts without needing to disable the entire task. That feature would accept "notes" about why an alert was silenced. Although there is some overlap here so we should make sure the use case is clear.

nathanielc avatar Feb 09 '17 15:02 nathanielc

Hi @chetu and @alyan2008, @121watts and I have PR #868 up that implements disabling and enabling of the alerts.

We are hoping to get it merged in for today's release!

goller avatar Feb 10 '17 20:02 goller

We were able to get the disable/enable into 1.2.0-beta2 release yesterday.

@alexpaxton styled it like this on the alerts page:

kapacitor-checkboxes

Try it out!

goller avatar Feb 11 '17 15:02 goller

Hey guys, it doesn't work when you have more then 1 alert. It always disables/enables first one.

alekseyp avatar Feb 28 '17 01:02 alekseyp

@alekseyp Just reproduced this. Expect a hotfix soon.

goller avatar Feb 28 '17 01:02 goller

@goller @alekseyp +1 (It always disables/enables the first alert rule).

lin-credible avatar Feb 28 '17 03:02 lin-credible