This course accompanies the Cloud Academy course 'Intro to Prometheus'
- curl
- git
- tar
- bash
- tested and validated on bash version 5.0.17(1)-release
- Ports open on localhost
- 9090 (Prometheus)
- 8080-8082 (Node Exporters)
If you want to get started with the examples shown in the course, clone this repo, and use the script(s) below to spin up a little prometheus environment with some Node Exporters!
git clone https://github.com/cloudacademy/devops-intro-to-prometheus.git
cd devops-intro-to-prometheus/scripts
bash letsgo.bash
After the Script has completed, feel free to navigate to localhost:{9090,8080,8081,8082} to see all four services started. The Prometheus server is on localhost:9090
After you're done, don't forget to clean up!
bash cleanup.bash
After the above example is up and running, curl the API to see the nodes
curl -g 'http://localhost:9090/api/v1/series?' --data-urlencode 'match[]=up' --data-urlencode 'match[]=process_start_time_seconds{job="prometheus"}'
Curl the Label 'job' and the corresponding values
curl http://localhost:9090/api/v1/label/job/values
- Websites
- Podcast(s)
- Community