apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
  name: grafana-datasource-loki
  namespace: grafana-operator
  labels:
    app.kubernetes.io/name: grafana-datasource-loki
    app.kubernetes.io/instance: grafana-operator
    app.kubernetes.io/part-of: grafana-operator
spec:
  datasource:
    name: Loki
    type: loki
    url: http://loki.loki:3100/
    access: proxy
  instanceSelector:
    matchLabels:
      app: grafana-main
  resyncPeriod: 30s
  uid: loki
