In this scenario, you'll learn how to launch Prometheus to start collecting system metrics from nodes within your system.
Prometheus
Prometheus is an open source systems monitoring and alerting toolkit originally built at SoundCloud. Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community. It is now a standalone open source project and maintained independently of any company. To emphasize this and clarify the project's governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted project after Kubernetes. More details can be found at https://prometheus.io
More information on how to get started can be found at https://prometheus.io/docs/introduction/getting_started/

Steps
Getting Started with Prometheus
Step 1 - Configure Prometheus
The Prometheus server requires a configuration file that defines the endpoints to scrape along with how frequently the metrics should be accessed.
The first half of the configuration defines the intervals.
global: scrape_interval: 15s evaluation_interval: 15s
The second half defines the servers and ports that Prometheus should scrape data from. In this example, we have defined two targets running on different ports.
scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['127.0.0.1:9090', '127.0.0.1:9100'] labels: group: 'prometheus'
9090 is Prometheus itself. Prometheus exposes information related to its internal metrics and performance and allows it to monitor itself.
9100 is the Node Exporter Prometheus process. This exposes information about the Node, such as disk space, memory and CPU usage.
More information on the default ports can be found at https://github.com/prometheus/prometheus/wiki/Default-port-allocations
Task
Copy the configuration to the editor to continue.
You’ll love Katacoda

Guided Path
Knowing what you need to know is the hardest part. Our guided pathways help build your knowledge around real-world scenarios.

Learn By Doing
The best way to learn is by doing. All our tutorials are interactive with pre-configured live environments ready for you to use.

Stay up-to-date
It's a competitive industry. Your skills need to keep up with the latest approaches. Katacoda keeps your skills up-to-date.
You’ll love Katacoda

Guided Path
Knowing what you need to know is the hardest part. Our guided pathways help build your knowledge around real-world scenarios.

Learn By Doing
The best way to learn is by doing. All our tutorials are interactive with pre-configured live environments ready for you to use.

Stay up-to-date
It's a competitive industry. Your skills need to keep up with the latest approaches. Katacoda keeps your skills up-to-date.