helm-charts
helm-charts copied to clipboard
[loki-stack] support configuring jsonData of Prometheus datasource
templates/datasources.yaml
{{- if .Values.prometheus.enabled }}
- name: Prometheus
type: prometheus
access: proxy
url: http://{{ include "prometheus.fullname" .}}:{{ .Values.prometheus.server.service.servicePort }}{{ .Values.prometheus.server.prefixURL }}
version: 1
isDefault: {{ .Values.prometheus.isDefault }}
# like this
jsonData: {{ .Values.prometheus.datasourceJsonData}}
{{- end }}