Try to add the receiver by creating an AlertmanagerConfig

This commit is contained in:
SeanOMik 2023-04-29 21:01:56 -04:00
parent 9c83039b46
commit 308da8b0fc
3 changed files with 15 additions and 7 deletions

View File

@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./bridge-secrets.sops.yaml - ./bridge-secrets.sops.yaml
- ./receiver-config.yaml
- ./helm-release.yaml - ./helm-release.yaml

View File

@ -0,0 +1,14 @@
apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: alertmanager-gotify-bridge-config
namespace: monitoring
spec:
receivers:
- name: gotify-bridge
webhook_configs:
- url: http://alertmanager-gotify-bridge.monitoring:8080/gotify_webhook
send_resolved: true
route:
receiver: 'gotify-bridge'

View File

@ -32,13 +32,6 @@ spec:
- hosts: - hosts:
- *alertmanager-host - *alertmanager-host
secretName: wildcard-main-tls secretName: wildcard-main-tls
config:
receivers:
- name: gotify-bridge
webhook_configs:
- url: http://alertmanager-gotify-bridge.monitoring:8080/gotify_webhook
send_resolved: true
grafana: grafana:
ingress: ingress: