-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-stack-exporters.yml
128 lines (116 loc) · 2.81 KB
/
docker-stack-exporters.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
120
121
122
123
124
125
126
127
128
version: '3.7'
networks:
network:
driver: overlay
services:
cadvisor-exporter:
image: "google/cadvisor:latest"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
command: -port=9080
ports:
- "9080:9080"
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
networks:
- network
node-exporter:
image: "prom/node-exporter:v0.18.1"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
user: root
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
networks:
- network
blackbox-exporter:
image: "prom/blackbox-exporter:v0.14.0"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
networks:
- network
nginx-exporter:
image: "nginx/nginx-prometheus-exporter:0.4.1"
command: -nginx.scrape-uri http://nginx:80/stub_status
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
ports:
- "9113:9113"
networks:
- network
postgres-exporter:
image: "wrouesnel/postgres_exporter:v0.5.0"
deploy:
replicas: 1
environment:
- DATA_SOURCE_NAME=postgresql://user:password@postgres:5432/database?sslmode=disable
networks:
- network
mysql-exporter:
image: "prom/mysqld-exporter:v0.11.0"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
environment:
- DATA_SOURCE_NAME=root:password@(mysql:3306)/
networks:
- network
# mongodb-exporter:
# image: "mongodb_exporter"
# deploy:
# replicas: 1
# environment:
# - MONGODB_URL="mongodb://user:password@mongodb:27017/database",
# networks:
# - network
elasticsearch-exporter:
image: "justwatch/elasticsearch_exporter:1.0.2"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
command: '-es.uri=http://elasticsearch:9200'
ports:
- 9108:9108
networks:
- network
redis-exporter:
image: "oliver006/redis_exporter:v1.0.3-alpine"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
environment:
- REDIS_ADDR=redis://redis:6379
networks:
- network
rabbitmq-exporter:
image: "kbudde/rabbitmq-exporter:v1.0.0-RC6.1"
deploy:
replicas: 1
placement:
constraints: [node.role == manager]
environment:
- RABBIT_URL=http://rabbitmq:15672
- RABBIT_USER=rabbit
- RABBIT_PASSWORD=password
networks:
- network