[bitnami/prometheus] send alert to all alertmanagers (#36421)

* send alert to all alertmanagers

Signed-off-by: Feng Shao <shaof777@gmail.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

* Update CHANGELOG.md

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>

---------

Signed-off-by: Feng Shao <shaof777@gmail.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Co-authored-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Feng Shao
2026-01-12 18:06:37 +08:00
committed by GitHub
parent 93c07b0ef0
commit 82a1bb60eb
4 changed files with 18 additions and 3 deletions

View File

@@ -1,8 +1,8 @@
# Changelog
## 2.2.0 (2025-10-20)
## 2.2.1 (2025-12-27)
* [bitnami/prometheus] Add environment variable support to the Prometheus Thanos container ([#36251](https://github.com/bitnami/charts/pull/36251))
* [bitnami/prometheus] send alert to all alertmanagers ([#36421](https://github.com/bitnami/charts/pull/36421))
## <small>2.1.23 (2025-08-14)</small>

View File

@@ -38,4 +38,4 @@ sources:
- https://github.com/bitnami/containers/tree/main/bitnami/prometheus
- https://github.com/prometheus/prometheus
- https://github.com/prometheus-community/helm-charts
version: 2.2.0
version: 2.2.1

View File

@@ -30,6 +30,12 @@ spec:
port: {{ .Values.alertmanager.service.ports.cluster }}
protocol: UDP
targetPort: udp-cluster
{{- if and .Values.alertmanager.enabled (gt (int .Values.alertmanager.replicaCount) 1) }}
- name: http
port: {{ .Values.alertmanager.containerPorts.http }}
protocol: TCP
targetPort: http
{{- end }}
{{- if .Values.alertmanager.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.alertmanager.service.extraPorts "context" $) | nindent 4 }}
{{- end }}

View File

@@ -741,9 +741,18 @@ server:
{{- if .Values.server.alertingEndpoints }}
{{- include "common.tplvalues.render" (dict "value" .Values.server.alertingEndpoints "context" $) | nindent 4 }}
{{- end }}
{{- if and .Values.alertmanager.enabled }}
- scheme: HTTP
static_configs:
{{- if gt (int .Values.alertmanager.replicaCount) 1 }}
- targets:
{{- range $i := until (int .Values.alertmanager.replicaCount) }}
- "{{ printf "%s-%d.%s-headless.%s.svc.%s:%d" (include "prometheus.alertmanager.fullname" $) $i (include "prometheus.alertmanager.fullname" $) (include "common.names.namespace" $) $.Values.clusterDomain (int $.Values.alertmanager.containerPorts.http) }}"
{{- end }}
{{- else }}
- targets: [ "{{ printf "%s.%s.svc.%s:%d" (include "prometheus.alertmanager.fullname" .) (include "common.names.namespace" .) .Values.clusterDomain (int .Values.alertmanager.service.ports.http) }}" ]
{{- end }}
{{- end }}
rule_files:
- rules.yaml
{{- end }}