Prateek Sarda | a775b67 | 2021-11-01 11:19:18 +0000 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org> |
| 2 | # |
| 3 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 4 | |
| 5 | apiVersion: v1 |
| 6 | kind: ConfigMap |
| 7 | metadata: |
| 8 | name: {{ .Release.Name }}-datasources-templated |
| 9 | namespace: {{ .Release.Namespace }} |
| 10 | labels: |
| 11 | grafana_datasource: "aether-roc-gui" |
| 12 | data: |
| 13 | prom-datasources.yaml: | |
| 14 | apiVersion: 1 |
| 15 | datasources: |
| 16 | {{- range .Values.grafana.source }} |
| 17 | - name: datasource-{{ .name }} |
| 18 | url: {{ .protocol }}://{{ .service }}:{{ .port }} |
| 19 | type: prometheus |
| 20 | access: proxy |
| 21 | jsonData: |
| 22 | oauthPassThru: true |
| 23 | {{- end }} |
| 24 | |