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

Feature Request: Add acknowledgement workflow #2814

Open
asachs01 opened this issue Mar 18, 2019 · 2 comments
Open

Feature Request: Add acknowledgement workflow #2814

asachs01 opened this issue Mar 18, 2019 · 2 comments

Comments

@asachs01
Copy link

Expected Behavior

As a user, I'd like to have an acknowledgement workflow in Sensu Go that works like the following:

  • An alert is received via a communication handler (Slack, email, SMS, etc)
  • A link is supplied in that handler to acknowledge/silence the alert
  • The link would be prepopulated with whoever acknowledged/silenced the alert and for how long

Current Behavior

This behavior doesn't exist

Possible Solution

Ideally, this could be an extension of how contact routing worked in Sensu Enterprise. A couple of things come to mind:

  • Templates: the alerts could be configured via template and the user, silenced duration, and reason could be part of that
  • This workflow could tie in with the paging/alerting handlers like Pagerduty, Victorops, and Opsgenie and silence/ack alerts there as well

Context

Original request:

As an alert comes out to whichever destination (Slack/Email/etc), it would be good to be able to supply an acknowledgement link that can be clicked, it would auto silence the check for a configurable period (maybe default 30minutes).
It could then also lookup the handlers the event was sent to and just send a basic notification back out saying "host/checkname was acknowledged by user x".
The idea around the default silence period would be so that if it requires more than 30 minutes to resolve the user simply extends it.
Likewise if they acknowledge the issue but then never do anything about the silence entry would then expire - so there is no danger of things being ignored.

We have quite a large IT team and a feature like this just helps situations where multiple engineers might try to jump on an issue at the same time - and makes the ownership of the problem very clear.
@calebhailey calebhailey added the component:backend Sensu Backend improvements label May 6, 2020
@calebhailey
Copy link

Love this!

I'd bucket this one under our need for a "Webhooks API", which would facilitate two-way integrations such as you've described here (and many more).

Our assumptions on how we'd approach this up until now have always been that a Webhooks API is basically a shim in front of the Events API. We have also thought of adding support for new Webhook Sensu resource that contained a mapping of incoming event payloads/fields to Sensu Event fields/payloads (and potentially adding support for some default values). Creating a new Webhook resource would create a new Webhook API route or endpoint (e.g. /webhooks/slack).

This is still floating around on our roadmap for implementation in 2020, so stay tuned!

@stale
Copy link

stale bot commented Nov 2, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 2, 2020
@stale stale bot closed this as completed Nov 9, 2020
@asachs01 asachs01 reopened this Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants