Files
sa-charts/docker-swarm/monitor
marsal b2eb2928d8 swarm
2024-10-21 13:29:47 +08:00
..
2024-06-05 13:13:44 +08:00
2024-10-21 13:29:47 +08:00
2024-06-05 13:13:44 +08:00
2024-06-05 13:13:44 +08:00

env $(cat ./env_prod | xargs) envsubst < ./docker-stack.yml | docker stack deploy --compose-file - monitor

docker stack deploy --compose-file docker-compose.yml monitor   --with-registry-auth


docker run \
    -p 9090:9090 \
    -v /opt/support/prometheus.yml:/etc/prometheus/prometheus.yml \
    prom/prometheus:v2.52.0

docker service create --name cadvisor -l prometheus-job=cadvisor \
    --mode=global --publish target=8080,mode=host \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock,ro \
    --mount type=bind,src=/,dst=/rootfs,ro \
    --mount type=bind,src=/var/run,dst=/var/run \
    --mount type=bind,src=/sys,dst=/sys,ro \
    --mount type=bind,src=/var/lib/docker,dst=/var/lib/docker,ro \
    spcodes/cadvisor:v0.49.1 -docker_only