-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmonitoring.yml
34 lines (32 loc) · 922 Bytes
/
monitoring.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: grafana
services:
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_LOG_LEVEL=error
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
# todo: Clone your repo in /data
- /data/proxmox-docker-iac/monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
ports:
- '9090:9090'
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=14d'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
restart: unless-stopped
volumes:
grafana_data:
prometheus_data: