--- apiVersion: 1 datasources: - name: Prometheus type: prometheus # we will get 'ansible_host' from our hosts file url: https://{{ ansible_host }}/prometheus # pick one orgId: 1 # might be different for you isDefault: true editable: false # Grafana fetches Prometheus metrics and sends them to the user access: proxy basicAuth: true # we know these because we inluded the prometheus vars directory basicAuthUser: {{ prometheus_basic_auth_username }} jsonData: tlsAuthWithCACert: true secureJsonData: basicAuthPassword: {{ prometheus_basic_auth_password }} ...