Skip to content

Instantly share code, notes, and snippets.

@tiagodavi70
Created September 8, 2023 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagodavi70/42758d30740a4ee8b64032a864c948b8 to your computer and use it in GitHub Desktop.
Save tiagodavi70/42758d30740a4ee8b64032a864c948b8 to your computer and use it in GitHub Desktop.
#! /bin/sh
docker service create --replicas 1 --name meu-prometheus \
--mount type=bind,source=/tmp/prometheus.yml,destination=/etc/prometheus/prometheus.yml \
--publish published=9090,target=9090,protocol=tcp \
prom/prometheus
docker service create \
--replicas 10 \
--name ping_service \
alpine ping docker.com
docker service rm ping_service
docker service rm meu-prometheus
# http://localhost:9090/targets/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment