The monitoring agent behind OKStatus. Run it inside your own network as a private agent to monitor services that are not reachable from the public internet — intranet APIs, databases behind a VPN, on-prem hosts. Outbound HTTPS only, no inbound port, no VPN.
- Single static binary (Rust), ~20 MB, runs on 64 MB of RAM
- linux/amd64 and linux/arm64 — bare-metal, VM, Docker or Kubernetes
- Checks: HTTP/HTTPS (status, body, TLS expiry), TCP, DNS, ping, gRPC health, LLM canaries
- Pull model: the agent polls
backend.okstatus.eufor tasks and pushes results back - Prometheus metrics on
:9091/metrics, health on:9091/health
Generate an enrollment token from Dashboard → Private Agents → Add agent (Max/Enterprise plans), then pick one of:
curl -fsSL https://raw.githubusercontent.com/Clearcloud-Fr/okstatus-agent/main/packaging/install.sh | sudo bash -s -- \
--token oksa_live_xxxx --name dc-paris-01Downloads the latest release binary, checks it against the release's
SHA256SUMS (nothing is installed on a mismatch), and installs
/usr/local/bin/okstatus-agent, a hardened okstatus-agent systemd unit and
/etc/okstatus-agent/okstatus-agent.env (root only: systemd reads it, the
agent cannot change it). --version v1.1.0 pins a release;
--binary-url <url> --sha256 <sum> installs from a mirror. Logs:
journalctl -u okstatus-agent -f.
docker run -d --name okstatus-agent --restart unless-stopped \
-e OKSTATUS_AGENT_ID=<id> -e OKSTATUS_AGENT_SECRET=<secret> \
-e OKSTATUS_AGENT_NAME=dc-paris-01 \
ghcr.io/clearcloud-fr/okstatus-agent:latesthelm repo add okstatus https://charts.okstatus.eu
helm install okstatus-agent okstatus/private-agent \
--set credentials.agentId=<id> --set credentials.agentSecret=<secret> \
--set name=k8s-private-agentChart source: Clearcloud-Fr/okstatus-helm-charts.
Download from Releases
(okstatus-agent-linux-amd64, okstatus-agent-linux-arm64, SHA256SUMS).
| Variable | Default | Description |
|---|---|---|
AGGREGATOR_URL |
https://backend.okstatus.eu |
OKStatus endpoint the agent pulls from |
OKSTATUS_AGENT_NAME |
hostname | Name shown on the dashboard |
OKSTATUS_AGENT_ID / OKSTATUS_AGENT_SECRET |
— | Stateless identity (recommended) |
OKSTATUS_TOKEN |
— | Single-use enrollment token (alternative to the pair above) |
OKSTATUS_CREDENTIALS_FILE |
— | Where token mode persists the exchanged credentials |
MAX_CONCURRENT_CHECKS |
100 |
Parallel checks |
POLL_INTERVAL_MS |
2000 |
Task polling interval |
CHECK_TIMEOUT_MS |
5000 |
Per-check timeout |
HEALTH_PORT |
9091 |
/health + /metrics port |
RUST_LOG |
info |
Log level |
HTTPS_PROXY |
— | Egress proxy |
OKSTATUS_ALLOW_CLOUD_METADATA |
false |
Let checks reach the cloud metadata endpoints (see below) |
Identity: either the stateless pair (survives any restart, nothing written to disk) or a token exchanged on first start. One identity = one running instance; deploy more agents from the dashboard for HA.
- The agent only ever opens outbound connections to
AGGREGATOR_URL. - It can only run checks for the organisation that enrolled it, and only targets you configured on the dashboard.
- Private IP ranges are allowed as targets only in private-agent mode (the public fleet refuses them).
- Even in private-agent mode, the cloud metadata endpoints
(
169.254.169.254,169.254.170.2,fd00:ec2::254,100.100.100.200,metadata.google.internal) are refused, so a monitor cannot read the credentials of the machine the agent runs on. SetOKSTATUS_ALLOW_CLOUD_METADATA=trueonly if you monitor that endpoint. - The container image runs as uid 1001 on a distroless base; the Helm chart
passes the Kubernetes
restrictedPod Security Standard. - systemd unit runs unprivileged with
ProtectSystem=strict,NoNewPrivileges, capability set empty.
cargo build --release # needs Rust 1.94+, libssl-dev, pkg-config
docker build -t okstatus-agent .Releases are cut by tagging: git tag v1.2.3 && git push origin v1.2.3
(see .github/workflows/release.yml).
Apache-2.0 — see LICENSE.