1 {{- if and .Values.grafana.enabled .Values.grafana.sidecar.datasources.enabled }}
5 name: {{ template "prometheus-operator.fullname" . }}-grafana-datasource
7 {{ $.Values.grafana.sidecar.datasources.label }}: "1"
8 app: {{ template "prometheus-operator.name" $ }}-grafana
9 {{ include "prometheus-operator.labels" $ | indent 4 }}
16 url: http://{{ template "prometheus-operator.fullname" . }}-prometheus:9090/{{ trimPrefix "/" .Values.prometheus.prometheusSpec.routePrefix }}