Files
grafana-loki-prometheus-all…/config/teams-template.tmpl
T
2025-03-17 16:06:35 +00:00

52 lines
1.3 KiB
Cheetah

{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "{{ if eq .Status "firing" }}🔥{{ else }}✅{{ end }} {{ .Status | title }}: {{ .CommonLabels.alertname }}",
"weight": "Bolder",
"size": "Large"
},
{
"type": "TextBlock",
"text": "{{ .CommonAnnotations.summary }}",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "Status",
"value": "{{ .Status | title }}"
},
{
"title": "Severity",
"value": "{{ .CommonLabels.severity | title }}"
}
]
},
{
"type": "TextBlock",
"text": "{{ .CommonAnnotations.description }}",
"wrap": true
}
],
"actions": [
{
"type": "Action.OpenUrl",
"title": "View in Alertmanager",
"url": "{{ .ExternalURL }}"
}
]
}
}
]
}