Merge "Add Alertmanager dashboard to Grafana"
This commit is contained in:
commit
8d00380469
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v7.4.5
|
||||
description: OpenStack-Helm Grafana
|
||||
name: grafana
|
||||
version: 0.1.8
|
||||
version: 0.1.9
|
||||
home: https://grafana.com/
|
||||
sources:
|
||||
- https://github.com/grafana/grafana
|
||||
|
25
grafana/templates/configmap-dashboards-alertmanager.yaml
Normal file
25
grafana/templates/configmap-dashboards-alertmanager.yaml
Normal file
@ -0,0 +1,25 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.configmap_dashboards_alertmanager }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: grafana-dashboards-alertmanager
|
||||
data:
|
||||
{{ range $key, $value := .Values.conf.dashboards_alertmanager }}
|
||||
{{$key}}.json: {{ $value | toJson }}
|
||||
{{ end }}
|
||||
{{- end }}
|
@ -125,6 +125,13 @@ spec:
|
||||
mountPath: /etc/grafana/dashboards/{{$key}}.json
|
||||
subPath: {{$key}}.json
|
||||
{{- end }}
|
||||
{{- if .Values.manifests.configmap_dashboards_alertmanager }}
|
||||
{{- range $key, $value := .Values.conf.dashboards_alertmanager }}
|
||||
- name: grafana-dashboards-alertmanager
|
||||
mountPath: /etc/grafana/dashboards/{{$key}}.json
|
||||
subPath: {{$key}}.json
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.endpoints.oslo_db.auth.admin.secret.tls.internal "path" "/etc/mysql/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
|
||||
{{ if $mounts_grafana.volumeMounts }}{{ toYaml $mounts_grafana.volumeMounts | indent 12 }}{{ end }}
|
||||
volumes:
|
||||
@ -150,6 +157,12 @@ spec:
|
||||
configMap:
|
||||
name: grafana-dashboards
|
||||
defaultMode: 0555
|
||||
{{- if .Values.manifests.configmap_dashboards_alertmanager }}
|
||||
- name: grafana-dashboards-alertmanager
|
||||
configMap:
|
||||
name: grafana-dashboards-alertmanager
|
||||
defaultMode: 0555
|
||||
{{- end }}
|
||||
- name: data
|
||||
emptyDir: {}
|
||||
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.endpoints.oslo_db.auth.admin.secret.tls.internal | include "helm-toolkit.snippets.tls_volume" | indent 8 }}
|
||||
|
@ -367,6 +367,7 @@ manifests:
|
||||
configmap_bin: true
|
||||
configmap_etc: true
|
||||
configmap_dashboards: true
|
||||
configmap_dashboards_alertmanager: false
|
||||
deployment: true
|
||||
ingress: true
|
||||
helm_tests: true
|
||||
@ -485,4 +486,5 @@ conf:
|
||||
grafana_net:
|
||||
url: https://grafana.net
|
||||
dashboards: {}
|
||||
dashboards_alertmanager: {}
|
||||
...
|
||||
|
@ -9,4 +9,5 @@ grafana:
|
||||
- 0.1.6 Enable TLS for Grafana ingress path
|
||||
- 0.1.7 Update Grafana version and Selenium script
|
||||
- 0.1.8 Use full image ref for docker official images
|
||||
- 0.1.9 Add Alertmanager dashboard to Grafana
|
||||
...
|
||||
|
Loading…
x
Reference in New Issue
Block a user