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 value | Environment variable | Default | Purpose |
|---|---|---|---|
clusterId | CLUSTER_ID | auto-detected | logical cluster name shown in the console |
apiKey / existingSecret | API_KEY | — (required) | ingest credential |
serverAddr | SERVER_ADDR | ingest.oboliq.com:443 | ingest endpoint; override when self-hosting |
ingestInsecure | INGEST_INSECURE | false | dial the ingest endpoint without TLS; local plaintext stacks only, since the API key is then sent in cleartext |
scrapeInterval | SCRAPE_INTERVAL | 30s | scrape and push cadence; must be greater than zero |
namespace | NAMESPACE | all namespaces | restrict collection to a single namespace |
resources | — | 50m / 64Mi requests | requests 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 value | Environment variable | Default | Purpose |
|---|---|---|---|
mode | RELAY_MODE | relay | relay (via the metrics agent) or direct |
clusterId | CLUSTER_ID | auto-detected | must match the metrics agent |
apiKey / existingSecret | API_KEY | — | required in direct mode only |
vethRegex | POD_VETH_REGEX | ^(veth|lxc|cali|eni) | pod interfaces; direction is inverted |
nodeRegex | NODE_IFACE_REGEX | ^(ens|eth|en[posx]) | node uplinks; "" to skip |
ifaceWatchInterval | IFACE_WATCH_INTERVAL | 5s | how often to rescan for new interfaces |
window | FLOW_WINDOW | 30s | aggregation and upload window |
flowDetail | FLOW_DETAIL | conversation | conversation folds client ports into a connection count; connection keeps one record per 5-tuple |
dbCapture.mode | DB_CAPTURE_MODE | fingerprint | DB Optimizer query capture: off, fingerprint or full; off also turns dbUprobe off |
dbCapture.namespaces | DB_CAPTURE_NAMESPACES | * | * = every namespace not excluded, or a comma-separated list; empty captures nothing (* needs agent 0.2.0+) |
dbCapture.excludeNamespaces | DB_CAPTURE_EXCLUDE_NAMESPACES | kube-system,kube-public,kube-node-lease | never captured, whatever namespaces says |
dbCapture.ports | DB_CAPTURE_PORTS | 3306,5432,6379 | destination ports to observe |
dbCapture.rssBoundMiB | DB_CAPTURE_RSS_BOUND_MIB | 192 (agent default 64) | agent process memory above which query capture drops one window after three breaches; flow and DNS are unaffected |
dbUprobe.mode | DB_UPROBE_MODE | capture | off, discover or capture; reads Go clients' statements before TLS and adds SYS_PTRACE while not off |
dbUprobe.exeInclude / exeExclude | DB_UPROBE_EXE_INCLUDE / _EXCLUDE | — / node-infrastructure binaries | glob patterns on executable paths to scan or skip |
goMemLimit | GOMEMLIMIT | 240MiB | soft Go heap ceiling under the 320Mi memory limit |
enableJitInitContainer | — | true | privileged init container that sets net.core.bpf_jit_enable=1; set false where policy forbids it |
securityContext.privileged | — | false | prefer 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 variable | Default | Purpose |
|---|---|---|
API_KEY | — (required) | ingest credential; environment only |
SERVER_ADDR | ingest.oboliq.com:443 | ingest endpoint; override when self-hosting |
INGEST_INSECURE | false | dial without TLS; local plaintext stacks only, since the key is then sent in cleartext |
CLUSTER_ID | ec2-<instance-id> | the host's identity in obolIQ; host-<hostname> off EC2. Keep it stable: changing it registers a second host |
COLLECT_INTERVAL | 30s | collection and push cadence; minimum 5s |
SEND_TIMEOUT | 20s | deadline for one send, retries included; must be above zero and below the interval |
EBPF_ENABLED | true | per-service network bytes. Off, and the host reports CPU and memory only |
DNS_ENABLED | true | name remote addresses from the DNS answers the host receives; needs CAP_NET_RAW |
UNIT_INCLUDE / UNIT_EXCLUDE | all / none | comma-separated globs over service and container names; exclude wins |
MAX_UNITS | 100 | services reported per snapshot, busiest first; the rest fold into host-system |
REQUEST_WINDOW | 5m | smoothing window for the request each service reports; at least the interval. See Cost attribution |
DOCKER_SOCKET | /var/run/docker.sock | engine socket for container names; absent is fine |
DISK_PATH | / | filesystem whose size is reported as storage capacity |
NO_IMDS | false | do not query EC2 metadata (not on EC2). Needs HOST_REGION and HOST_INSTANCE_TYPE |
HOST_REGION / HOST_INSTANCE_TYPE / HOST_AZ | detected | override what EC2 metadata reports |
HOST_OFFERING | detected | ON_DEMAND or SPOT |
IMDS_ENDPOINT | http://169.254.169.254 | EC2 metadata endpoint; leave as is |
PROC_ROOT / CGROUP_ROOT | /proc / /sys/fs/cgroup | filesystem roots, for containerised or test setups |
SINK | grpc | stdout prints each snapshot as JSON and sends nothing; use it with -once to see what would be reported |
LOG_LEVEL | info | debug, 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:
sudo /usr/local/bin/oboliq-host-agent -sink=stdout -onceIt 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:
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
kubectl -n oboliq rollout status deploy/oboliq-agent
kubectl -n oboliq logs -l app.kubernetes.io/name=oboliq-agent --tail=50The 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
- Installation — full install walkthrough
- Configuration — complete Helm value reference
- The eBPF agent — requirements and troubleshooting