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: |
Andy Bavier | 166404d | 2020-11-20 14:20:10 -0700 | [diff] [blame] | 11 | datasources-{{ .Release.Name }}.yaml: |- |
Andy Bavier | ab75e9e | 2020-08-06 12:05:30 -0700 | [diff] [blame] | 12 | apiVersion: 1 |
| 13 | |
| 14 | datasources: |
Andy Bavier | c656870 | 2021-02-04 11:23:15 -0700 | [diff] [blame] | 15 | {{- range .Values.prometheusDatasources }} |
| 16 | - name: {{ .name }} |
Andy Bavier | ab75e9e | 2020-08-06 12:05:30 -0700 | [diff] [blame] | 17 | type: prometheus |
| 18 | access: proxy |
| 19 | basicAuth: false |
| 20 | editable: false |
Andy Bavier | 696dfeb | 2020-11-11 14:48:12 -0700 | [diff] [blame] | 21 | isDefault: false |
Andy Bavier | c656870 | 2021-02-04 11:23:15 -0700 | [diff] [blame] | 22 | url: {{ .endpoint }} |
Andy Bavier | a50ec20 | 2020-10-08 11:29:58 -0700 | [diff] [blame] | 23 | {{- end }} |
Andy Bavier | bf357a7 | 2021-03-04 09:56:49 -0700 | [diff] [blame] | 24 | {{- range .Values.elasticsearchDatasources }} |
| 25 | - name: {{ .name }} |
| 26 | url: {{ .endpoint }} |
| 27 | type: elasticsearch |
| 28 | access: proxy |
| 29 | database: "[fluentbit-]YYYY.MM.DD" |
| 30 | jsonData: |
| 31 | interval: Daily |
| 32 | timeField: "@timestamp" |
| 33 | esVersion: 70 |
| 34 | logMessageField: log |
| 35 | logLevelField: logLevel |
| 36 | {{- end }} |
Andy Bavier | 5c91c1c | 2020-09-01 11:47:38 -0700 | [diff] [blame] | 37 | {{- if .Values.googleCloudMonitoring }} |
| 38 | - name: Google Cloud Monitoring |
| 39 | type: stackdriver |
| 40 | access: proxy |
| 41 | jsonData: |
| 42 | tokenUri: https://oauth2.googleapis.com/token |
| 43 | clientEmail: {{ .Values.googleCloudMonitoring.clientEmail }} |
| 44 | authenticationType: jwt |
| 45 | defaultProject: {{ .Values.googleCloudMonitoring.defaultProject }} |
| 46 | secureJsonData: |
| 47 | privateKey: | |
| 48 | {{ .Values.googleCloudMonitoring.key | indent 10 }} |
Andy Bavier | 696dfeb | 2020-11-11 14:48:12 -0700 | [diff] [blame] | 49 | {{- end }} |