blob: 0e031165dad477751c1f71dffd2e3bb45b29617b [file] [log] [blame]
Prateek Sardaa775b672021-11-01 11:19:18 +00001# SPDX-FileCopyrightText: 2021-present Open Networking Foundation <info@opennetworking.org>
2#
Sean Condon160ec1d2022-02-08 12:58:25 +00003# SPDX-License-Identifier: Apache-2.0
Prateek Sardaa775b672021-11-01 11:19:18 +00004
5apiVersion: v1
6kind: ConfigMap
7metadata:
8 name: {{ .Release.Name }}-datasources-templated
9 namespace: {{ .Release.Namespace }}
10 labels:
11 grafana_datasource: "aether-roc-gui"
12data:
13 prom-datasources.yaml: |
14 apiVersion: 1
15 datasources:
16 {{- range .Values.grafana.source }}
17 - name: datasource-{{ .name }}
SeanCondon9a99c262023-01-09 17:20:49 +000018 url: {{ .protocol }}://{{ tpl .service $ }}:{{ .port }}
Prateek Sardaa775b672021-11-01 11:19:18 +000019 type: prometheus
20 access: proxy
21 jsonData:
22 oauthPassThru: true
23 {{- end }}
24