From 308da8b0fce1dbfbef259bf099f26d72926282e7 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Sat, 29 Apr 2023 21:01:56 -0400 Subject: [PATCH] Try to add the receiver by creating an AlertmanagerConfig --- .../alertmanager-gotify-bridge/kustomization.yaml | 1 + .../receiver-config.yaml | 14 ++++++++++++++ .../kube-prometheus-stack/helm-release.yaml | 7 ------- 3 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 cluster/apps/monitoring/alertmanager-gotify-bridge/receiver-config.yaml diff --git a/cluster/apps/monitoring/alertmanager-gotify-bridge/kustomization.yaml b/cluster/apps/monitoring/alertmanager-gotify-bridge/kustomization.yaml index bf0d63d..6e0ef5c 100644 --- a/cluster/apps/monitoring/alertmanager-gotify-bridge/kustomization.yaml +++ b/cluster/apps/monitoring/alertmanager-gotify-bridge/kustomization.yaml @@ -2,4 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ./bridge-secrets.sops.yaml +- ./receiver-config.yaml - ./helm-release.yaml \ No newline at end of file diff --git a/cluster/apps/monitoring/alertmanager-gotify-bridge/receiver-config.yaml b/cluster/apps/monitoring/alertmanager-gotify-bridge/receiver-config.yaml new file mode 100644 index 0000000..7fc4cb0 --- /dev/null +++ b/cluster/apps/monitoring/alertmanager-gotify-bridge/receiver-config.yaml @@ -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' \ No newline at end of file diff --git a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml index 62544af..dc8dec7 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml +++ b/cluster/apps/monitoring/kube-prometheus-stack/helm-release.yaml @@ -32,13 +32,6 @@ spec: - hosts: - *alertmanager-host secretName: wildcard-main-tls - - config: - receivers: - - name: gotify-bridge - webhook_configs: - - url: http://alertmanager-gotify-bridge.monitoring:8080/gotify_webhook - send_resolved: true grafana: ingress: