apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana-datasources
  namespace: monitoring
data:
  prometheus.yaml: |+
    apiVersion: 1
    datasources:
    - name: prometheus
      type: prometheus
      access: proxy
      url: http://prometheus.monitoring.svc.cluster.local
      version: 1
      editable: false
  loki.yaml: |+
    apiVersion: 1
    datasources:
    - name: loki
      type: loki
      access: proxy
      url: http://loki.monitoring.svc.cluster.local
      version: 1
      editable: false
