Hi everyone, my compagny stated to use Grafana, Loki and Prometheus for monitoring.
All was going grate until I came across the Alerting part.
After long search on the forum and git I found most of what I needed.
Thanks to a moderator posting on this topic (: https://localhost:3000/t/how-to-use-alert-message-templates-in-grafana/67537) I manage to get this output in my Slack channel :
This is the template :
{{ with $values }}
{{ range $k, $v := . }}
Host: {{$v.Labels.Host}}
Variable: {{$v.Labels.variable}}
Seuil d’alerte: {{ $v }}
{{ end }}
{{ end }}
My question is : Where do I declare Variable = CPU ( for this alert) and Host = Hostname of my device.
I see you posted your question to another thread, so go ahead and reply there to my question above about the complete query (incl the reduce function, the alerting expression, etc.).