-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-monitoring.yaml
More file actions
54 lines (45 loc) · 1.32 KB
/
docker-compose-monitoring.yaml
File metadata and controls
54 lines (45 loc) · 1.32 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.9'
volumes:
prometheus:
services:
prometheus:
image: ${PROMETHEUS_IMAGE}
container_name: prometheus
command:
- --web.console.templates=/etc/prometheus/consoles
- --web.console.libraries=/etc/prometheus/console_libraries
- --storage.tsdb.retention.time=1h
- --config.file=/etc/prometheus/prometheus-config.yaml
- --storage.tsdb.path=/prometheus
- --web.enable-lifecycle
- --web.route-prefix=/
- --web.enable-otlp-receiver
- --enable-feature=exemplar-storage
volumes:
- ./prometheus/prometheus.yaml:/etc/prometheus/prometheus-config.yaml
- prometheus:/prometheus
deploy:
resources:
limits:
memory: 300M
# Grafana
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
environment:
- "GF_INSTALL_PLUGINS=grafana-opensearch-datasource, grafana-clickhouse-datasource"
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
depends_on:
- prometheus
restart: always
docker-exporter:
image: ghcr.io/davidborzek/docker-exporter:latest
container_name: docker-exporter
user: 0:0
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped