Quick Start
Install and run Ketos Agent in 3 minutes to generate your first AI-native full-context incident pack and test lossless configuration hot reload.
1. Get the Collector
Section titled “1. Get the Collector”Ketos Agent ships as a single static binary with zero runtime dependencies for Linux (amd64/arm64), macOS, and Windows.
# Download the static binary for your platform from GitHub Releases:# https://github.com/ketoslab/ketos/releaseschmod +x ketos-agent./ketos-agent --versiongit clone https://github.com/ketoslab/ketos.gitcd ketos-agentgo build -o bin/ketos-agent ./cmd/ketos-agent./bin/ketos-agent --versiongit clone https://github.com/ketoslab/ketos.gitcd ketos-agentgo build -o bin/ketos-agent.exe ./cmd/ketos-agent.\bin\ketos-agent.exe --version[!TIP] For production daemon deployment (systemd, Docker, or Kubernetes host monitoring), see Production Deployment.
2. Create a Minimal Configuration
Section titled “2. Create a Minimal Configuration”Create config.yml. The example below enables host metrics and an HTTP probe, plus a demo rule (mem.usage_pct > 1) so you can observe a capture within seconds:
global: interval: 2s eval_interval: 1s before: 10s after: 3s
inputs: host: - id: default http_probe: - id: api_health url: https://api.example.com/health interval: 5s
alerts: # Demo rule: fires within seconds to verify full-context capture - id: demo_mem_active severity: info for: 2s expr: 'last("mem.usage_pct") > 1'
# Endpoint availability alert with host forensics attached - id: api_health_failed severity: critical for: 10s expr: 'last("http_probe.api_health.up") == 0' attach: ["host/default"]3. Start the Collector
Section titled “3. Start the Collector”By default, Ketos Agent starts in standalone local mode (--local-only) and transmits nothing externally:
./bin/ketos-agent --config config.ymlWithin a few seconds, you will see logs like:
level=INFO msg="ketos-agent started" local_only=true collectors="[host http_probe:api_health]" rules=2level=WARN msg="alert transition" incident_id=inc-demo_mem_active-... rule=demo_mem_active state=firinglevel=INFO msg="blackbox snapshot captured" snap_id=snap-... status=complete source=alert:demo_mem_active4. Inspect Your Full-Context Incident Pack
Section titled “4. Inspect Your Full-Context Incident Pack”Snapshots are organized by rule under data/snapshots/<alert_id>/:
ls -la data/snapshots/demo_mem_active/cat data/snapshots/demo_mem_active/host_default_*_firing.mdInside, you will find a compact, self-contained Markdown file:
- YAML Frontmatter: Incident ID, completion status (
partial/complete), trigger rule, and section index. ## Metrics: host/default: Full-precision pre/post CSV metrics scoped strictly to the relevant instance.## Forensic: host/top_processes: Live T0 Top processes ranked by the triggering resource dimension.
[!TIP] Try AI triage right away: Drop this
.mdfile into Claude Code, Cursor, or any LLM and ask for root-cause analysis—no stitching together screenshots or terminal dumps.
5. Experience Lossless Hot Reload
Section titled “5. Experience Lossless Hot Reload”While the collector is running, edit config.yml to change mem.usage_pct > 1 to mem.usage_pct > 100 and save:
- The collector detects the change and logs
msg="config hot-reloaded"without restarting or clearing memory buffers. - After
resolve_for(default15s), it transitions tostate=resolvedand writes a closing..._resolved.mdsnapshot.
Next Steps
Section titled “Next Steps”- Add logs and OTLP traces: Enable Application Logs (
log_file) and APM (apm) for four-dimensional correlation. - Copy production recipes: Browse Recipes & Cookbook.
- Scale with automated AI RCA: Learn how to Connect to Ketos Cloud.