Difficulty: Intermediate
Estimated Time: 10-15 minutes

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/

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Creating Dashboards with Prometheus and Grafana

Step 1 of 4

Step 1 - Start Prometheus

mkdir -p /prometheus/data
docker run -d --net=host \
    -v /home/scrapbook/tutorial/prometheus.yml:/etc/prometheus/prometheus.yml \
    -v /prometheus/data:/prometheus \
    --name prometheus-server \
    prom/prometheus
docker run -d -p 9100:9100 \
  -v "/proc:/host/proc" \
  -v "/sys:/host/sys" \
  -v "/:/rootfs" \
  --net="host" \
  --name=promethus \
  quay.io/prometheus/node-exporter:v0.13.0 \
    -collector.procfs /host/proc \
    -collector.sysfs /host/sys \
    -collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"