Skip to content

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.

  • Alert testing

    Six patterns in one page: thresholds, resolution, compound A AND B, cardinality explosion, incident replay, histogram-based latency alerts.

  • Recording rules

    Test that precomputed PromQL series produce the right values — sum rules, rate-based rules, multi-rule chains.

  • End-to-end pipelines

    Four validation shapes in one page: a local alerting pipeline (metric → vmalertAlertmanager → 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).

  • Synthetic monitoring

    Generate a steady baseline that lets you spot drift in dashboards, alerts, or ingest paths long before production traffic does.

  • Capacity planning

    Stress-test ingest paths with high-cardinality fleets, label-bomb spikes, and sustained high rates.

  • Network device telemetry

    Telegraf SNMP shapes from a single scenario file — interface counters, BGP neighbor state, environmental sensors.

  • Network automation testing

    Drive Nautobot, Prefect, and other automation tooling with synthetic device telemetry.

  • Examples

    Annotated example scenarios from the examples/ directory in the Sonda repo.