Hi team,
I am setting up the teams webhook and getting test alert just [FIRING:1] (HostOutOfDisk node-exporter /dev/
like this in title and nothing printing in the body of the notification and this title also disapper from channel, its just shows once. Pls help me to understand the issue. grafana version 11.0.4 and Pls refer below files.
apiVersion: 1
contactPoints:
- orgId: 1
name: teams
receivers:
- uid: teams_receiver
type: teams
settings:
recipient: Alert-Devops
url: $teams
text: |
{{ template "default.newline" . }}
title: |
{{ template "default.title" . }}
template.yaml: |-
apiVersion: 1
templates:
- name: custom_tpl
template: |
{{ define "default.newline" }}
{{ with .Alerts }}
{{ range . }}
Alert: {{ if .Labels.alertname }}{{ .Labels.alertname }}{{ else }}N/A{{ end }}
Instance: {{ .Labels.instance }}
Summary: {{ .Annotations.summary }}
Status: {{ if .Status }}{{ .Status }}{{ else }}unknown{{ end }}
{{ end }}
{{ end }}
{{ end }}