Hyunsun Moon | b24bb2b | 2019-11-22 02:11:02 -0800 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2019-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | apiVersion: v1 |
| 17 | kind: ConfigMap |
| 18 | metadata: |
| 19 | name: grafana-dashboards |
| 20 | labels: |
| 21 | grafana_dashboard: "1" |
| 22 | data: |
| 23 | {{- if .Values.dashboards.k8s }} |
| 24 | k8s.json: | |
| 25 | {{ .Files.Get "grafana-dashboards/k8s-app-metrics.json" | indent 4 }} |
| 26 | {{- end }} |
| 27 | {{- if .Values.dashboards.nodeExporter }} |
| 28 | node-exporter.json: | |
| 29 | {{ .Files.Get "grafana-dashboards/node-exporter.json" | indent 4 }} |
| 30 | {{- end }} |
| 31 | {{- if .Values.dashboards.xos }} |
| 32 | xos.json: | |
| 33 | {{ .Files.Get "grafana-dashboards/xos.json" | indent 4 }} |
| 34 | {{- end }} |
| 35 | {{- if .Values.dashboards.onos }} |
| 36 | onos.json: | |
| 37 | {{ .Files.Get "grafana-dashboards/onos-kpi.json" | indent 4 }} |
| 38 | {{- end }} |
| 39 | {{- if .Values.dashboards.aaa }} |
| 40 | aaa.json: | |
| 41 | {{ .Files.Get "grafana-dashboards/aaa-stats.json" | indent 4 }} |
| 42 | {{- end }} |
| 43 | {{- if .Values.dashboards.voltha }} |
| 44 | voltha.json: | |
| 45 | {{ .Files.Get "grafana-dashboards/voltha-kpi.json" | indent 4 }} |
| 46 | {{- end }} |
Matteo Scandolo | e0d3caf | 2020-01-10 15:55:56 -0800 | [diff] [blame] | 47 | {{- if .Values.dashboards.voltha2 }} |
| 48 | voltha2.json: | |
| 49 | {{ .Files.Get "grafana-dashboards/voltha-2x.json" | indent 4 }} |
| 50 | {{- end }} |
Hyunsun Moon | b24bb2b | 2019-11-22 02:11:02 -0800 | [diff] [blame] | 51 | {{- if .Values.dashboards.omec }} |
| 52 | omec.json: | |
| 53 | {{ .Files.Get "grafana-dashboards/omec.json" | indent 4 }} |
| 54 | {{- end }} |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 55 | {{- if .Values.dashboards.aetherClusters }} |
Hyunsun Moon | ec123c9 | 2019-11-23 16:11:11 -0800 | [diff] [blame] | 56 | aether-clusters.json: | |
| 57 | {{ .Files.Get "grafana-dashboards/aether-clusters.json" | indent 4 }} |
Hyunsun Moon | cd58a7b | 2019-12-08 03:37:13 -0800 | [diff] [blame] | 58 | {{- end }} |
| 59 | {{- if .Values.dashboards.aetherEdges }} |
| 60 | aether-edges.json: | |
| 61 | {{ .Files.Get "grafana-dashboards/aether-edges.json" | indent 4 }} |
| 62 | {{- end }} |
| 63 | {{- if .Values.dashboards.aetherCentralPods }} |
| 64 | aether-central-pods.json: | |
| 65 | {{ .Files.Get "grafana-dashboards/aether-central-pods.json" | indent 4 }} |
| 66 | {{- end }} |
| 67 | {{- if .Values.dashboards.aetherEdgePods }} |
Hyunsun Moon | ec123c9 | 2019-11-23 16:11:11 -0800 | [diff] [blame] | 68 | aether-edge-pods.json: | |
| 69 | {{ .Files.Get "grafana-dashboards/aether-edge-pods.json" | indent 4 }} |
| 70 | {{- end }} |