mirror of
https://github.com/prometheus-operator/prometheus-operator.git
synced 2025-04-21 03:38:43 +00:00
add additionalAlertManagerConfigs to helm chart (#1457)
* add additionalAlertManagerConfigs to helm chart This should help Helm users take advantage of the flexibility of the additionalAlertManagerConfigs field added to PrometheusSpec. Fixes #1456 * add additionalAlertManagerConfigs example to helm chart
This commit is contained in:
parent
97bcd7df40
commit
cab34d7fe1
6 changed files with 34 additions and 4 deletions
helm
kube-prometheus
prometheus
|
@ -7,4 +7,4 @@ maintainers:
|
|||
name: kube-prometheus
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
version: 0.0.82
|
||||
version: 0.0.83
|
||||
|
|
|
@ -6,7 +6,7 @@ dependencies:
|
|||
condition: deployAlertManager
|
||||
|
||||
- name: prometheus
|
||||
version: 0.0.43
|
||||
version: 0.0.44
|
||||
#e2e-repository: file://../prometheus
|
||||
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
|
||||
|
||||
|
|
|
@ -7,4 +7,4 @@ maintainers:
|
|||
name: prometheus
|
||||
sources:
|
||||
- https://github.com/coreos/prometheus-operator
|
||||
version: 0.0.43
|
||||
version: 0.0.44
|
||||
|
|
|
@ -124,4 +124,9 @@ spec:
|
|||
name: prometheus-{{ .Release.Name }}-additional-scrape-configs
|
||||
key: additional-scrape-configs.yaml
|
||||
{{- end }}
|
||||
{{- if .Values.additionalScrapeConfigs }}
|
||||
additionalAlertManagerConfigs:
|
||||
name: prometheus-{{ .Release.Name }}-additional-alertmanager-configs
|
||||
key: additional-alertmanager-configs.yaml
|
||||
{{- end }}
|
||||
|
||||
|
|
|
@ -30,3 +30,20 @@ metadata:
|
|||
data:
|
||||
additional-scrape-configs.yaml: {{ toYaml .Values.additionalScrapeConfigs | b64enc | quote }}
|
||||
{{- end }}
|
||||
|
||||
---
|
||||
|
||||
{{- if .Values.additionalAlertManagerConfigs }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "prometheus.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
||||
heritage: {{ .Release.Service }}
|
||||
prometheus: {{ .Values.prometheusLabelValue | default .Release.Name | quote }}
|
||||
release: {{ .Release.Name }}
|
||||
name: prometheus-{{ .Release.Name }}-additional-alertmanager-configs
|
||||
data:
|
||||
additional-alertmanager-configs.yaml: {{ toYaml .Values.additionalAlertManagerConfigs | b64enc | quote }}
|
||||
{{- end }}
|
||||
|
|
|
@ -339,4 +339,12 @@ additionalScrapeConfigs: []
|
|||
# - targets:
|
||||
# - "localhost:9090"
|
||||
|
||||
serviceMonitorNamespaceSelector: {}
|
||||
## Prometheus AdditionalAlertManagerConfigs
|
||||
## Ref: https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#prometheusspec
|
||||
##
|
||||
additionalAlertManagerConfigs: {}
|
||||
# static_configs:
|
||||
# - targets:
|
||||
# - "localhost:9093"
|
||||
|
||||
serviceMonitorNamespaceSelector: {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue