Add Grafana/Prometheus config
This commit is contained in:
parent
946b35efab
commit
a68edb81c4
6 changed files with 1709 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
version: "3.6"
|
||||
|
||||
services:
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
container_name: prometheus
|
||||
|
@ -11,8 +12,9 @@ services:
|
|||
- 9090:9090
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./prometheus:/etc/prometheus
|
||||
- ./configs/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- prom_data:/prometheus
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana
|
||||
container_name: grafana
|
||||
|
@ -23,7 +25,8 @@ services:
|
|||
- GF_SECURITY_ADMIN_USER=admin
|
||||
- "GF_SECURITY_ADMIN_PASSWORD={{ lookup("community.general.passwordstore", "noc/vm-secrets/chaosknoten/grafana/GF_SECURITY_ADMIN_PASSWORD", create=false, missing="error") }}"
|
||||
volumes:
|
||||
- ./grafana:/etc/grafana/provisioning/datasources
|
||||
- ./configs/grafana.ini:/etc/grafana/grafana.ini
|
||||
- ./configs/grafana-datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
|
||||
- graf_data:/var/lib/grafana
|
||||
|
||||
volumes:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue