Install on a Linux host
obolIQ is not only for Kubernetes. The host agent runs on a single Linux machine, typically an EC2 instance, and reports what it costs and what it sends over the network. It is how you see an instance's compute cost split across the systemd services and Docker containers on it, and how you find which of them is talking to the public internet.
Use it for machines that are not in a cluster: a database host, a build server, a bastion, a self-managed Kafka or Elasticsearch box, a legacy application server. For Kubernetes, use the cluster agents.
What you get
- Compute cost per host and per service. The instance's real hourly price (on-demand or spot) split across its systemd services and Docker containers.
- CPU, memory and disk capacity per host and per service.
- Network in and out, per service. Bytes sent and received, the remote addresses behind them, and the hostnames those addresses resolved from.
- Internet egress, priced. Public-internet egress from a host is priced into your daily network cost at the same rates and with the same limits as a cluster's. See What we measure.
It does not need cloud billing access, and the agent itself needs no IAM permissions. The only AWS call it can trigger is reading its own API key from Secrets Manager, if you choose that route below. It only makes outbound connections.
Prerequisites
| Requirement | Detail |
|---|---|
| Linux with systemd | Tested on Amazon Linux 2023 (kernel 6.18). Ubuntu 22.04+ and Debian 11+ are expected to work. |
| cgroup v2 | The default on every distribution above. stat -fc %T /sys/fs/cgroup prints cgroup2fs. |
| Root | The installer writes a systemd unit and a root-only key file. |
| Outbound HTTPS | To ingest.oboliq.com:443. No inbound port is opened. |
| An API key | Created in the console, as for a cluster. |
| Kernel with BTF | Strongly recommended. With it the agent records which remote address each byte went to. Without it, it still reports bytes per service, but with no peers, and internet egress cannot be priced. ls /sys/kernel/btf/vmlinux shows whether you have it. |
Docker is optional. If the engine's socket is present, containers are shown by name; otherwise by a short id.
Each host counts as one cluster
A host is registered the same way a cluster is, so it counts against your organization's cluster limit (3 on the free tier). Check your usage in the console before connecting a fourth.
It also draws on the same snapshot allowance. A host sends one snapshot every 30 seconds, about 2,880 a day, so against the free tier's allowance one host on its own lasts roughly five weeks, and any cluster agents draw from the same pool. Raise COLLECT_INTERVAL to stretch it, at the cost of coarser data.
1. Get an API key
Sign in to the console (console.oboliq.com, or your own console URL if you self-host) and create an API key for your organization. It is the same kind of key the cluster agents use.
2. Get the installer
Everything is served from https://docs.oboliq.com/downloads/host-agent/:
| File | What it is |
|---|---|
install.sh | The newest installer. It installs the newest agent unless you pass --version. |
latest.txt | The newest version number. |
<version>/oboliq-host-agent-linux-amd64.tar.gz | The agent for x86-64 (also -arm64). One static binary, no dependencies. |
<version>/oboliq-host-agent.service | The systemd unit. |
<version>/install.sh | The installer as it was at that release. |
<version>/SHA256SUMS.txt | SHA-256 of every file above. |
A published version never changes. A fix is a new version.
curl -fsSLO https://docs.oboliq.com/downloads/host-agent/install.shRead it before you run it. It is a short shell script, and it runs as root:
less install.shThe downloads need curl on the host. Where it is missing, install it, or use --download-only from another machine and copy the files across (below).
When you run it without --binary, it works out your architecture, downloads that release from the same address, and checks the archive and the unit file against SHA256SUMS.txt before installing anything. It stops on a mismatch. The unit is checked as well because it is installed as root.
What the checksum does and does not prove
SHA256SUMS.txt is served from the same place as the files, so it catches a corrupted or truncated download, not a compromise of the site itself. The transport is HTTPS. If you need more than that, build from a copy you have reviewed and install it with --binary and --unit, below.
Look first, install later
--download-only fetches and verifies the files into a directory and stops. It needs no root and changes nothing on the machine, so you can inspect the binary and the unit, or pass them through your own review before they reach a host.
bash install.sh --download-only ./agent-0.3.1 --version 0.3.1
ls ./agent-0.3.1
# SHA256SUMS.txt oboliq-host-agent oboliq-host-agent-linux-amd64.tar.gz
# oboliq-host-agent.serviceIt downloads the build for the machine you run it on. To prepare files for a different architecture, such as arm64 hosts from an x86 laptop, add --arch arm64 (or amd64).
Install from those files, on this host or another one, with:
sudo bash install.sh \
--binary ./agent-0.3.1/oboliq-host-agent \
--unit ./agent-0.3.1/oboliq-host-agent.service \
--api-key-secret <secret name or ARN> --region <region>Giving both --binary and --unit downloads nothing, so the install itself makes no outbound request to the downloads site. The host still has to reach ingest.oboliq.com:443 to report, so this is not a way to run the agent fully air-gapped.
3. Install
Run the installer as root. Where the API key comes from depends on where the host runs.
On EC2, with the key in Secrets Manager (recommended)
Store the key as a secret and let the instance role read it. The key then never appears in a shell history, a process list or a user-data script.
sudo bash install.sh \
--api-key-secret <secret name or ARN> \
--region <region of the secret>The instance role needs secretsmanager:GetSecretValue on that one secret and nothing else. The installer reads the secret with the AWS CLI, which must be installed on the host (it is on Amazon Linux).
Without Secrets Manager, with the key in the environment
Use this off AWS, or on EC2 when you would rather not use Secrets Manager.
read -rs API_KEY && export API_KEY # paste the key; nothing is echoed or saved to history
sudo -E bash install.shIf your sudoers policy does not allow -E, run the same two commands from a root shell (sudo -i).
To install a specific release instead of the newest, add --version 0.3.1. Pin it in anything you automate, so a new release never changes a host you did not touch.
Either way the installer writes the key to /etc/oboliq/host-agent.env with mode 0600, installs the binary to /usr/local/bin, installs and starts the oboliq-host-agent service, and prints oboliq-host-agent is active if it came up. If it did not, it prints the last log lines and exits non-zero.
To set options at install time, add --set KEY=VALUE (repeatable), for example --set CLUSTER_ID=billing-db-1. The settings are listed in Agent configuration.
Running it again upgrades
Re-running install.sh replaces the binary and unit and restarts the service. With no --version it installs the newest release, so pin one for a repeatable upgrade. Run it without a key source (no --api-key-secret, no API_KEY) and it keeps the existing /etc/oboliq/host-agent.env untouched. Give it a key source and it rewrites that file from scratch, so repeat any --set options you want to keep. To change one setting without reinstalling, edit the file and run sudo systemctl restart oboliq-host-agent.
4. Verify
systemctl is-active oboliq-host-agent
sudo journalctl -u oboliq-host-agent -n 30 --no-pagerA healthy start logs these lines (values will differ):
msg="network tracer attached" probes="[variant=peer tcp_sendmsg ...]"
msg="hostname capture started" source="udp/53 responses"
msg="oboliq-host-agent starting" version=... cluster_id=ec2-i-0abc... instance_type=t3.micro ...
msg="snapshot sent" cluster_id=ec2-i-0abc... pods=26 ...The first snapshot goes out about ten seconds after start, then one every 30 seconds. The host appears under Hosts in the console within a minute. Its name in obolIQ is ec2-<instance-id> unless you set CLUSTER_ID. Choose that before you connect: it is the host's identity, and changing it later registers a second host.
pods=26 is the number of systemd services and containers reported, plus one host-system entry that holds everything outside them (login sessions, the kernel). obolIQ's data model calls every workload a pod; on a host they are services and containers.
What the agent reads
| Source | What it takes | Why |
|---|---|---|
/proc | host CPU, memory, boot time | host totals |
| cgroup v2 | CPU and memory per systemd service and per container | per-service usage |
| EC2 metadata (IMDSv2) | instance id, type, region, zone, spot or on-demand | pricing the host |
| Docker socket | container ids and names | naming containers |
| eBPF byte counters | bytes sent and received per service, and the remote address and port | network in and out |
| DNS answers | hostname to address mappings | naming remote addresses |
It reads names, counts and addresses. It does not read process arguments, environment variables, file contents, log contents or packet payloads. The only packets it sees are DNS answers, and the kernel filters everything else out before the agent receives it.
Resource use
On a t3.micro running about 25 services the agent held roughly 57 MB resident and used under 0.1% of a core. The systemd unit caps it at 256 MiB of memory and 256 tasks, so a bug in the agent cannot become the noisy neighbour it exists to find.
Privileges
The unit runs as root, because the Docker socket is root:docker, with every capability dropped except five:
| Capability | Used for |
|---|---|
CAP_BPF, CAP_PERFMON | loading the network byte counters |
CAP_SYS_PTRACE, CAP_DAC_READ_SEARCH | reading other services' cgroup and /proc files |
CAP_NET_RAW | the packet socket that reads DNS answers |
CAP_NET_RAW is the one that lets a process see network traffic, which is why a kernel filter limits that socket to UDP datagrams from port 53. It is there only so remote addresses can be shown by name.
To run without hostname capture, set DNS_ENABLED=false and remove CAP_NET_RAW from the unit's CapabilityBoundingSet and AmbientCapabilities, and AF_PACKET from RestrictAddressFamilies. If you remove only the capability, the agent logs that hostname capture is unavailable and carries on. Either way, remote peers are shown by address.
DNS over TCP, TLS or HTTPS is not seen, and neither is a resolver reached over IPv6.
Troubleshooting
oboliq-host-agent failed to start from the installer
Read the log it prints. The usual cause is a missing key (API_KEY is required when sink=grpc) or a bad value in /etc/oboliq/host-agent.env; the agent reports every configuration problem at once rather than one per restart.
A host without cgroup v2 does not fail to start. The agent logs workload discovery failed; reporting host totals only and carries on, so you get the host's CPU and memory but no per-service breakdown.
no API key: pass --api-key-secret, set API_KEY, or create /etc/oboliq/host-agent.env
The installer found no key source and no existing key file. With sudo, use sudo -E so API_KEY reaches the script, or pass --api-key-secret.
--region is required with --api-key-secret
Secrets Manager is regional. Pass the region the secret lives in.
host snapshot NOT delivered; this interval is lost
The agent could not deliver a snapshot. The grpc_code on the same line says why:
Unauthenticated: the key is wrong, revoked or mistyped. Replace it in/etc/oboliq/host-agent.envand restart.ResourceExhausted: your organization is at its cluster limit, or its snapshot allowance is used up. Theerrorfield names which. The agent does not retry this, because it needs a person. Each host is a cluster, so a fourth host on the free tier is refused.UnavailableorDeadlineExceeded: the host cannot reachingest.oboliq.com:443. Check outbound HTTPS, proxies and security group egress rules. The agent retries these.
The host does not appear in the console
Check the service is active, then the log. If snapshots are being sent but the host is missing, you may be signed in to a different organization than the key belongs to. The console's organization switcher is at the top of the sidebar.
"network tracer unavailable; continuing without per-workload network bytes"
The eBPF counters could not load, usually because the kernel is too old or has kprobes disabled. CPU and memory still report. Network shows as no data, not as zero.
Peers show as addresses, not hostnames
Either hostname capture could not start (the log says hostname capture unavailable; check that the unit grants CAP_NET_RAW and AF_PACKET), or the connection was opened before the agent started and the application has cached the answer. The name appears the next time the application resolves it.
The agent logs variant=plain
The kernel has no BTF, or its verifier refused the peer-aware program. The agent fell back to per-service totals. Bytes are still counted, but remote addresses are not recorded, so the peers drawer and the internet destination list are empty and internet egress cannot be priced: without a destination, there is no telling a public address from a private one. Upgrade to a kernel that ships BTF to get the full picture.
Not on EC2
On a machine outside EC2 there is no metadata service to ask, and obolIQ prices against AWS list prices. The installer accepts the host as long as you tell it what to price it as:
read -rs API_KEY && export API_KEY
sudo -E bash install.sh \
--set NO_IMDS=true \
--set HOST_REGION=us-east-1 \
--set HOST_INSTANCE_TYPE=m5.large \
--set CLUSTER_ID=office-build-1The agent refuses to start with NO_IMDS unless the region and instance type are both set, so that it never reports a host it cannot price. The dollar figure is then "what an m5.large in us-east-1 costs", not what you pay for your hardware. Use it as a comparison, not as a bill.
Uninstall
sudo systemctl disable --now oboliq-host-agent
sudo rm /usr/local/bin/oboliq-host-agent /etc/systemd/system/oboliq-host-agent.service
sudo rm -r /etc/oboliq
sudo systemctl daemon-reloadThe host shows as Disconnected in the console after 15 minutes without a snapshot. It stays registered and keeps counting toward your cluster limit; ask support to remove it if you need the slot back. Its history stays for the retention periods in Data retention.