add prometheus data source with mssl
parent
29a67e9e97
commit
f487bb87e1
@ -0,0 +1,17 @@
|
|||||||
|
{{ 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
|
||||||
|
tlsAuth: true
|
||||||
|
tlsAuthWithCACert: true
|
||||||
|
secureJsonData:
|
||||||
|
tlsCACert: $__file{/etc/grafana/ca.cert}
|
||||||
|
tlsClientCert: $__file{/etc/grafana/grafana-{{ lan_address }}.cert}
|
||||||
|
tlsClientKey: $__file{/etc/grafana/grafana-{{ lan_address }}.key}
|
Loading…
Reference in New Issue