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

templates: add (org-aware) AlertingListURL to ExternalData and fix Slack receiver #241

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

macabu
Copy link

@macabu macabu commented Sep 2, 2024

Some of the receivers use the /alerting/list for grouping alerts when their generator URLs aren't the same.

However these alerting list URLs are not "org-aware".

Instead of passing an orgId to every receiver constructor, we can enrich the template (extended) data with a URL that has the ?orgID=N in case it exists in the common annotations, to be reused by any receiver.

I've also updated the Slack receiver as an example, since it fixes #69248. If you approve of the approach, I can update the other receivers.

Some of the receivers use the /alerting/list for grouping alerts
when their generator URLs aren't the same.

However these alerting list URLs are not "org-aware".

Instead of passing an orgId to every receiver constructor,
we can enrich the template (extended) data with a URL that
has the ?orgID=N in case it exists in the common annotations,
to be reused by any receiver.
@macabu macabu requested a review from a team as a code owner September 2, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

Alerting: Slack Alert title links to alerting/list rather than the alert-rule
1 participant