blob: 1b361cc17a5f7b37e9f5c4cdda72273a82d2d305 [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.voltha2 }}
voltha2.json: |
{{ .Files.Get "grafana-dashboards/voltha-2x.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.omec }}
omec.json: |
{{ .Files.Get "grafana-dashboards/omec.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aetherClusters }}
aether-clusters.json: |
{{ .Files.Get "grafana-dashboards/aether-clusters.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aetherEdges }}
aether-edges.json: |
{{ .Files.Get "grafana-dashboards/aether-edges.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aetherCentralPods }}
aether-central-pods.json: |
{{ .Files.Get "grafana-dashboards/aether-central-pods.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aetherEdgePods }}
aether-edge-pods.json: |
{{ .Files.Get "grafana-dashboards/aether-edge-pods.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.bng }}
bng-dashboard.json: |
{{ .Files.Get "grafana-dashboards/bng-dashboard.json" | indent 4 }}
{{- end }}
{{- if .Values.dashboards.aetherMMEExporter }}
aether-mme-exporter.json: |
{{ .Files.Get "grafana-dashboards/aether-mme-exporter.json" | indent 4 }}
{{- end }}