apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
  name: grafana-datasource-prometheus
  namespace: grafana-operator
  labels:
    app.kubernetes.io/name: grafana-datasource-prometheus
    app.kubernetes.io/instance: grafana-operator
    app.kubernetes.io/part-of: grafana-operator
spec:
  datasource:
    name: Prometheus
    type: prometheus
    url: http://kube-prometheus-stack-prometheus.kube-prometheus-stack:9090/
    access: proxy
    isDefault: true
    jsonData:
      timeInterval: 30s
  instanceSelector:
    matchLabels:
      app: grafana-main
  plugins:
    - name: camptocamp-prometheus-alertmanager-datasource
      version: 2.1.0
  resyncPeriod: 30s
  uid: kube-prometheus-stack
