elastic / elastic/observability-migration-platform
[Datadog] Forecast-Based Warning (Predictive Alerting)
Open
asset:alerts
capabilities
phase:6
source:datadog
workstream:asset-coverage
- Dominant language
- Python
- Stars
- 6
- Forks
- 8
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 23
Description
The forecast() function predicts where a metric will be in the future based on past behavior. Elastic requires the "Forecasting" feature within their ML module, which isn't a simple JSON query string—it's a separate stateful job.
```json
{
"name": "Predictive Disk Space Exhaustion",
"type": "query alert",
"query": "avg(last_1h):forecast(avg:system.disk.used{host:db-master}, 'linear', 3, interval='60s', history='7d') >= 0.95",
"message": "Disk is predicted to hit 95% capacity within the next 3 hours. @dba",
"options": {
"thresholds": { "critical": 1 }
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.