Tiny Agent is a small Go HTTP API that exposes health checks and host runtime metrics.
GET /helloreturns a greeting.GET /healthreturns a service health response.GET /inforeturns Go, OS, CPU, memory, and root filesystem usage data.
go run .The server listens on localhost:8888 by default. Configure the bind address
and port with LISTEN_IP and LISTEN_PORT:
LISTEN_IP=0.0.0.0 LISTEN_PORT=9000 go run .Example request:
curl http://localhost:8888/infogo build -o tiny-agent .
./tiny-agentdocker build -t tiny-agent .
docker run --rm -p 8888:8888 tiny-agentThe image binds to 0.0.0.0:8888 and runs as a non-root user. A systemd unit
is provided in tiny-agent.service for host installations.