Skip to content

Category

Observability tools.

Write, translate and explain Loki and Prometheus queries and alert rules.

Observability tools

When you reach for Observability tools.

The queries and rules that decide whether you get paged are, for most teams, the least tested code they run. A relabel rule that drops the target you needed, an alert that never fires because the expression compares a vector to a scalar, a route that sends the database page to the wrong team — none of these fail loudly. They fail by being silent when you needed noise.

This is the part of the catalog with the least competition, and it is not an accident. Testing this properly means implementing the semantics: how Prometheus applies relabel actions in sequence, how Alertmanager walks a route tree with continue and nested matchers, how Loki evaluates a LogQL rule against a time series it does not have.

So that is what these do. The Alertmanager simulator models routing the way the router does, including the ordering rules the official routing-tree editor has an open accuracy bug about. The Loki rule tester is the promtool equivalent Loki never shipped, which is still an open feature request upstream.