In this sandbox, Prometheus scrapes Linux host metrics from a Node Exporter.
To start the sandbox:
# In the foreground
make run # docker-compose up --build
# In detached mode
make run-detached # docker-compose up --build --detach
This will start up a node_exporter
container and a prometheus
container.
To kill the sandbox, run
make kill
(alias fordocker-compose kill
).
Open up http://localhost:9090/graph
to access the Prometheus expression browser. Here are some example metrics to explore:
rate(node_cpu_seconds_total{mode="system"}[1m])
node_filesystem_avail_bytes
rate(node_network_receive_bytes_total[1m])
Folder | Assets |
---|---|
prometheus |
A prometheus.yml configuration file for Prometheus |