Insights should support alert configuration and incident creation
Describe the bug The Insights section currently does not provide an easy way to configure an alert based on an insight/metric and automatically declare an incident when the configured condition is met. For example, if an insight shows that a particular metric has exceeded a threshold, users should be able to configure an alert directly from that insight.
To Reproduce Steps to reproduce the behavior:
- Go to OneUptime.
- Navigate to the Insights section.
- Select an insight/metric.
- Review the available actions/options.
- Notice that there is no straightforward option to configure an alert and associate the alert with incident creation.
Expected behavior Insights should provide an option to create/configure an alert based on the selected insight. The alert configuration should ideally allow users to define:
- Metric/insight to monitor
- Condition/operator
- Threshold
- Evaluation period
- Alert frequency
- Severity
- Notification destination
- Incident creation behavior
When the configured condition is met, OneUptime should be able to automatically declare an incident.
Additional requested functionality The Insights view should also support sorting/filtering options such as:
- Last Seen — newest first
- Last Seen — oldest first
- Most frequently observed
- Highest value
- Lowest value
- Most recent activity
- Time range
This would make it easier to identify recently active or frequently occurring issues.
Screenshots
Desktop (please complete the following information): OS: [Windows] Browser [chrome] Version [154.0.8037.58 ]
Deployment Type Self Hosted 14.0.11
Additional context The goal is to make Insights actionable rather than only informational. Users should be able to go from:
Insight → Configure Alert → Alert Condition Met → Incident Created
without having to create a separate workflow manually.
Source: OneUptime/oneuptime