Skip to content

Monitoring

Watching servers with Prometheus: collecting metrics with the node exporter, checking configuration and alert rules, querying data and handling alerts in the Alertmanager.

Basics: How Prometheus works, ports and packages, a scrape configuration, PromQL, alert rules and Alertmanager

Prometheus

Tools

  • promtool


    Check configuration and rules, run queries.

  • amtool


    Show alerts and silence them.

From other chapters

  • sar


    Performance history on a single server. Covered in the chapter Performance.

  • curl


    Query the metrics and the API by hand. Covered in the chapter Network.

  • jq


    Filter the JSON answers of the API. Covered in the chapter Text processing.

  • ufw


    Allow the exporter ports only for Prometheus. Covered in the chapter Network.