Prometheus

Quick Reference

# Check configuration
promtool check config {prometheus-config}

# Query API
curl -s localhost:{prometheus-port}/api/v1/targets | jq
curl -s localhost:{prometheus-port}/api/v1/query?query=up | jq

# Reload configuration
curl -X POST localhost:{prometheus-port}/-/reload

# Check metrics endpoint
curl localhost:{node-exporter-port}/metrics | head -50

Concepts

TODO: Pull model, time-series, labels, scraping

Architecture

TODO: Server, exporters, pushgateway, alertmanager integration