ansible/roles/grafana/templates/prometheus_datasource.yaml

18 lines
535 B
YAML
Raw Normal View History

2021-09-24 22:30:14 +02:00
{{ ansible_managed | comment }}
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
# Access mode - proxy (server in the UI) or direct (browser in the UI).
access: proxy
url: https://{{ lan_address }}:9090
jsonData:
httpMethod: POST
2021-09-25 00:02:43 +02:00
tlsAuth: true
tlsAuthWithCACert: true
2021-09-24 22:30:14 +02:00
secureJsonData:
2021-09-25 00:02:43 +02:00
tlsCACert: $__file{/etc/grafana/ca.crt}
tlsClientCert: $__file{/etc/grafana/grafana-{{ lan_address }}.crt}
tlsClientKey: $__file{/etc/grafana/grafana-{{ lan_address }}.key}