Skip to main content

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.

info

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.

tip

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.

Connect data sources — what the agent reads once it is running.

Operate & Troubleshoot — tuning, health monitoring, and diagnostics for a running agent.

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:

SymptomMost likely boundaryWhat can still work
Entire agent is disconnectedRunner-to-collector authentication or network pathIn-cluster node-agent and forwarder pods may still be running.
Live queries fail but telemetry heartbeat is currentRelay connection, request signing, or datasource configurationPeriodic inventory and health telemetry can continue.
Workloads appear but no alert-driven events arriveAlertmanager route and webhook delivery to /api/alertsPrometheus queries and Kubernetes discovery continue.
Prometheus is connected but node-agent count is zeroPodMonitor/scrape selection or node-agent target healthOther Prometheus queries can succeed.
Kubernetes resource changes stop appearingForwarder configuration, RBAC, or runner event intakePrometheus, logs, and traces queries can continue.
Traces disappearNode-agent trace export, OTel collector, ClickHouse, or external trace providerMetrics, inventory, alerts, and logs continue.

See Agent Health for the reported fields and Troubleshoot Agent Connectivity for the runner-to-server path.