hi, for now I don’t need the silence and source link, I want a simple and informative alert message, can I remove it from the alert message on telegram?
my Grafana installed version is v9.3.0

hi, for now I don’t need the silence and source link, I want a simple and informative alert message, can I remove it from the alert message on telegram?
my Grafana installed version is v9.3.0

@iwanmii Welcome to the Grafana forum.
Yes, you can remove those lines by editing your template, which should be found in this section:
hi @grant2 thanks for your response,
but I don’t understand, do I have to make my own template? Currently I do not have my own template
@georgerobinson Where can @iwanmii edit his Telegraf template? He apparently has no templates defined.
thanks @grant2
hi @georgerobinson please your advice
Hi! If you don’t have any custom templates then Telegram uses the default template. The default template cannot be editied, but you can copy what you need from the default template to a custom template.
Hi! The name of a template should be unique, it’s not recommended to create custom templates that use the same name as templates in the default template. You also cannot write Go code in a template, just text/template.
Hi @georgerobinson any suggestions? or an example of a simple and informative alert
Hi! This template is invalid because it also contains Go code. You just want the template. For example, all the text in DefaultTemplateString.
I’m looking to edit the default template, but this link appears to be dead.
Yes, the link is no longer available, it may have changed. I also don’t know which one can be used. Can you remove Source and Silence in the alert sent via Telegram?
Any updates on this question? I also would like to delete the links for Source and Silence in telegram notification as it makes message long.
Found the valid github page alerting/templates/default_template.go at main · grafana/alerting · GitHub
Have to copy the value of DefaultTemplateString variable.
Create a new template in Grafana with above and remove the
{{ if gt (len .SilenceURL) 0 }}Silence: {{ .SilenceURL }}
{{ end }}
part.
This was tested in Grafana v11.
Weird there is no proper official doc on this.