Test pipelines¶
Sonda exists so you can exercise your observability pipeline without waiting for production to break. Write the alert rule, shape a scenario that crosses the threshold for exactly the duration you care about, and watch whether the rule fires. Same idea for recording rules, capacity planning, synthetic monitoring, and end-to-end pipeline validation.
This section covers the patterns. Each page starts from a real failure mode you've probably seen on call, shows the Sonda scenario that reproduces it, and verifies the result against a real backend.
-
Six patterns in one page: thresholds, resolution, compound
A AND B, cardinality explosion, incident replay, histogram-based latency alerts. -
Test that precomputed PromQL series produce the right values — sum rules, rate-based rules, multi-rule chains.
-
Four validation shapes in one page: a local alerting pipeline (metric → vmalert → Alertmanager → webhook), an encoder × sink coverage matrix, the alerting loop wired into CI, and lighter-weight production smoke checks (exit codes, line counts, multi-format diffs).
-
Generate a steady baseline that lets you spot drift in dashboards, alerts, or ingest paths long before production traffic does.
-
Stress-test ingest paths with high-cardinality fleets, label-bomb spikes, and sustained high rates.
-
Telegraf SNMP shapes from a single scenario file — interface counters, BGP neighbor state, environmental sensors.
-
Drive Nautobot, Prefect, and other automation tooling with synthetic device telemetry.
-
Annotated example scenarios from the
examples/directory in the Sonda repo.