blob: 80e3f2efcb1cf367538b23e5b04eda15a6a270dc [file] [log] [blame]
Andy Bavierab75e9e2020-08-06 12:05:30 -07001# Copyright 2020-present Open Networking Foundation
2# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
3
4apiVersion: v1
5kind: ConfigMap
6metadata:
7 name: {{ .Release.Name }}-datasource
8 labels:
9 grafana_datasource: "1"
10data:
Andy Bavier166404d2020-11-20 14:20:10 -070011 datasources-{{ .Release.Name }}.yaml: |-
Andy Bavierab75e9e2020-08-06 12:05:30 -070012 apiVersion: 1
13
14 datasources:
Andy Bavierc6568702021-02-04 11:23:15 -070015{{- range .Values.prometheusDatasources }}
16 - name: {{ .name }}
Andy Bavierab75e9e2020-08-06 12:05:30 -070017 type: prometheus
18 access: proxy
19 basicAuth: false
20 editable: false
Andy Bavier696dfeb2020-11-11 14:48:12 -070021 isDefault: false
Andy Bavierc6568702021-02-04 11:23:15 -070022 url: {{ .endpoint }}
Andy Baviera50ec202020-10-08 11:29:58 -070023{{- end }}
Andy Bavier5c91c1c2020-09-01 11:47:38 -070024{{- if .Values.googleCloudMonitoring }}
25 - name: Google Cloud Monitoring
26 type: stackdriver
27 access: proxy
28 jsonData:
29 tokenUri: https://oauth2.googleapis.com/token
30 clientEmail: {{ .Values.googleCloudMonitoring.clientEmail }}
31 authenticationType: jwt
32 defaultProject: {{ .Values.googleCloudMonitoring.defaultProject }}
33 secureJsonData:
34 privateKey: |
35{{ .Values.googleCloudMonitoring.key | indent 10 }}
Andy Bavier696dfeb2020-11-11 14:48:12 -070036{{- end }}