mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-19 08:15:08 +00:00
Signed-off-by: fraVlaca <ocsenarf@outlook.com> added promethesus-grafana server to test-network Signed-off-by: fraVlaca <ocsenarf@outlook.com> changed image for cadvisor to version that works on Linux Signed-off-by: fraVlaca <ocsenarf@outlook.com> improved documentation on README and tweaked docker-compose file Signed-off-by: fraVlaca <ocsenarf@outlook.com> updated and fixed documentation for the prometheus/grafana sample for the test-network Signed-off-by: fraVlaca <ocsenarf@outlook.com> final modification to grafana dashboard and prom/graf docs Signed-off-by: fraVlaca <ocsenarf@outlook.com>
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
version: '3'
|
|
|
|
volumes:
|
|
prometheus_data: {}
|
|
grafana_storage: {}
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- prometheus_data:/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
|
|
- '--web.console.templates=/usr/share/prometheus/consoles'
|
|
ports:
|
|
- "9090:9090"
|
|
|
|
grafana:
|
|
image: grafana/grafana
|
|
container_name: grafana
|
|
user: "104"
|
|
depends_on:
|
|
- prometheus
|
|
ports:
|
|
- 3000:3000
|
|
volumes:
|
|
- grafana_storage:/var/lib/grafana
|
|
- ./grafana/provisioning/:/etc/grafana/provisioning/
|
|
env_file:
|
|
- ./grafana/config.monitoring
|
|
restart: always
|
|
|
|
cadvisor:
|
|
image: google/cadvisor:latest # gcr.io/cadvisor/cadvisor:latest for ios
|
|
privileged: true
|
|
container_name: cadvisor
|
|
volumes:
|
|
- /var/run:/var/run:rw
|
|
- /sys:/sys:ro
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
|
# - /cgroup:/cgroup:ro
|
|
ports:
|
|
- 8080:8080
|
|
restart: always
|
|
|
|
node-exporter:
|
|
image: prom/node-exporter
|
|
container_name: node-exporter
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
command:
|
|
- '--path.procfs=/host/proc'
|
|
- '--path.sysfs=/host/sys'
|
|
- --collector.filesystem.ignored-mount-points
|
|
- "^/(sys|proc|dev|host|etc|rootfs/var/lib/docker/containers|rootfs/var/lib/docker/overlay2|rootfs/run/docker/netns|rootfs/var/lib/docker/aufs)($$|/)"
|
|
ports:
|
|
- 9100:9100
|
|
restart: always
|
|
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: fabric_test
|