# Grafana datasource, declared in git rather than clicked into grafana.db. # # This Grafana is an empty install on purpose: every datasource and dashboard # it has comes from this directory, which the deployer installs into # /opt/grafana/provisioning (mounted read-only into the container). A # UI-configured datasource would be invisible to review, lost with the data # volume, and unknown to anyone reading the repository. # # The URL uses the container name on dankclaw_default — the same address Caddy # proxies to — not the published loopback port, so the path is the same from # inside the network as from the browser's server side. apiVersion: 1 datasources: - name: Prometheus # Fixed uid so dashboards can reference it without a lookup. uid: prometheus type: prometheus access: proxy url: http://prometheus:9090 isDefault: true editable: false jsonData: # Matches prometheus.yml's scrape_interval; without it Grafana's rate # windows can be shorter than the sample spacing. timeInterval: 15s