feat(grafana): add ntfy integration

This commit is contained in:
Khue Doan 2024-01-21 16:14:37 +07:00
parent 169f24fed3
commit 250e6d2712
2 changed files with 22 additions and 0 deletions

View File

@ -14,3 +14,7 @@ spec:
remoteRef:
key: dex.grafana
property: client_secret
- secretKey: NTFY_RELAY_PASSWORD
remoteRef:
key: ntfy-relay.auth
property: password

View File

@ -31,3 +31,21 @@ grafana:
auth_url: https://dex.khuedoan.com/auth
token_url: https://dex.khuedoan.com/token
api_url: https://dex.khuedoan.com/userinfo
alerting:
contactpoints.yaml:
secret:
contactPoints:
- name: ntfy
receivers:
- uid: ntfy-relay
type: webhook
settings:
url: http://ntfy-relay.ntfy-relay
username: admin
password: $__env{NTFY_RELAY_PASSWORD}
policies.yaml:
policies:
- receiver: ntfy
group_by:
- grafana_folder
- alertname