ksp stats
DocsCLIksp stats

ksp stats

Command Reference

Dump 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 specification
bash / powershell
ksp stats [OPTIONS]

Options & Flags

Option FlagDescription
--jsonFormat statistical output as structured JSON for Prometheus/Grafana scrapers.
--resetClear 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.