-
Notifications
You must be signed in to change notification settings - Fork 131
Description
In this helm chart it looks like 1 url is ever used/considered:
charts/charts/signoz/templates/_helpers.tpl
Line 298 in bb53857
| {{- define "alertmanager.url" -}} |
Ask:
When running multiple replicas of alert mamager (https://github.com/SigNoz/alertmanager) allow for any alerts to be sent to 1 or more configured replicas.
Taken from the Readme of the signoz fork of alertmanager it supports the overall ask of this issue, it shows how it expects prometheus to point at multiple alert manager instances:
To point your Prometheus 1.4, or later, instance to multiple Alertmanagers, configure them in your prometheus.yml configuration file, for example:
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager1:9093
- alertmanager2:9093
- alertmanager3:9093
Important: Do not load balance traffic between Prometheus and its Alertmanagers, but instead point Prometheus to a list of all Alertmanagers. The Alertmanager implementation expects all alerts to be sent to all Alertmanagers to ensure high availability.
Here are more links to code where changes are likely needed:
value: http://{{ include "alertmanager.url" . }}/api/ - {{ include "alertmanager.url" . }}