diff --git a/victoria-metrics/alertmanager-ntfy.config.yml b/victoria-metrics/alertmanager-ntfy.config.yml index c1333bd..730b9a8 100644 --- a/victoria-metrics/alertmanager-ntfy.config.yml +++ b/victoria-metrics/alertmanager-ntfy.config.yml @@ -19,6 +19,9 @@ ntfy: {{ else -}} {{ index .Labels "alertname" }} {{ index .Labels "alertgroup" }} + {{ range $key, $value := .Labels -}} + {{ if not (eq $key "alertname" "alertgroup") }}{{ $value }} {{ end -}} + {{ end -}} {{ end -}} description: | {{ index .Annotations "description" }}