-
Notifications
You must be signed in to change notification settings - Fork 12.1k
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
Alerting: Slack Alert title links to alerting/list
rather than the alert-rule
#69248
Comments
Hi! 👋 The Slack title links to Your complaint |
Thanks @grobinson-grafana, would be nice if there is only a single alert to link directly to it |
This is indeed not a great UX and this is the case for many contact points. We need to change https://github.com/grafana/alerting/blob/55b8d71c7890fb3d685790a6e3a6c1c8b0c5ebc9/receivers/slack/slack.go#LL290C2-L290C90 to be the |
Is this done ? would love to pick this up |
There are users who miss the ability to customise Alert Slack Notification title link destination. https://community.grafana.com/t/change-alert-title-url-from-alert-lists-to-panel-url/82892 |
The solution I described here works for me to customize links, grafana version 9.3.2 but works for grafana 10 too (why wouldn't it work, rendering URL is slack's feature, not grafana's) Example contact point title is:
With this configured, the alert's title would be of alert's As for pointing URL to the exact alert rule, I've not tried it myself but I'd expect it to be possible via the alert's |
I appreciate the suggestion but this is a workaround, not a solution. I have to enter that value to each of dozens of contact points and ensure they are not changed when I could simply have a proper centralized notification template that did the right thing. |
This PR addresses the alert-rule link grafana/alerting#109 |
Now running 10.3 - good to see the slack title does link to the alert rule however orgId is still missing |
What went wrong?
What happened:
Since moving to Grafana 9 and unified alerting, the slack title only links to <grafana_base_url>/alerting/list - this isn't helpful as you need to search for the alert-rule in a firing state AND potentially swap orgs as
orgId
is not specified with the title.What did you expect to happen:
The slack title should contain the orgId and link to either the dashboard/panel, failing that the generator URL.
How do we reproduce it?
Step 1:
Open grafana with multiple orgs available, choose an org to create an alert-rule in.
Step 2:
Create an alert-rule with a dashboard/panel link and a Slack contact point to send the alert to (the default template is fine).
Step 3:
Cause the alert-rule to go into an alerting state
Step 4:
Click the Slack title, you will find there is no
orgId
parameter and it will link to <grafana_base_url>/alerting/listWhat Grafana version are you using?
Grafana 9.3.0, v9.4, v9.5
Optional Questions:
Is the bug inside a Dashboard Panel?
No response
Grafana Platform?
A package manager (APT, YUM, BREW, etc.)
User's OS?
MacOS Ventura
User's Browser?
Firefox
Is this a Regression?
None
Are Datasources involved?
No response
Anything else to add?
No response
The text was updated successfully, but these errors were encountered: