All scripts
analysis
Expert
~10 min

gNMI Streaming Telemetry Collector

Async gRPC/gNMI subscription engine: SAMPLE and ON_CHANGE mode streaming, YANG path monitoring, real-time anomaly detection via z-score, automatic Prometheus metrics export, and threshold alerting.

cisco-iosxr
arista
juniper
Open in GeneratorOpen in Platform
You're viewing a preview

The full script, parameters, and execution console are available with a free account.

Already have access? Sign in โ†’

Capabilities

  • gNMI
  • gRPC
  • Streaming
  • YANG
  • Prometheus
  • asyncio

Required inputs

Parameters the script accepts. Defaults shown; some are vendor- or context-gated.

ParameterTypeDefaultNotes
Sample Interval (s)
sample_interval
number10โ€”
Duration (s)
duration_s
number60โ€”

Hint 1 โ€” Name your vendors and OS versions

Mention the exact platforms you run (cisco-iosxr, arista, juniper) so the generated analysis logic uses the right CLI/NETCONF syntax.

Hint 2 โ€” State your real thresholds

Provide concrete values for Sample Interval (s), Duration (s) instead of the defaults โ€” they shape what counts as a fault.

Hint 3 โ€” Prioritize the checks you need

This tool can gNMI and gRPC. Ask for the subset relevant to your incident to keep output focused.

Hint 4 โ€” Describe your inventory format

Tell the assistant whether your device list is CSV, YAML, or JSON and which columns it has, so parsing matches your data.

Sample inventory schema

Authoritative shape of the device/policy data this script consumes.

No bundled inventory sample. The script accepts standard device lists (CSV/YAML) with hostname, mgmt IP, vendor, and credentials.

Expected output

Reference terminal output the script should produce โ€” used as a stylistic and structural target.

terminal
[INFO] Subscribed to 12 paths on 6 devices (10s sample)
[INFO] Streaming at 720 updates/min, 0 dropped
[WARN] spine-02 Et1/1: input-errors increasing 12/s
[OK]   CPU < 35% on all devices
[INFO] Wrote 432 samples โ†’ telemetry.parquet