Hubble CLI
$ hubble Foundation Low RiskHubble CLI (hubble) connects to the Hubble Relay API in Cilium-powered Kubernetes clusters to inspect real-time and historical L3/L4/L7 network flows, DNS lookups, and network policy drops. Read-only by design, it supports -o json / jsonpb and rich server-side filters.
brew install hubble hubble observe -o json streams pre-filtered eBPF flow records directly from Hubble Relay with low overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Native -o json and jsonpb output with server-side filters (-n, --verdict, --protocol, --last) prevent unbounded token dumps.
hubble observe -o jsonemits protobuf-mapped JSON flow objects--last <N>bounds output deterministically without interactive TTY
Strictly read-only telemetry CLI with zero cluster mutation capabilities.
- Read-only gRPC client to Hubble Relay (
observe,status,list)
Single static Go binary via Homebrew and GitHub Releases, though querying clusters typically requires port-forwarding hubble-relay.
- Cross-platform binary via
brew install hubble - Requires Cilium Hubble Relay reachable locally or via
cilium hubble port-forward
Pinpoints network policy drops, DNS errors, and L7 HTTP latency immediately without packet captures.
- Server-side
--verdict DROPPEDand--protocol httpfiltering
Part of CNCF Graduated Cilium project under Apache-2.0.
- Maintained under
cilium/hubble
Clear Cilium observability documentation and CLI flag descriptions.
- Official docs at docs.cilium.io/en/stable/observability/hubble/
Security, Auth & Guardrails
Typically connects over kubectl port-forward to hubble-relay or TLS client certs configured via ~/.config/hubble/config.yaml.
Open-source CNCF Graduated project (Apache-2.0); Isovalent Enterprise offers optional Timescape long-term storage.
# Hubble CLI Agent Rules - Always pass `--last <N>` (or `--since`) with `hubble observe` instead of unbounded `--follow` streams. - Filter by `-n <namespace>`, `--pod`, or `--verdict` before piping `-o json` output into context.
Agent-Ready Command Recipes
Safe Read-Only Queries
hubble observe -n prod --verdict DROPPED --last 50 -o json
Returns the last 50 policy-dropped eBPF flow events in prod as JSON lines without hanging.
hubble status
Reports Hubble Relay connectivity, active flows buffer capacity, and monitored Cilium nodes.
Strengths for Agents
- + Strictly read-only eBPF flow inspection eliminates accidental cluster mutation risk.
- + Native
-o jsonpaired with--last,-n, and--verdictgives concise, structured diagnostics. - + Supports
--notnegation filters to exclude noisy health-check traffic.
Caveats & Pitfalls
- ! Requires
cilium hubble port-forwardor an exposed Hubble Relay endpoint before running commands. - ! L7 HTTP/DNS visibility requires Cilium L7 visibility policies enabled in the cluster.