-
Notifications
You must be signed in to change notification settings - Fork 61
/
docker-compose.yml
88 lines (84 loc) · 2.07 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
version: "3"
networks:
data:
driver: bridge
volumes:
grafanadata: {}
services:
central_grafana:
image: grafana/grafana:latest
container_name: central_grafana
hostname: central_grafana
restart: always
stop_grace_period: 5m
networks:
- data
ports:
- 3000:3000
environment:
- TZ=Europe/Paris
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- grafanadata:/var/lib/grafana
- ./cfg/provisioning/:/etc/grafana/provisioning/
central_vm:
image: victoriametrics/victoria-metrics:latest
container_name: central_vm
hostname: central_vm
restart: always
stop_grace_period: 5m
networks:
- data
ports:
- 8428:8428
volumes:
- ./data/central-vm/:/storage
command:
- "-storageDataPath=/storage"
- "-loggerLevel=INFO"
- "-httpListenAddr=:8428"
- "-retentionPeriod=1y"
- "-influxSkipSingleField"
- "-selfScrapeInterval=30s"
station1_agt:
image: victoriametrics/vmagent:latest
container_name: station1_agt
hostname: station1_agt
restart: always
stop_grace_period: 5m
networks:
- data
ports:
- 8429:8429/tcp
volumes:
- ./cfg/station1_agt.yml:/vmagent_prometheus.yml
- ./data/station1_agt:/storage
command:
- "-promscrape.config=/vmagent_prometheus.yml"
- "-remoteWrite.tmpDataPath=/storage"
- "-loggerLevel=INFO"
- "-remoteWrite.url=http://central_vm:8428/api/v1/write"
station1_exporter:
image: syepes/network_exporter:latest
container_name: station1_exporter
hostname: station1_exporter
restart: always
stop_grace_period: 5m
privileged: true
networks:
- data
ports:
- 9427:9427/tcp
sysctls:
net.ipv4.ping_group_range: "0 429496729"
net.ipv4.ip_unprivileged_port_start: 0
cap_add:
- NET_RAW
- SYS_PTRACE
volumes:
- ./cfg/:/app/cfg/
command:
- "/app/network_exporter"
- "--log.level=info"
- "--config.file=/app/cfg/network_exporter.yml"