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

MAIN-2798 - Opsgenie slack #1673

Merged
merged 9 commits into from
Jan 12, 2025
Merged

MAIN-2798 - Opsgenie slack #1673

merged 9 commits into from
Jan 12, 2025

Conversation

Avi-Robusta
Copy link
Contributor

@Avi-Robusta Avi-Robusta commented Jan 2, 2025

this adds additional params to every action from a slack callback
slack_username - the user that clicked on the slack callback
slack_message - has metadata that can be used to change the slack message on button click

customPlaybooks:
 - actions:
 # adds link to opsgenie alert in slack
   - opsgenie_link_enricher:
       url_base: robusta-test-url.app.eu.opsgenie.com #needed here, url isnt in opsgenie config
   - ack_slack_opsgenie_enricher: {}
   triggers:
   - on_prometheus_alert: {}

@Avi-Robusta Avi-Robusta changed the title Opsgenie slack MAIN-2798 - Opsgenie slack Jan 7, 2025
@Avi-Robusta Avi-Robusta marked this pull request as ready for review January 7, 2025 07:13
Copy link
Contributor

@moshemorad moshemorad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few comments, let me know what do you think.

playbooks/robusta_playbooks/sink_enrichments.py Outdated Show resolved Hide resolved
playbooks/robusta_playbooks/sink_enrichments.py Outdated Show resolved Hide resolved
src/robusta/core/reporting/base.py Outdated Show resolved Hide resolved
playbooks/robusta_playbooks/sink_enrichments.py Outdated Show resolved Hide resolved
playbooks/robusta_playbooks/sink_enrichments.py Outdated Show resolved Hide resolved
src/robusta/core/sinks/opsgenie/opsgenie_sink.py Outdated Show resolved Hide resolved
src/robusta/core/sinks/opsgenie/opsgenie_sink.py Outdated Show resolved Hide resolved
src/robusta/integrations/receiver.py Outdated Show resolved Hide resolved
playbooks/robusta_playbooks/sink_enrichments.py Outdated Show resolved Hide resolved
src/robusta/core/sinks/slack/slack_sink.py Outdated Show resolved Hide resolved
Copy link
Contributor

@moshemorad moshemorad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few small things.

moshemorad
moshemorad previously approved these changes Jan 9, 2025
@Avi-Robusta
Copy link
Contributor Author

Screen Shot 2025-01-12 at 9 24 00 added docs

@moshemorad moshemorad self-requested a review January 12, 2025 09:23
@Avi-Robusta Avi-Robusta merged commit 5b02050 into master Jan 12, 2025
7 checks passed
@Avi-Robusta Avi-Robusta deleted the opsgenie-slack branch January 12, 2025 11:46
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

Successfully merging this pull request may close these issues.

2 participants