-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitoring.yml
More file actions
122 lines (113 loc) · 3.29 KB
/
monitoring.yml
File metadata and controls
122 lines (113 loc) · 3.29 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
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
120
121
122
version: "2"
networks:
monitor:
driver: bridge
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
hostname: prometheus
restart: always
volumes:
- ${VOLUMES_CONFIG}prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ${VOLUMES_CONFIG}node_down.yml:/etc/prometheus/node_down.yml:ro
ports:
- "9090:9090"
networks:
- ${NETWORKS}
alertmanager:
image: prom/alertmanager
volumes:
- ${VOLUMES_CONFIG}/alertmanager.yml:/etc/alertmanager/config.yml:ro
ports:
- "9093:9093"
networks:
- ${NETWORKS}
node-exporter:
image: quay.io/prometheus/node-exporter:latest
container_name: node-exporter
hostname: node-exporter
restart: always
ports:
- "9100:9100"
networks:
- ${NETWORKS}
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
hostname: cadvisor
restart: always
volumes:
- /:/rootfs:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /cgroup:/sys/fs/cgroup:ro
cgroup_parent: system.slice
ports:
- "8080:8080"
networks:
- ${NETWORKS}
grafana:
image: grafana/grafana:latest
container_name: grafana
hostname: grafana
restart: always
ports:
- "3000:3000"
environment:
- GF_SERVER_DOMAIN=docker.for.mac.localhost:3000
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
- GF_LOG_FILTERS="debug"
- GF_SECURITY_ADMIN_USER=${GRAFANA_USERNAME}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
networks:
- ${NETWORKS}
renderer:
image: grafana/grafana-image-renderer:latest
container_name: renderer
restart: always
deploy:
resources:
limits:
cpus: "1.0"
memory: 3512M
environment:
- RENDERING_VERBOSE_LOGGING="true"
- LOG_LEVEL="debug"
- ENABLE_METRICS="true"
- IGNORE_HTTPS_ERRORS="true"
ports:
- "8081:8081"
networks:
- ${NETWORKS}
influxdb:
image: influxdb:1.8
restart: always
container_name: influxdb
ports:
- "8086:8086"
- "8083:8083"
volumes:
- ./var/docker/data/influxdb:/var/lib/influxdb:cached
environment:
- INFLUXDB_DB='loadTestingDB'
- INFLUXDB_ADMIN_USER=${INFLUXDB_USERNAME}
- INFLUXDB_ADMIN_PASSWORD=${INFLUXDB_PASSWORD}
networks:
- ${NETWORKS}
chronograf:
image: chronograf:latest
restart: always
container_name: chronograf
ports:
- "8888:8888"
depends_on:
- influxdb
environment:
- INFLUXDB_URL='http://influxdb:8086'
- INFLUXDB_USERNAME=${INFLUXDB_USERNAME}
- INFLUXDB_PASSWORD=${INFLUXDB_PASSWORD}
networks:
- ${NETWORKS}