Skip to main content
An observer is the only part of RubixKube that runs near your workload. Everything else lives in RubixKube and works from what the observer sends. There’s one kind for Kubernetes and one for machines and cloud accounts. Each discovers what’s running, reports what breaks, and answers Rubix when it needs to look closer. Tools such as Datadog don’t need an observer. They connect by webhook.
An observer in your environment opens two outbound connections to RubixKube. Nothing connects inAn observer in your environment opens two outbound connections to RubixKube. Nothing connects in

What an observer does

  • Discovers topology. It builds a map of services, nodes and how they connect, and sends the changes.
  • Reports incidents. Its rules decide what’s broken, and it sends each incident with its evidence.
  • Checks recovery. Every minute it checks whether open incidents have become healthy.
  • Answers Rubix. During a chat or an RCA, Rubix asks it for logs, metrics and resources.
  • Hides sensitive values. The Kubernetes observer replaces passwords, tokens and similar values before logs or tool results leave your cluster.
The Kubernetes observer’s own tools only read. Its permissions go further than that, and Safety and control lists them.

Where it runs, and how small

Above about 50 nodes, raise the memory limit or run more replicas. The source’s page says which.

What an observer sees

Each source type has a different set of signals, but the shape is consistent.
  • Pods, nodes, deployments, services and replicasets, watched live.
  • Changes to deployments, statefulsets, daemonsets, nodes, services and autoscalers.
  • Changes to ConfigMaps and Secrets, by name only. The observer doesn’t see what changed inside them.
  • Logs and metrics, read when Rubix asks.
  • Service error rates and latency, where the metrics exist.
  • EC2, EBS, load balancers, Lambda and RDS.
  • CloudWatch alarms and logs.
  • CloudTrail write events.
  • Compute Engine.
  • Cloud Logging.
  • Audit logs.
  • CPU, memory and disk.
  • Systemd services and restarts.
  • Process crashes and OOM kills.
  • Journald and syslog.

How an observer decides what to report

Not everything that looks wrong is worth an incident. On Kubernetes, three things decide, and you can change each in Configuration on the source’s page.
1

Rules

A rule says what counts as broken: a crash loop, an OOM kill, a pod that won’t start or can’t be placed, a high error rate, slow responses, or memory growing towards its limit. Turn rules on or off in the Detection tab.
2

Hold

A new problem waits at least 30 seconds. By default it’s reported after 3 checks or 5 minutes, whichever comes first. A shorter hold floods the list with things that fix themselves. Change it in the Timing tab.
3

Ignore lists

Problems in the namespaces and workloads you list aren’t raised. Their pods stay in the topology. Change them in the Ignore tab.

Outbound network requirements

An observer needs two outbound endpoints.
  • api.rubixkube.ai:443 (HTTPS) for registration, heartbeats and settings.
  • nats.rubixkube.ai:4222 (TCP, authenticated, outbound only) for incidents, topology and requests from Rubix.
Nothing outside your network connects in. Rubix’s requests arrive over the connection the observer opened. If you run several replicas, the pods also talk to each other on port 8090 inside the namespace. If an endpoint isn’t reachable, the observer keeps trying to reconnect.

Common questions

It doesn’t need cluster-admin, and the Kubernetes pod runs as a non-root user with a read-only root filesystem. The ClusterRole is still broad: it can read Secrets and create pods/exec. On a machine, the observer runs as root. Cloud installers set up read-only access. Safety and control has the details, including how to review the manifest first.
One per cluster, cloud account or machine is the normal setup. On a big Kubernetes cluster, run up to 5 replicas with ?replicas= on the install address or with kubectl scale. One pod is chosen as leader and hands each workload to one pod.
Continuously. The connection on port 4222 stays open. A heartbeat goes over HTTPS every 60 seconds.
After 5 minutes without a heartbeat the source reads disconnected. After 24 hours it’s archived.
Yes. Apply the manifest again. It upgrades the observer and keeps the source, and the Deployment rolls the new pod out.

Knowledge graph

What observers keep current.

Safety and control

What an observer can reach, in full.

Connect your environment

Install your first observer.