Files
kolla-ansible/ansible/roles/grafana/templates/prometheus.yaml.j2
Will Szumski 37c2ab2aaa Support exposing prometheus_server externally
This avoids the need to use a proxy, or some other means, to connect to
Prometheus. This is disabled by default and can be enabled by setting
enable_prometheus_server_external to true.

Change-Id: Ia0af044ff436c2a204b357750a16ff49fcdfec45
2023-11-07 14:52:06 +00:00

15 lines
329 B
Django/Jinja

apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
basicAuth: true
basicAuthPassword: "{{ prometheus_grafana_password }}"
basicAuthUser: "{{ prometheus_grafana_user }}"
orgId: 1
url: {{ grafana_prometheus_url }}
version: 1
jsonData:
timeInterval: {{ prometheus_scrape_interval }}