mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
Also fix the version of prometheus and grafana being used to ensure the queries remain compatible as well as avoid issues whether they may not work if latest images already exist on machine but are not at a level that will work Signed-off-by: D <d_kelsey@uk.ibm.com> Co-authored-by: D <d_kelsey@uk.ibm.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:v2.32.1
|
|
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:8.3.4
|
|
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:v1.3.1
|
|
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
|