K8s Agent
The NudgeBee Agent is a lightweight software component that runs inside your Kubernetes cluster. It collects data about workloads, performance, cost, and security, and sends it to the NudgeBee server — feeding the Semantic Knowledge Graph that powers NudgeBee's Cloud-Ops Intelligence. You need to install an agent in every cluster that you want NudgeBee to monitor. The agent supports AWS, Azure, GCP, and on-premises Kubernetes environments.
Both Cloud SaaS and self-hosted users need to install the agent. This is how NudgeBee gets visibility into your Kubernetes clusters, regardless of your deployment model.
If you connected a cloud account (AWS, Azure, or GCP), NudgeBee can auto-discover your Kubernetes clusters. You may still need to install the agent for deep monitoring, but cluster discovery happens automatically.
What You Will Find in This Section
Install — getting the agent running, 5–10 minutes per cluster.
- Install the agent — prerequisites, Helm install, and how to verify it connected.
- Kubernetes providers — extra steps for GKE and AKS.
- Upgrade — moving an existing agent to a newer version.
Connect data sources — what the agent reads once it is running.
- Alert forwarding — point your Alertmanager at the agent. Without this NudgeBee never sees an alert.
- Metrics — Prometheus, Thanos, VictoriaMetrics, Chronosphere, and other backends.
- Why is Prometheus Disconnected? — 10-step decision tree for debugging metrics connectivity and authentication.
- Logs — Loki, Elasticsearch, SigNoz, Last9.
- Traces — the bundled OTel collector and ClickHouse, or Google Cloud Trace.
- Grafana and multi-tenant Prometheus.
Operate & Troubleshoot — tuning, health monitoring, and diagnostics for a running agent.
- Troubleshoot Agent Connectivity — diagnose disconnected agents, periodic heartbeat staleness, flapping, and safe log bundles.
- Agent Health & Subsystem Probes — field-by-field reference for Relay, Prometheus, Logs, Traces, and Node Agent probes.
- Enable or Disable Agent Modules — module switches, feature impact, and verification steps.
- Agent Storage and PVCs — default and custom StorageClasses, pending claims, expansion, and disabling bundled trace storage.
- Helm values — every value you are likely to set, including access modes and sizing.
- Node agent configuration — eBPF collector tuning.
- Cluster autoscaler — Karpenter support.
Other environments
- Proxy Agent — deploy through a proxy for restricted or air-gapped networks.
- Local setup — run against a local KinD cluster.
- On-prem setup — values for a self-hosted server.
Architecture
The NudgeBee Agent runs within your Kubernetes cluster. The main component is the Runner, which acts as a central controller — it coordinates data collection from cluster components and maintains a secure, outbound-only WebSocket connection to the NudgeBee Server.
Components
Event Watcher (Forwarder) - Watch for K8s Events
- Monitors Kubernetes events using the Kubernetes API server.
- Filters and processes events based on predefined criteria.
- Forwards relevant events to the Runner component for incident triage.
Node Agent - Network & eBPF Telemetry
The Node Agent collects low-overhead network metrics and distributed trace signals on each Kubernetes node using eBPF:
- eBPF Probes: Attaches to socket connections and packet lifecycle events to capture latency, throughput, and connection resets.
- Metric & Signal Publisher: Publishes network performance signals to Prometheus and forwards distributed traces to the OpenTelemetry collector.
Runner - Discovery & In-Cluster Controller
The Runner facilitates workload discovery, coordinates data aggregation from metrics/logs/traces, and communicates securely with the NudgeBee Server:
- Discovers running workloads, pods, and services via Kubernetes API.
- Maintains an outbound-only WebSocket connection to the Relay Server.
- Executes diagnostic runbooks and remediation commands safely inside the cluster.
Logs - Read From Your Existing Log Store
The runner queries logs where they already are rather than shipping a second copy. Supported backends are Loki (including Last9, which exposes Loki APIs), Elasticsearch and OpenSearch-compatible services, SigNoz, and Google Cloud Logging.
Traces - Distributed Tracing
The node agent produces spans from eBPF and sends them to the OpenTelemetry collector the chart installs, which writes to the bundled ClickHouse. The runner can also read traces from Jaeger, Chronosphere, Apache Pinot, or Google Cloud Trace via BigQuery instead.
Metrics
Metrics come from a Prometheus-compatible backend you already run — Prometheus, Thanos, VictoriaMetrics, Grafana Mimir, Chronosphere, Amazon Managed Prometheus, Azure Monitor. The chart does not install one; the quick-install script will add kube-prometheus-stack if the cluster has none.
Recommendation & Diagnostic Jobs
The runner launches short-lived Jobs for analysis that needs its own tooling:
- Trivy: scans container images for CVEs.
- KRR: analyses CPU and memory usage for rightsizing recommendations.
- Popeye: inspects cluster configuration for misconfigurations and anti-patterns.
Component failure boundaries
Use this table before changing several components at once:
| Symptom | Most likely boundary | What can still work |
|---|---|---|
| Entire agent is disconnected | Runner-to-collector authentication or network path | In-cluster node-agent and forwarder pods may still be running. |
| Live queries fail but telemetry heartbeat is current | Relay connection, request signing, or datasource configuration | Periodic inventory and health telemetry can continue. |
| Workloads appear but no alert-driven events arrive | Alertmanager route and webhook delivery to /api/alerts | Prometheus queries and Kubernetes discovery continue. |
| Prometheus is connected but node-agent count is zero | PodMonitor/scrape selection or node-agent target health | Other Prometheus queries can succeed. |
| Kubernetes resource changes stop appearing | Forwarder configuration, RBAC, or runner event intake | Prometheus, logs, and traces queries can continue. |
| Traces disappear | Node-agent trace export, OTel collector, ClickHouse, or external trace provider | Metrics, inventory, alerts, and logs continue. |
See Agent Health for the reported fields and Troubleshoot Agent Connectivity for the runner-to-server path.