-
What Grafana version and what operating system are you using?
8.3.3 -
What are you trying to achieve?
Hello all,
is it possible to remove the link to Grafana in a Discord alert template?
What is meant is what can be seen in the screenshot.
I would like to output only text in a Discord channel, but there should be no link to Grafana.
Thank you.
-
How are you trying to achieve it?
I have already created my own template for the Discord message:
{{ define "Discord" }}
{{ if gt (len .Alerts.Firing) 0 }}
{{ range .Alerts.Firing }} {{ template "alert" .}} {{ end }}
{{ end }}
{{ if gt (len .Alerts.Resolved) 0 }}
{{ range .Alerts.Resolved }} {{ template "alert" .}} {{ end }}
{{ end }}
{{ end }}
Alert:
{{ define "alert" }}
{{ .Labels.alertname }}
{{ if gt (len .Annotations) 0 }}
{{ range .Annotations.SortedPairs }}
{{ .Name }}: {{ .Value }}
{{ end }}
{{ end }}
{{ end }}
-
What happened?
-
What did you expect to happen?
The [FIRING:1] (TestAlert Grafana) should not be displayed. -
Can you copy/paste the configuration(s) that you are having problems with?
See above -
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
/// -
Did you follow any online instructions? If so, what is the URL?
///