Skip to main content

Stats

expanso-cli node stats

Get aggregate network statistics for nodes

Synopsis

Get aggregate statistics across all nodes in the network including resource usage, connection states, and distribution by OS/architecture.

expanso-cli node stats [flags]

Examples

  # Get stats for all nodes
expanso-cli node stats

# Get stats for connected nodes only
expanso-cli node stats --state connected

# Get stats for nodes with specific labels
expanso-cli node stats --label region=us-west --label env=prod

# Output as JSON
expanso-cli node stats --format json

Options

  -f, --format {table|json|yaml|csv}   Output format (default table)
-h, --help help for stats
--label strings Filter by labels (format: key=value)
--no-header Hide table headers (table format only)
--no-style Disable colors and styling
--state node connection state Filter by node connection state
-w, --wide Show full values without truncation (table format only)

Options inherited from parent commands

      --auth-token string   API bearer authentication token
-e, --endpoint string API endpoint URL
-k, --insecure Skip TLS certificate verification
-p, --profile string Profile to use for configuration
--timeout string Request timeout duration
-v, --verbose Enable verbose logging

SEE ALSO

Auto generated by spf13/cobra on 19-Nov-2025