kind: ConfigMap
apiVersion: v1
metadata:
  name: "prometheus-datasource"
  labels:
    grafana_datasource: "1"
data:
  datasource.yaml: |-
    apiVersion: 1
    datasources:
    - name: Prometheus
      type: prometheus
      access: proxy
      orgId: 1
      url: http://{{ .Release.Name }}-prometheus-server
      editable: true


