Andy Bavier | ab75e9e | 2020-08-06 12:05:30 -0700 | [diff] [blame] | 1 | # Copyright 2020-present Open Networking Foundation |
| 2 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 3 | |
| 4 | apiVersion: v1 |
| 5 | kind: ConfigMap |
| 6 | metadata: |
| 7 | name: {{ .Release.Name }}-datasource |
| 8 | labels: |
| 9 | grafana_datasource: "1" |
| 10 | data: |
| 11 | datasources.yaml: |- |
| 12 | apiVersion: 1 |
| 13 | |
| 14 | datasources: |
| 15 | {{ if .Values.globalStatusMonitorNamespace }} |
| 16 | - name: RANCHER_MONITORING_GLOBAL |
| 17 | type: prometheus |
| 18 | access: proxy |
| 19 | basicAuth: false |
| 20 | editable: false |
| 21 | isDefault: true |
| 22 | url: http://access-prometheus.{{.Values.globalStatusMonitorNamespace}}:80 |
| 23 | {{ end }} |