Anomaly Detection
Flux automatically detects unusual patterns in your events and metrics, alerting you to spikes, drops, and trends before they become problems.How It Works
The anomaly detector runs every 15 minutes, comparing recent data with historical baselines:- Baseline Calculation - Uses same hour from previous days
- Comparison - Compares current values to baseline
- Detection - Identifies significant deviations
- Severity - Assigns severity based on deviation magnitude
Anomaly Types
Spike
Value significantly higher than expected:Drop
Value significantly lower than expected:Trend
Sustained directional change over time:Severity Levels
| Severity | Deviation | Color |
|---|---|---|
| Info | 0-50% | Blue |
| Warning | 50-100% | Yellow |
| Critical | >100% | Red |
Viewing Anomalies
Dashboard
Navigate to Flux > Anomalies to see:- Active anomalies
- Anomaly timeline
- Affected metrics/events
- Deviation charts
API
MCP
Managing Anomalies
Acknowledge
Mark an anomaly as seen:- Marks it as acknowledged
- Records who acknowledged and when
- Keeps it in history for analysis
Resolve
Mark an anomaly as resolved:Notifications
Configure how you’re notified about anomalies:Slack
Webhook
Configuration
Enable/Disable
Per-Metric Settings
Configure sensitivity per metric:| Setting | Description | Default |
|---|---|---|
spike_threshold | Multiplier for spike detection | 3.0 |
drop_threshold | Fraction for drop detection | 0.3 |
min_data_points | Minimum data before detecting | 100 |
comparison_window | Historical period for baseline | 7d |
Exclude Metrics
Disable anomaly detection for specific metrics:Best Practices
Set Appropriate Thresholds
Adjust thresholds based on metric volatility
Document Resolutions
Add notes when resolving anomalies
Review Regularly
Check acknowledged anomalies periodically
Route by Severity
Critical to PagerDuty, warnings to Slack
Example: Alert Pipeline
Set up a complete anomaly pipeline:Anomaly History
View historical anomalies for pattern analysis:- Identify recurring issues
- Correlate with deployments
- Find seasonal patterns
- Tune detection thresholds