github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/grafana/datasources-configmap.yaml (about) 1 # Copyright (c) 2023, Oracle and/or its affiliates. 2 # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. 3 apiVersion: v1 4 kind: ConfigMap 5 metadata: 6 name: {{ .name }} 7 namespace: {{ .namespace }} 8 data: 9 datasource.yaml: |2- 10 apiVersion: 1 11 datasources: 12 {{ if .isThanosQueryEnabled }} 13 - name: Thanos 14 type: prometheus 15 orgId: 1 16 access: proxy 17 url: {{ .thanosQueryURL }}:{{ .thanosQueryPort }} 18 isDefault: true 19 {{ end }} 20 {{ if .isPrometheusEnabled }} 21 - name: Prometheus 22 type: prometheus 23 orgId: 1 24 access: proxy 25 url: {{ .prometheusURL }}:{{ .prometheusPort }} 26 {{ if .isThanosQueryEnabled }} 27 isDefault: false 28 {{ else }} 29 isDefault: true 30 {{ end }} 31 {{ end }}