-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
120 lines (105 loc) · 2.52 KB
/
docker-compose.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.7"
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafana
ports:
- 3001:3000
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
volumes:
- ./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=1y'
- '--web.enable-lifecycle'
node_exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node_exporter
restart: unless-stopped
ports:
- 9100:9100
command:
- '--path.rootfs=/host'
pid: host
volumes:
- '/:/host:ro,rslave'
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
restart: unless-stopped
ports:
- 8880:8080
volumes:
- /:/rootfs:ro
- /var/run:/var/run:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
blackbox:
image: prom/blackbox-exporter:latest
container_name: blackbox
privileged: true
volumes:
- ./blackbox.yml:/etc/blackbox_exporter/config.yml
ports:
- 9115:9115
telegraf:
image: telegraf:latest
# image: telegraf:1.16.3
container_name: telegraf
links:
- influxdb
networks:
- monitoreo_default
volumes:
- ./telegraf.conf:/etc/telegraf/telegraf.conf
influxdb:
image: influxdb:latest
#image: influxdb:1.8.3
container_name: influxdb
ports:
- "8086:8086"
env_file:
- 'env.influxdb'
volumes:
- ./data_influxdb:/var/lib/influxdb
networks:
- monitoreo_default
# influxdb:
# image: influxdb:latest
# container_name: influxdb
# restart: always
# networks:
# - monitoreo_default
# ports:
# - "8086:8086"
# volumes:
# - ./influxdb/data:/var/lib/influxdb
# - ./influxdb/influxdb.conf:/etc/influxdb/influxdb.conf:ro
# - ./influxdb/init:/docker-entrypoint-initdb.d
# environment:
# - INFLUXDB_ADMIN_USER=admin
# - INFLUXDB_ADMIN_PASSWORD=admin123
# telegraf:
# image: telegraf:latest
# restart: always
# container_name: telegraf
# networks:
# - monitoreo_default
# volumes:
# - ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
volumes:
grafana-data:
prometheus-data:
networks:
monitoreo_default:
external: true