Real-time network topology and link state monitoring for Kubernetes environments with Cilium/Hubble.
- Real-time link state tracking (active/idle/down)
- Per-interface rx/tx metrics from real kernel counters — captures all traffic (ping, ssh, scp, routing protocols, etc.)
- Sidecar agent injected via Clabernetes
extraContainers— sees all interfaces (linecards, CPM, mgmt) - Configurable collection interval (
POLL_INTERVAL_MS) - REST API and WebSocket streaming for Cytoscape visualization
- Cilium Hubble integration for eBPF-based flow visibility
- Multi-lab topology support with Clabernetes
helm install network-monitor oci://ghcr.io/bayars/charts/network-monitor \
--namespace network-monitor \
--create-namespaceOr from source:
helm install network-monitor helm/network-monitor \
--namespace network-monitor \
--create-namespacekubectl apply -f k8s/deployment.yamlkubectl get pods -n network-monitor
curl http://<SERVICE_URL>/health
curl http://<SERVICE_URL>/api/topologyThe sidecar agent is injected into every Clabernetes topology pod via extraContainers. Set it once in your Clabernetes Helm values — all topology pods get the sidecar automatically:
# In Clabernetes Helm values:
globalConfig:
deployment:
extraContainers:
- name: netmon-sidecar
image: ghcr.io/bayars/netmon-sidecar:latest
env:
- name: API_URL
value: "http://network-monitor.network-monitor.svc:8000"
- name: POLL_INTERVAL_MS
value: "2000"
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespaceSee k8s/sidecar-example.yaml for full examples.
| Variable | Default | Description |
|---|---|---|
config.logLevel |
INFO |
DEBUG, INFO, WARNING, ERROR |
service.type |
ClusterIP |
Service exposure type |
ingress.enabled |
false |
Enable Ingress |
See docs/helm.md for full values reference.
uv sync --dev
uv run uvicorn api.main:app --reload # Run API
uv run pytest tests/ -v # Run tests| Topic | Link |
|---|---|
| Helm Chart | docs/helm.md |
| Platform Deployment (GKE, EKS, AKS, on-prem) | docs/deployment.md |
| API Reference | docs/api.md |
| Architecture & Discovery Modes | docs/README.md |
| Demo Scripts | demo/README.md |
MIT License