blob: 47382edc084f41ce27045b5ae1d64561c8f56ed0 [file] [log] [blame]
---
# Copyright 2019-present Open Networking Foundation
#
# 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.
apiVersion: v1
kind: ConfigMap
metadata:
name: grafana-dashboards
labels:
grafana_dashboard: "1"
data:
{{- if .Values.dashboards.k8s }}
k8s.json: |
{{ .Files.Get "grafana-dashboards/k8s-app-metrics.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.nodeExporter }}
node-exporter.json: |
{{ .Files.Get "grafana-dashboards/node-exporter.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.xos }}
xos.json: |
{{ .Files.Get "grafana-dashboards/xos.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.onos }}
onos.json: |
{{ .Files.Get "grafana-dashboards/onos-kpi.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aaa }}
aaa.json: |
{{ .Files.Get "grafana-dashboards/aaa-stats.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.voltha }}
voltha.json: |
{{ .Files.Get "grafana-dashboards/voltha-kpi.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.omec }}
omec.json: |
{{ .Files.Get "grafana-dashboards/omec.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aether }}
aether-clusters.json: |
{{ .Files.Get "grafana-dashboards/aether-clusters.json" | indent 4 }}
aether-edge-pods.json: |
{{ .Files.Get "grafana-dashboards/aether-edge-pods.json" | indent 4 }}
{{- end }}