Go from zero to fully protected in under 60 seconds. One command installs the agent, enrolls it, and starts collecting security events.
Choose your platform and run the installer. The agent will download, configure, and start automatically.
curl -fsSL https://getprometheus.io/install.sh | sudo bash -s -- \
--token YOUR_ENROLLMENT_TOKEN \
--api-url https://api.getprometheus.io
irm https://getprometheus.io/install.ps1 | iex -Args `
"-Token YOUR_ENROLLMENT_TOKEN" `
"-Server https://api.getprometheus.io"
Tip: Get your enrollment token from the admin dashboard under Fleet → Enrollment Tokens. Tokens can be scoped per environment and set to expire.
After installation, verify the agent is running and enrolled:
# Linux: Check service status
sudo systemctl status prometheus-agent
# Windows: Check service status
sc query prometheus-agent
# Both: Run health check
prometheus-agent --health
You should see the agent in your admin dashboard within 30 seconds. The health score should be 90+ for a healthy agent.
The agent reads its configuration from agent.env in its installation directory.
| Variable | Description | Default |
|---|---|---|
PROMETHEUS_SERVER |
API server URL | https://api.getprometheus.io |
ENROLLMENT_TOKEN |
Token for initial enrollment | — |
CLIENT_ID |
Client ID (auto-set after enrollment) | Auto-assigned |
SECRET_KEY |
HMAC secret (auto-set after enrollment) | Auto-assigned |
HEARTBEAT_INTERVAL |
Heartbeat frequency in seconds | 30 |
COLLECT_INTERVAL |
Data collection frequency in seconds | 10 |
LOG_LEVEL |
Logging verbosity (DEBUG, INFO, WARNING, ERROR) | INFO |
QUEUE_MAX_SIZE |
Maximum events in offline queue | 10000 |
AUTO_UPDATE |
Enable/disable automatic updates | true |
The Prometheus API uses HMAC authentication. All endpoints require a valid API key and signature.
Query detections, get evidence bundles, submit analyst feedback, and manage threat events.
GET /api/v2/detections
List agents, create enrollment tokens, manage policies, and monitor fleet health.
GET /api/v2/agents
View model performance, training history, shadow scores, and promote/rollback models.
GET /api/v2/models
Manage subscriptions, view invoices, track usage, and access the billing portal.
GET /api/billing/subscription
HMAC Authentication: Every API request must include X-API-Key, X-Timestamp, and X-Signature headers. Signatures use HMAC-SHA256 with a 300-second time window.