-
Notifications
You must be signed in to change notification settings - Fork 2
/
prometheus-grafana-df-proxy.yml
65 lines (58 loc) · 1.63 KB
/
prometheus-grafana-df-proxy.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
version: "3"
services:
node-exporter:
image: basi/node-exporter:v0.1.1
networks:
- default
volumes:
- /proc:/host/proc
- /sys:/host/sys
- /:/rootfs
- /etc/hostname:/etc/host_hostname
environment:
- HOST_HOSTNAME=/etc/host_hostname
command: '-collector.procfs /host/proc -collector.sysfs /host/sys -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($$|/)" -collector.textfile.directory /etc/node-exporter/ -collectors.enabled="conntrack,diskstats,entropy,filefd,filesystem,loadavg,mdadm,meminfo,netdev,netstat,stat,textfile,time,vmstat,ipvs"'
deploy:
mode: global
cadvisor:
image: google/cadvisor:v0.24.1
networks:
- default
volumes:
- /:/rootfs
- /var/run:/var/run
- /sys:/sys
- /var/lib/docker:/var/lib/docker
deploy:
mode: global
prometheus:
image: vfarcic/prometheus-devops21
networks:
- default
ports:
- 9091:9090
grafana:
image: grafana/grafana:${GRAFANA_TAG:-4.5.2}
networks:
- default
- logging_default
- proxy
environment:
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s:%(http_port)s/grafana/
- GF_SECURITY_ADMIN_USER=${USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${PASS:-admin}
deploy:
labels:
- com.df.notify=true
- com.df.distribute=true
- com.df.servicePath=/grafana/,/grafana/public,/grafana/api
- com.df.reqPathSearch=/grafana/
- com.df.reqPathReplace=/
- com.df.port=3000
networks:
default:
external: false
logging_default:
external: true
proxy:
external: true