As it turns out, it's not possible to reuse a YAML anchor. At least in Rust's `serde_yaml`, only the final definition is used. All references, even those that appear before the final definition, use the same definition. Thus, each application that refers to its own URL in its match criteria needs a unique anchor.
88 lines
1.9 KiB
YAML
88 lines
1.9 KiB
YAML
alertmanager:
|
|
url: http://alertmanager.victoria-metrics:9093
|
|
|
|
system_wide:
|
|
alerts:
|
|
- alertgoup: Active Directory
|
|
- alertgoup: Longhorn
|
|
- alertgoup: PostgreSQL
|
|
- alertgoup: Restic
|
|
- alertgoup: Temperature
|
|
- job: authelia
|
|
- job: blackbox
|
|
- job: dns_pyrocufflink
|
|
- job: dns_recursive
|
|
- job: kubelet
|
|
- job: kubernetes
|
|
- job: minio-backups
|
|
- instance: db0.pyrocufflink.blue
|
|
- instance: gw1.pyrocufflink.blue
|
|
- instance: vmhost0.pyrocufflink.blue
|
|
- instance: vmhost1.pyrocufflink.blue
|
|
|
|
applications:
|
|
- name: Home Assistant
|
|
url: https://homeassistant.pyrocufflink.blue/
|
|
icon:
|
|
url: icons/home-assistant.svg
|
|
alerts:
|
|
- alertgroup: Home Assistant
|
|
- alertgroup: Frigate
|
|
- job: homeassistant
|
|
- instance: homeassistant.pyrocufflink.blue
|
|
|
|
- name: Nextcloud
|
|
url: &url0 https://nextcloud.pyrocufflink.net/index.php
|
|
icon:
|
|
url: icons/nextcloud.png
|
|
alerts:
|
|
- instance: *url0
|
|
- instance: cloud0.pyrocufflink.blue
|
|
|
|
- name: Invoice Ninja
|
|
url: &url1 https://invoiceninja.pyrocufflink.net/
|
|
icon:
|
|
url: icons/invoiceninja.svg
|
|
class: light-bg
|
|
alerts:
|
|
- instance: *url1
|
|
|
|
- name: Jellyfin
|
|
url: https://jellyfin.pyrocufflink.net/
|
|
icon:
|
|
url: icons/jellyfin.svg
|
|
alerts:
|
|
- job: jellyfin
|
|
|
|
- name: Vaultwarden
|
|
url: &url2 https://bitwarden.pyrocufflink.net/
|
|
icon:
|
|
url: icons/vaultwarden.svg
|
|
class: light-bg
|
|
alerts:
|
|
- instance: *url2
|
|
- alertgroup: Bitwarden
|
|
|
|
- name: Paperless-ngx
|
|
url: &url3 https://paperless.pyrocufflink.blue/
|
|
icon:
|
|
url: icons/paperless-ngx.svg
|
|
alerts:
|
|
- instance: *url3
|
|
- alertgroup: Paperless-ngx
|
|
- job: paperless-ngx
|
|
|
|
- name: Firefly III
|
|
url: &url4 https://firefly.pyrocufflink.blue/
|
|
icon:
|
|
url: icons/firefly-iii.svg
|
|
alerts:
|
|
- instance: *url4
|
|
|
|
- name: Receipts
|
|
url: &url5 https://receipts.pyrocufflink.blue/
|
|
icon:
|
|
url: https://receipts.pyrocufflink.blue/static/icons/icon-512.png
|
|
alerts:
|
|
- instance: *url5
|