https://github.com/cloudacademy/devops-intro-to-prometheus
This repo contains scripts and infromation about the introduction to prometheus course.
https://github.com/cloudacademy/devops-intro-to-prometheus
Last synced: about 1 year ago
JSON representation
This repo contains scripts and infromation about the introduction to prometheus course.
- Host: GitHub
- URL: https://github.com/cloudacademy/devops-intro-to-prometheus
- Owner: cloudacademy
- Created: 2020-11-18T16:07:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-15T01:32:38.000Z (over 5 years ago)
- Last Synced: 2025-04-09T12:20:50.036Z (about 1 year ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 9
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# Intro-To-Prometheus
This course accompanies the Cloud Academy course 'Intro to Prometheus'
[To the course!](https://www.example.com)
## Start Here!
### Requirements
- 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
```
## Checking out the HTTP API - After Prometheus is Started
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
```
## Resources for Prometheus Outside of Cloud Academy
- Websites
- [Prometheus.io](https://prometheus.io/)
- [Prometheus Repo](https://github.com/prometheus/prometheus)
- Podcast(s)
- [Kubernetes Podcast](https://kubernetespodcast.com/episode/037-prometheus-and-openmetrics/)
- Community
- [Element](https://app.element.io/#/room/#prometheus:matrix.org)
- [Prometheus Google Group - ANNOUNCEMENTS ONLY](https://groups.google.com/g/prometheus-announce)
- [Prometheus User Google Group](https://groups.google.com/g/prometheus-users)
- [Twitter](https://twitter.com/PrometheusIO)