blob: da039dedb1e6baaeb81cd168eecf01a8866f4b09 [file] [log] [blame]
# Copyright 2020-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-datasource
labels:
grafana_datasource: "1"
data:
datasources.yaml: |-
apiVersion: 1
datasources:
{{ if .Values.globalStatusMonitorNamespace }}
- name: RANCHER_MONITORING_GLOBAL
type: prometheus
access: proxy
basicAuth: false
editable: false
isDefault: true
url: http://access-prometheus.{{.Values.globalStatusMonitorNamespace}}:80
{{ end }}