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
15 lines
329 B
Django/Jinja
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 }}
|