docker

Docker for services
git clone git://git.unixkoans.com/docker.git
Log | Files | Refs

commit d3dafb1039be9564c10cd6fbff81e71e690dbfd9
parent 4cea88b009a23d3cca8ba120bade192aab83e933
Author: Xiaodong Xu <xxdlhy@gmail.com>
Date:   Wed Jun 20 16:12:31 +0800

Add Prometheus and Grafana for ARM

Diffstat:
monitor/client/arm/docker-compose.yml | 21+++++++++++++++++++++
monitor/server/arm/docker-compose.yml | 29+++++++++++++++++++++++++++++
monitor/server/arm/prometheus.yml | 2++
3 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/monitor/client/arm/docker-compose.yml b/monitor/client/arm/docker-compose.yml @@ -0,0 +1,21 @@ +version: '2' + +services: + cadvisor: + image: budry/cadvisor-arm + restart: always + ports: + - 9002:8080 + volumes: + - /var/run:/var/run:rw + - /sys:/sys:ro + - /dev/disk/:/dev/disk:ro + node-exporter: + image: snoopyowns/node-exporter-arm + restart: always + ports: + - 9003:9100 + volumes: + - /proc:/host/proc:ro + - /sys:/host/sys:ro + command: "--collector.procfs /host/proc --collector.sysfs /host/sys --collector.filesystem.ignored-mount-points '^/(sys|proc|dev|host|etc)($$|/)'" diff --git a/monitor/server/arm/docker-compose.yml b/monitor/server/arm/docker-compose.yml @@ -0,0 +1,29 @@ +version: '2' +services: + + grafana: + image: fg2it/grafana-armhf:v5.1.3 + restart: always + ports: + - 9000:3000 + volumes: + - ./data/grafana:/var/lib/grafana + environment: + - GF_SECURITY_ADMIN_PASSWORD=jZFEnD49nZZT3Dp6 + - GF_USERS_ALLOW_SIGN_UP=false + #- GF_SMTP_ENABLED=true + #- GF_SMTP_FROM_ADDRESS= + #- GF_SMTP_FROM_NAME=Selfhost Monitor + #- GF_SMTP_HOST=smtp.exmail.qq.com:465 + #- GF_SMTP_USER= + #- GF_SMTP_PASSWORD= + + prometheus: + image: xjjo/armv7-prometheus:v2.2.1 + command: -config.file=/etc/prometheus/prometheus.yml -storage.local.path=/prometheus -web.console.libraries=/usr/share/prometheus/console_libraries -web.console.templates=/usr/share/prometheus/consoles -storage.local.target-heap-size=1073741824 + restart: always + ports: + - 9001:9090 + volumes: + - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro + - ./data/prometheus:/prometheus diff --git a/monitor/server/arm/prometheus.yml b/monitor/server/arm/prometheus.yml @@ -0,0 +1 @@ +../prometheus.yml+ \ No newline at end of file