AlgoViz

Prometheus

medium 28 min

Prometheus is an open source monitoring server.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

The meter reader walks, the houses only show a number.

A gas meter reader walks the street every 15 seconds. A number that falls means a new meter, a dark house means down, and a wall full of meters fills the notebook.

Cheat sheet

scrape_interval
default 1m; 15s is common
scrape_timeout
default 10s
Retention
default 15d
Sample size
1 to 2 bytes
First block
2 hours
Lookback
5m
Query timeout
2m, 20 at once
group_wait / interval
30s / 5m
repeat_interval
4h
Ports
9090 server, 9093 Alertmanager
Licence
Apache 2.0

Spot it when you see

  • How would you know it is broken?
  • Error share and p99 per service.
  • Targets that come and go.

Tricks that stick

  • Rate, then sum.
  • Buckets add, quantiles do not.
  • Window of four scrapes or more.
  • Series are the budget.

Do not forget

  • Ids as labels.
  • Raw counters in charts.
  • Averaged percentiles.
  • The Pushgateway for everything.
  • NFS.
  • One server and nobody watching it.