54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: Prometheus
|
|
type: prometheus
|
|
access: proxy
|
|
orgId: 1
|
|
url: http://prometheus:9090
|
|
basicAuth: false
|
|
isDefault: true
|
|
editable: true
|
|
|
|
- name: Loki
|
|
type: loki
|
|
access: proxy
|
|
url: https://loki.domain.com:3100
|
|
orgId: 1
|
|
version: 1
|
|
editable: true
|
|
isDefault: false
|
|
|
|
# Enable TLS
|
|
jsonData:
|
|
tlsSkipVerify: false
|
|
tlsAuth: true
|
|
tlsAuthWithCACert: true
|
|
#httpHeaderName1: "Authorization"
|
|
#httpHeaderValue1: "Bearer <your_token_here>" # Replace with your authentication token if needed
|
|
|
|
# rensigner les certificats loki créés
|
|
secureJsonData:
|
|
tlsClientCert: |
|
|
-----BEGIN CERTIFICATE-----
|
|
-----END CERTIFICATE-----
|
|
tlsClientKey: |
|
|
-----BEGIN PRIVATE KEY-----
|
|
-----END PRIVATE KEY-----
|
|
tlsCACert: |
|
|
-----BEGIN CERTIFICATE-----
|
|
-----END CERTIFICATE-----
|
|
|
|
- name: PostgreSQL
|
|
type: postgres
|
|
access: proxy
|
|
url: postgres_db:5432
|
|
uid: fe0gkpjheq8lcb
|
|
database: geoip
|
|
user: user_grafana
|
|
secureJsonData:
|
|
password: <redacted>
|
|
jsonData:
|
|
sslmode: "disable"
|
|
isDefault: false
|
|
editable: true |