This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monitoring.yml
134 lines (121 loc) · 2.86 KB
/
monitoring.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
129
130
131
132
133
134
---
version: "3.6"
services:
influxdb:
ports:
- "8086/tcp"
networks:
- internal
image: influxdb:latest
deploy:
replicas: 1
placement:
constraints: [node.role==manager]
restart_policy:
condition: on-failure
labels:
traefik.enabled: "false"
com.centurylinklabs.watchtower.enable: "true"
orbiter: "true"
orbiter.up: "3"
orbiter.down: "1"
telegraf:
image: telegraf:latest
configs:
- source: telegraf.conf
target: /etc/telegraf/telegraf.conf
hostname: "{{.Node.ID}}"
ports:
- "6514:6514"
deploy:
mode: global
restart_policy:
condition: on-failure
labels:
traefik.enabled: "false"
com.centurylinklabs.watchtower.enable: "true"
orbiter: "false"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /:/hostfs:ro
environment:
HOST_MOUNT_PREFIX: "/hostfs"
HOST_MOUNT_PROC: "/hostfs/proc"
DOCKER_HOST: "unix:///var/run/docker.sock"
networks:
- internal
depends_on:
- influxdb
kapacitor:
image: kapacitor:latest
hostname: "{{.Node.ID}}"
configs:
- source: kapacitor.conf
target: /etc/kapacitor/kapacitor.conf
deploy:
replicas: 1
placement:
constraints: [node.role==manager]
restart_policy:
condition: on-failure
labels:
traefik.enabled: "false"
com.centurylinklabs.watchtower.enable: "true"
orbiter: "false"
volumes:
- kapacitor-data:/var/lib/kapacitor
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "9092"
networks:
- internal
depends_on:
- influxdb
chronograf:
image: chronograf:latest
deploy:
replicas: 1
placement:
constraints: [node.role==manager]
restart_policy:
condition: on-failure
labels:
com.centurylinklabs.watchtower.enable: "true"
traefik.port: "8888"
traefik.docker.network: "public"
traefik.frontend.rule: "Host:monitoring.${DOMAIN}"
traefik.frontend.priority: "10"
traefik.frontend.entryPoints: "http, https"
traefik.enabled: "true"
orbiter: "true"
orbiter.up: "3"
orbiter.down: "1"
ports:
- '8888/tcp'
volumes:
- chronograf-data:/var/lib/chronograf
networks:
- internal
- public
depends_on:
- influxdb
- kapacitor
command: --influxdb-url=http://influxdb:8086 --kapacitor-url=http://kapacitor:9092
configs:
telegraf.conf:
file: ./config/telegraf.conf
kapacitor.conf:
file: ./config/kapacitor.conf
volumes:
chronograf-data: {}
kapacitor-data: {}
influxdb-data: {}
networks:
public:
external:
name: public
internal:
external:
name: internal
...
# vim: set sts=2 sw=2 ts=2 et ai: