Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Hubble CLI

$ hubble Foundation Low Risk
Cilium · Cloud & Infra · Apache-2.0 · macos / linux / windows

Hubble 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.

FCRS-1.0 Score
90 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install hubble
CLI vs MCP Decision CLI Preferred vs MCP

hubble observe -o json streams pre-filtered eBPF flow records directly from Hubble Relay with low overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Native -o json and jsonpb output with server-side filters (-n, --verdict, --protocol, --last) prevent unbounded token dumps.

  • hubble observe -o json emits protobuf-mapped JSON flow objects
  • --last <N> bounds output deterministically without interactive TTY
Trust & Safety 24 / 25

Strictly read-only telemetry CLI with zero cluster mutation capabilities.

  • Read-only gRPC client to Hubble Relay (observe, status, list)
Setup & Portability 13 / 15

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
Utility & Efficiency 13 / 15

Pinpoints network policy drops, DNS errors, and L7 HTTP latency immediately without packet captures.

  • Server-side --verdict DROPPED and --protocol http filtering
Maintenance & Lineage 9 / 10

Part of CNCF Graduated Cilium project under Apache-2.0.

  • Maintained under cilium/hubble
Docs & Verifiability 8 / 10

Clear Cilium observability documentation and CLI flag descriptions.

  • Official docs at docs.cilium.io/en/stable/observability/hubble/

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Typically connects over kubectl port-forward to hubble-relay or TLS client certs configured via ~/.config/hubble/config.yaml.

Side Effects
Read-Only
Cost & Quotas

Open-source CNCF Graduated project (Apache-2.0); Isovalent Enterprise offers optional Timescape long-term storage.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect recent dropped flows in a namespace as JSON
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.

Check Hubble Relay status and connected nodes
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 json paired with --last, -n, and --verdict gives concise, structured diagnostics.
  • + Supports --not negation filters to exclude noisy health-check traffic.

Caveats & Pitfalls

  • ! Requires cilium hubble port-forward or an exposed Hubble Relay endpoint before running commands.
  • ! L7 HTTP/DNS visibility requires Cilium L7 visibility policies enabled in the cluster.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI