Skip to content

Observability Cheat Sheet

PromQL Queries

# Rate of 5xx errors
rate(http_requests_total{status=~"5.."}[5m])

Loki LogQL

# Filter logs by label and text content
{app="frontend"} |= "error"