Fix prometheus credentials provisioning
This commit is contained in:
parent
ebb71e50f5
commit
e7af757f6c
|
@ -5,3 +5,5 @@ GRAFANA_HOST_DOMAIN=grafana.example.com
|
|||
MONITOR_HOST_DOMAIN=monitor.example.com
|
||||
|
||||
INFURA_PROJECT_KEY=
|
||||
|
||||
PROM_PASSWORD=
|
||||
|
|
|
@ -40,6 +40,15 @@ services:
|
|||
- ./grafana/provisioning:/etc/grafana/provisioning
|
||||
- ./grafana/dashboards:/etc/grafana/dashboards
|
||||
- grafana-storage:/var/lib/grafana
|
||||
environment:
|
||||
PG_HOST: 'postgres:5432'
|
||||
PG_USER: 'postgres'
|
||||
PG_PASSWORD: 'pass'
|
||||
PG_DB: 'db'
|
||||
PROM_USER: 'admin'
|
||||
PROM_HOST: 'http://prometheus:9090'
|
||||
env_file:
|
||||
- .env
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.grafana.rule=Host(`${GRAFANA_HOST_DOMAIN}`)"
|
||||
|
|
|
@ -8,10 +8,10 @@ datasources:
|
|||
typeName: PostgreSQL
|
||||
typeLogoUrl: public/app/plugins/datasource/postgres/img/postgresql_logo.svg
|
||||
access: proxy
|
||||
url: 'postgres:5432'
|
||||
password: 'pass'
|
||||
user: postgres
|
||||
database: db
|
||||
url: ${PG_HOST}
|
||||
password: ${PG_PASSWORD}
|
||||
user: ${PG_USER}
|
||||
database: ${PG_DB}
|
||||
basicAuth: false
|
||||
isDefault: true
|
||||
jsonData:
|
||||
|
@ -30,11 +30,13 @@ datasources:
|
|||
typeName: Prometheus
|
||||
typeLogoUrl: public/app/plugins/datasource/prometheus/img/prometheus_logo.svg
|
||||
access: proxy
|
||||
url: 'http://prometheus:9090'
|
||||
url: ${PROM_HOST}
|
||||
password: ''
|
||||
user: ''
|
||||
database: ''
|
||||
basicAuth: true
|
||||
basicAuthUser: ${PROM_USER}
|
||||
basicAuthPassword: ${PROM_PASSWORD}
|
||||
isDefault: false
|
||||
jsonData:
|
||||
httpMethod: POST
|
||||
|
|
Loading…
Reference in New Issue