Skip to content

Commit f2ef782

Browse files
committed
fix alerta webhook url
1 parent 0ae7db6 commit f2ef782

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/extra/monitoring/templates/alerta/alerta.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data:
3636
'endpoint' : "/api",
3737
'provider' : "basic"
3838
})
39-
.constant('colors', {});
39+
.constant('colors', {});
4040
---
4141
apiVersion: v1
4242
kind: Service
@@ -115,7 +115,7 @@ spec:
115115
- name: TELEGRAM_TOKEN
116116
value: "{{ .Values.alerta.alerts.telegram.token }}"
117117
- name: TELEGRAM_WEBHOOK_URL
118-
value: "https://alerta.infra.aenix.org/api/webhooks/telegram?api-key={{ $apiKey }}"
118+
value: "{{ printf "alerta.%s" (.Values.host | default $host) }}/api/webhooks/telegram?api-key={{ $apiKey }}"
119119
{{- end }}
120120

121121
ports:
@@ -148,9 +148,9 @@ metadata:
148148
labels:
149149
app: alerta
150150
annotations:
151-
{{- if ne $issuerType "cloudflare" }}
151+
{{- if ne $issuerType "cloudflare" }}
152152
acme.cert-manager.io/http01-ingress-class: {{ $ingress }}
153-
{{- end }}
153+
{{- end }}
154154
cert-manager.io/cluster-issuer: letsencrypt-prod
155155
spec:
156156
ingressClassName: {{ $ingress }}

0 commit comments

Comments
 (0)