Created
December 9, 2020 07:34
-
-
Save mustafaguven/0216231f6cce947cc931003d40505302 to your computer and use it in GitHub Desktop.
to publish in a loop
This file contains hidden or 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
mvn clean spring-boot:run | |
# if the app is setup correctly the following should pull metrics compatible with prometheus | |
curl http://localhost:9080/actuator/prometheus | |
# to publish a message call | |
curl -XPOST -H "Content-Type: application/json" -d '{"text": "hello"}' http://localhost:9080/publish | |
# to publish in a loop | |
while true; do curl -XPOST -H "Content-Type: application/json" -d '{"text": "hello"}' http://localhost:9080/publish; sleep 1; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment