Created
September 8, 2023 11:53
-
-
Save tiagodavi70/42758d30740a4ee8b64032a864c948b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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