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

Send logs of success oec action to alert activity log #51

Open
freeseacher opened this issue Jan 6, 2022 · 1 comment
Open

Send logs of success oec action to alert activity log #51

freeseacher opened this issue Jan 6, 2022 · 1 comment

Comments

@freeseacher
Copy link

freeseacher commented Jan 6, 2022

I'm forwarding opsgenie snooze action to our internal alertmanager. My flow looks like

  • user receives alert
  • press snooze action and sets time
  • oec got request for snooze and launches my script
  • my script creates request to alertmanager and got silence_id or error

I want to send that silence_id to opsgenie activity logs or an error if it happens.
Looks like there are way how to send an error to opsgenie but no way how to send success.
the only doubt is discardScriptResponse that set to true for that request. i've found no way how to change this to false

  • alternatives i considered
    i can use notes to send success. But most of my users uses slack as notification channel and forwards all evens to it. So i will have two notifications for this one action.
    One for alert being snoozed and one it was silenced.

Also i can use always exit code 1 and message. But that looks ugly and creates unnecessary complications

@freeseacher freeseacher changed the title Send logs for success oec action Send logs of success oec action to alert activity log Jan 6, 2022
@metehanozturk
Copy link
Contributor

Hi @freeseacher, you can track the progress of the issue from this ticket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants