File tree 3 files changed +1335
-0
lines changed
3 files changed +1335
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : ' 3.8'
2
+ services :
3
+ questdb :
4
+ image : questdb/questdb:8.1.1
5
+ container_name : questdb
6
+ ports :
7
+ - " 9000:9000"
8
+ - " 8812:8812"
9
+ - " 9009:9009"
10
+ - " 9003:9003"
11
+ environment :
12
+ - QDB_METRICS_ENABLED=TRUE
13
+ volumes :
14
+ - questdb_data:/root/.questdb/db
15
+
16
+ prometheus :
17
+ image : prom/prometheus:latest
18
+ container_name : prometheus
19
+ ports :
20
+ - " 9090:9090"
21
+ volumes :
22
+ - ./prometheus.yml:/etc/prometheus/prometheus.yml
23
+ - prometheus_data:/prometheus
24
+ command :
25
+ - ' --config.file=/etc/prometheus/prometheus.yml'
26
+ - ' --storage.tsdb.path=/prometheus'
27
+ - ' --web.console.libraries=/etc/prometheus/console_libraries'
28
+ - ' --web.console.templates=/etc/prometheus/consoles'
29
+ depends_on :
30
+ - questdb
31
+ - node-exporter
32
+
33
+ grafana :
34
+ image : grafana/grafana:latest
35
+ container_name : grafana
36
+ ports :
37
+ - " 3000:3000"
38
+ volumes :
39
+ - grafana_data:/var/lib/grafana
40
+ environment :
41
+ - GF_SECURITY_ADMIN_PASSWORD=admin
42
+ depends_on :
43
+ - prometheus
44
+
45
+ node-exporter :
46
+ image : prom/node-exporter:latest
47
+ container_name : node-exporter
48
+ volumes :
49
+ - /proc:/host/proc:ro
50
+ - /sys:/host/sys:ro
51
+ - /:/rootfs:ro
52
+ command :
53
+ - ' --path.procfs=/host/proc'
54
+ - ' --path.sysfs=/host/sys'
55
+ - ' --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)'
56
+ ports :
57
+ - " 9100:9100"
58
+
59
+ volumes :
60
+ questdb_data :
61
+ prometheus_data :
62
+ grafana_data :
Original file line number Diff line number Diff line change
1
+ global :
2
+ scrape_interval : 5s
3
+ external_labels :
4
+ monitor : ' questdb'
5
+
6
+ scrape_configs :
7
+ - job_name : ' questdb'
8
+ scrape_interval : 5s
9
+ static_configs :
10
+ - targets : ['questdb:9003']
11
+
12
+ - job_name : ' node'
13
+ scrape_interval : 5s
14
+ static_configs :
15
+ - targets : ['node-exporter:9100']
You can’t perform that action at this time.
0 commit comments