# SPDX-FileCopyrightText: The matrix-alertmanager-receiver Authors # SPDX-License-Identifier: GPL-3.0-or-later http: port: 12345 matrix: homeserver-url: https://matrix.example.com user-id: "@user:matrix.example.com" access-token: secret room-mapping: warnings: !somewhere:example.com templating: external-url-mapping: "alertmanager:9093": https://alertmanager.example.com computed-values: - values: color: white - values: color: orange when-matching-labels: severity: warning - values: color: red when-matching-labels: severity: critical - values: color: limegreen when-matching-status: resolved firing-template: '

{{ .Alert.Status | ToUpper }} {{ if .Alert.Labels.name }} {{ .Alert.Labels.name }} {{ else if .Alert.Labels.alertname }} {{ .Alert.Labels.alertname }} {{ end }} >> {{ if .Alert.Labels.severity }} {{ .Alert.Labels.severity | ToUpper }}: {{ end }} {{ if .Alert.Annotations.description }} {{ .Alert.Annotations.description }} {{ else if .Alert.Annotations.summary }} {{ .Alert.Annotations.summary }} {{ end }} >> {{ if .Alert.Annotations.runbook }} Runbook | {{ end }} {{ if .Alert.Annotations.dashboard }} Dashboard | {{ end }} Silence

'