28 lines
806 B
YAML
28 lines
806 B
YAML
http:
|
|
addr: :8000
|
|
ntfy:
|
|
baseurl: http://ntfy.ntfy:2586
|
|
notification:
|
|
topic: alerts
|
|
priority: |
|
|
status == "firing" ? "urgent" : "default"
|
|
tags:
|
|
- tag: heavy_check_mark
|
|
condition: status == "resolved"
|
|
- tag: rotating_light
|
|
condition: status == "firing"
|
|
templates:
|
|
title: >-
|
|
{{ if eq .Status "resolved" }}Resolved: {{ end -}}
|
|
{{ if index .Annotations "summary" -}}
|
|
{{ index .Annotations "summary" }}
|
|
{{ 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" }}
|