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

Add Link to Alertmanager #99

Open
f-booh opened this issue Mar 5, 2021 · 5 comments
Open

Add Link to Alertmanager #99

f-booh opened this issue Mar 5, 2021 · 5 comments

Comments

@f-booh
Copy link

f-booh commented Mar 5, 2021

It would be very helpful to have a link to Alertmanager to silence an alert directly from the dashboard.

You have to add all labels to the link, and need a way to configure the public url of alertmanager, e.g.

https://alertmanager.mydomain.org/#/silences/new?filter=%7Balertname%3D%22SomeAlert%22%2C%20instance%3D%22myserver%22

For silenced alerts, a link to expire a silence would be helpful.

@cryptobioz
Copy link
Member

Indeed, it would be cool! However, I may not have time to implement this feature. Please, feel free to open a PR :)

@dj-holgie
Copy link

dj-holgie commented Oct 22, 2021

Weve realized this directly in grafana with overrides -> data links and data fields variables.

@Matt-labor
Copy link

Weve realized this directly in grafana with overrides -> data links and data fields variables.

Wow, I've tried this before, but I didn't figure out how to use the data variable in data links to silence or delete different alerts. Can you be more specific, please?

@dj-holgie
Copy link

This is how we do it

Table Options -> Override Fields with Name -> Data Links

https://alertmanager.xxx.net/#/silences/new?filter={alertname%3D"${__data.fields.alertname}"%2C severity%3D"${__data.fields.severity}"%2C hostname%3D"${__data.fields.hostname}"}

@Matt-labor
Copy link

This is how we do it

Table Options -> Override Fields with Name -> Data Links

https://alertmanager.xxx.net/#/silences/new?filter={alertname%3D"${__data.fields.alertname}"%2C severity%3D"${__data.fields.severity}"%2C hostname%3D"${__data.fields.hostname}"}

Thanks, this works. It jumps to the alertmanager silencing page of this alert. And also I'm trying to create such a silencing rule with just one click. Which may use the alertmanager api v2?

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

4 participants