Skip to content

Agent configuration ​

The two cluster agents are configured through Helm values, which the chart renders into container environment variables. Every setting below can also be supplied as an environment variable directly if you run the container outside Helm. The host agent is not a chart: it is configured by environment variables in /etc/oboliq/host-agent.env, covered below.

Precedence: an explicit Helm value wins over the chart default.

oboliq-agent (metrics) ​

Helm valueEnvironment variableDefaultPurpose
clusterIdCLUSTER_IDauto-detectedlogical cluster name shown in the console
apiKey / existingSecretAPI_KEY— (required)ingest credential
serverAddrSERVER_ADDRingest.oboliq.com:443ingest endpoint; override when self-hosting
ingestInsecureINGEST_INSECUREfalsedial the ingest endpoint without TLS; local plaintext stacks only, since the API key is then sent in cleartext
scrapeIntervalSCRAPE_INTERVAL30sscrape and push cadence; must be greater than zero
namespaceNAMESPACEall namespacesrestrict collection to a single namespace
resources—50m / 64Mi requestsrequests and limits

Cluster ID auto-detection prefers a friendly node label (for example eksctl's alpha.eksctl.io/cluster-name), then falls back to a stable identifier derived from the kube-system namespace UID. Set it explicitly if you want a readable name — a UID works but reads badly in the console. You can also rename a cluster in the console after it registers.

Lowering scrapeInterval increases both stored volume and cost-query precision. The retention figures in Data retention assume the 30s default.

Restricting to one namespace means cluster-level cost is incomplete by design, and coverage will reflect that. See Coverage and confidence.

oboliq-ebpf-agent (network) ​

Helm valueEnvironment variableDefaultPurpose
modeRELAY_MODErelayrelay (via the metrics agent) or direct
clusterIdCLUSTER_IDauto-detectedmust match the metrics agent
apiKey / existingSecretAPI_KEY—required in direct mode only
vethRegexPOD_VETH_REGEX^(veth|lxc|cali|eni)pod interfaces; direction is inverted
nodeRegexNODE_IFACE_REGEX^(ens|eth|en[posx])node uplinks; "" to skip
ifaceWatchIntervalIFACE_WATCH_INTERVAL5show often to rescan for new interfaces
windowFLOW_WINDOW30saggregation and upload window
flowDetailFLOW_DETAILconversationconversation folds client ports into a connection count; connection keeps one record per 5-tuple
dbCapture.modeDB_CAPTURE_MODEfingerprintDB Optimizer query capture: off, fingerprint or full; off also turns dbUprobe off
dbCapture.namespacesDB_CAPTURE_NAMESPACES** = every namespace not excluded, or a comma-separated list; empty captures nothing (* needs agent 0.2.0+)
dbCapture.excludeNamespacesDB_CAPTURE_EXCLUDE_NAMESPACESkube-system,kube-public,kube-node-leasenever captured, whatever namespaces says
dbCapture.portsDB_CAPTURE_PORTS3306,5432,6379destination ports to observe
dbCapture.rssBoundMiBDB_CAPTURE_RSS_BOUND_MIB192 (agent default 64)agent process memory above which query capture drops one window after three breaches; flow and DNS are unaffected
dbUprobe.modeDB_UPROBE_MODEcaptureoff, discover or capture; reads Go clients' statements before TLS and adds SYS_PTRACE while not off
dbUprobe.exeInclude / exeExcludeDB_UPROBE_EXE_INCLUDE / _EXCLUDE— / node-infrastructure binariesglob patterns on executable paths to scan or skip
goMemLimitGOMEMLIMIT240MiBsoft Go heap ceiling under the 320Mi memory limit
enableJitInitContainer—trueprivileged init container that sets net.core.bpf_jit_enable=1; set false where policy forbids it
securityContext.privileged—falseprefer the default; capabilities suffice on kernel 6.6+
securityContext.capabilities.add—[BPF, PERFMON, NET_ADMIN]SYS_PTRACE is added while dbUprobe.mode is not off; add SYS_RESOURCE below 5.11, SYS_ADMIN below 5.8

In the default relay mode the DaemonSet holds no API key — it authenticates to the in-cluster metrics agent with a projected ServiceAccount token, and the org key stays in a single Secret in one namespace. That is why rotating your key does not require touching every node.

Keep the two interface patterns disjoint

vethRegex and nodeRegex must not overlap. If they do, every pod byte is counted twice — once on the pod's veth and again on the node uplink. The defaults are disjoint; verify any override against ip link output on a real node.

oboliq-host-agent (Linux hosts) ​

Set these in /etc/oboliq/host-agent.env (mode 0600, written by the installer), then run sudo systemctl restart oboliq-host-agent. Each is also a command-line flag; the file is the supported route, because a flag would put the setting in the process list. The API key is environment-only for the same reason. See Install on a Linux host.

Environment variableDefaultPurpose
API_KEY— (required)ingest credential; environment only
SERVER_ADDRingest.oboliq.com:443ingest endpoint; override when self-hosting
INGEST_INSECUREfalsedial without TLS; local plaintext stacks only, since the key is then sent in cleartext
CLUSTER_IDec2-<instance-id>the host's identity in obolIQ; host-<hostname> off EC2. Keep it stable: changing it registers a second host
COLLECT_INTERVAL30scollection and push cadence; minimum 5s
SEND_TIMEOUT20sdeadline for one send, retries included; must be above zero and below the interval
EBPF_ENABLEDtrueper-service network bytes. Off, and the host reports CPU and memory only
DNS_ENABLEDtruename remote addresses from the DNS answers the host receives; needs CAP_NET_RAW
UNIT_INCLUDE / UNIT_EXCLUDEall / nonecomma-separated globs over service and container names; exclude wins
MAX_UNITS100services reported per snapshot, busiest first; the rest fold into host-system
REQUEST_WINDOW5msmoothing window for the request each service reports; at least the interval. See Cost attribution
DOCKER_SOCKET/var/run/docker.sockengine socket for container names; absent is fine
DISK_PATH/filesystem whose size is reported as storage capacity
NO_IMDSfalsedo not query EC2 metadata (not on EC2). Needs HOST_REGION and HOST_INSTANCE_TYPE
HOST_REGION / HOST_INSTANCE_TYPE / HOST_AZdetectedoverride what EC2 metadata reports
HOST_OFFERINGdetectedON_DEMAND or SPOT
IMDS_ENDPOINThttp://169.254.169.254EC2 metadata endpoint; leave as is
PROC_ROOT / CGROUP_ROOT/proc / /sys/fs/cgroupfilesystem roots, for containerised or test setups
SINKgrpcstdout prints each snapshot as JSON and sends nothing; use it with -once to see what would be reported
LOG_LEVELinfodebug, info, warn or error

A bad value does not fail one setting at a time: the agent reports every configuration problem in a single message and exits, so one restart fixes a bad file.

To see exactly what a host would report before it holds a key:

bash
sudo /usr/local/bin/oboliq-host-agent -sink=stdout -once

It prints one snapshot as JSON and sends nothing. It takes about ten seconds, because a CPU rate needs two readings and the agent will not report one it has not measured.

Passing the API key ​

Prefer a pre-created Secret over an inline value, especially under GitOps:

bash
kubectl -n oboliq create secret generic oboliq-creds \
  --from-literal=api-key="$OBOLIQ_API_KEY"

helm install oboliq-agent oci://public.ecr.aws/oboliq/charts/oboliq-agent \
  --namespace oboliq --create-namespace \
  --set existingSecret=oboliq-creds \
  --set existingSecretKey=api-key

--set apiKey=... writes the key into Helm release metadata stored in the cluster, where anyone with read access to the release can recover it. existingSecret avoids that.

Verifying a change ​

bash
kubectl -n oboliq rollout status deploy/oboliq-agent
kubectl -n oboliq logs -l app.kubernetes.io/name=oboliq-agent --tail=50

The agent logs a periodic summary rather than a line per scrape, so a healthy agent is quiet. Failures are always logged at warn or error regardless of level.

See also ​

Every figure in obolIQ traces to a real cloud price. Where we cannot measure something, we say so.