Docker Image
Available on Docker Hub:
gorules/agentWhen to use the Agent
Choose Agent when:- Multiple services need to evaluate the same rules
- You want to update rules without redeploying applications
- You need REST API access to rule evaluation
- You want centralized metrics and observability
- You need sub-millisecond latency (use embedded SDK)
- You’re in a single-service architecture (embedded may be simpler)
Architecture
Custom Docker image
Build a self-contained image with your rules baked in. This is useful for static rules that don’t change frequently, or for deployments where you want versioned rule images.Environment variables
AWS S3
If your deployment supports IAM roles, credentials are optional.Azure Blob Storage
Google Cloud Storage
MinIO and S3-compatible storage
Local filesystem
Zip file
Additional options
HTTPS configuration
Health probes
Path:/api/health
Port: 8080
Recommended probe configuration:
| Setting | Value |
|---|---|
| Initial delay | 3 seconds |
| Period | 10 seconds |
Hot reloading
The Agent automatically detects rule changes and reloads without downtime:- Agent polls storage at
POLL_INTERVAL(default: 5000ms) - Detects new or modified rule files
- Loads new version in background
- Atomically swaps to new version
- Requests in-flight complete with old version
Observability
OpenTelemetry
Enable OpenTelemetry withOTEL_ENABLED=true. When enabled, standard OTEL environment variables are supported: