ksp stats
ksp stats
Command ReferenceDump cumulative server telemetry, packet counts, decryption latency averages, and error counters.
Networking & Diagnostics
Purpose
Dump cumulative server telemetry, packet counts, decryption latency averages, and error counters.
Syntax
Command-line specificationbash / powershell
ksp stats [OPTIONS]
Options & Flags
| Option Flag | Description |
|---|---|
| --json | Format statistical output as structured JSON for Prometheus/Grafana scrapers. |
| --reset | Clear all accumulated telemetry counters back to zero. |
Example Usage
Example command
ksp stats --json
Expected Output
{
"uptime_seconds": 86400,
"total_handshakes": 142050,
"active_sessions": 24,
"bytes_transferred_in": 10485760000,
"bytes_transferred_out": 41943040000,
"replay_packets_dropped": 12,
"avg_handshake_ms": 1.04
}Implementation Notes
Can be piped directly into jq or monitoring agents to track protocol health over long durations.