# roles/monitoring_stack/templates/grafana-datasource.yml.j2 # Provision Grafana datasources for deterministic dashboard wiring. apiVersion: 1 prune: true deleteDatasources: - name: Prometheus orgId: 1 - name: prometheus orgId: 1 - name: Loki orgId: 1 - name: loki orgId: 1 datasources: - name: {{ grafana_prometheus_datasource_name }} uid: {{ grafana_prometheus_datasource_uid }} type: prometheus access: proxy url: {{ grafana_prometheus_url }} isDefault: true editable: true jsonData: httpMethod: POST timeInterval: {{ prometheus_scrape_interval }} - name: {{ grafana_loki_datasource_name }} uid: {{ grafana_loki_datasource_uid }} type: loki access: proxy url: {{ grafana_loki_url }} isDefault: false editable: true jsonData: maxLines: 1000