Creating Alerts

Set up custom alerts for your resources.

Create Alert

POST /api/v1/alerts
{
  "name": "High CPU Alert",
  "resource_type": "server",
  "resource_id": "uuid",
  "metric": "cpu_percent",
  "operator": "greater_than",
  "threshold": 90,
  "duration_minutes": 5,
  "severity": "warning"
}

Available Metrics

ResourceMetrics
Servercpu_percent, memory_percent, disk_percent, load_1m
Apperror_rate, response_time_p99, restart_count
Databaseconnections, storage_percent, replication_lag

Operators

  • greater_than
  • less_than
  • equals
  • not_equals