Skip to content

Commit

Permalink
[kube-prometheus-stack] Add alertmanager alertmanager configuration (p…
Browse files Browse the repository at this point in the history
…rometheus-community#1880)

* [kube-prometheus-stack] add alertmanagerConfigurarion to the generated altermanager object

Signed-off-by: Julien Girardin <[email protected]>

* [kube-prometheus-stack] bump kube-prometheus-stack to 34.0.1

Signed-off-by: Julien Girardin <[email protected]>

* New feature means minor version (and not patch)

Signed-off-by: Julien Girardin <[email protected]>
  • Loading branch information
Zempashi authored Mar 17, 2022
1 parent e5bf684 commit b8d5b17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 34.0.0
version: 34.1.0
appVersion: 0.55.0
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
{{ else }}
alertmanagerConfigNamespaceSelector: {}
{{- end }}
{{- if .Values.alertmanager.alertmanagerSpec.alertmanagerConfiguration }}
alertmanagerConfiguration:
{{ toYaml .Values.alertmanager.alertmanagerSpec.alertmanagerConfiguration | indent 4 }}
{{- end }}
{{- if .Values.alertmanager.alertmanagerSpec.resources }}
resources:
{{ toYaml .Values.alertmanager.alertmanagerSpec.resources | indent 4 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,11 @@ alertmanager:
# matchLabels:
# alertmanagerconfig: enabled

## AlermanagerConfig to be used as top level configuration
##
altermanagerConfiguration: {}
# - name: global-alertmanager-Configuration

## Define Log Format
# Use logfmt (default) or json logging
logFormat: logfmt
Expand Down

0 comments on commit b8d5b17

Please sign in to comment.