helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[loki-stack] support configuring jsonData of Prometheus datasource

Open uqix opened this issue 2 years ago • 0 comments

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 }}

uqix avatar Jul 02 '22 12:07 uqix