Metrics are statistical measurements that track properties of your data over time. AnomalyArmor captures metrics on a schedule, builds baselines, and alerts you when values fall outside expected ranges.Documentation Index
Fetch the complete documentation index at: https://docs.anomalyarmor.ai/llms.txt
Use this file to discover all available pages before exploring further.
What Metrics Track
| Metric Type | What It Measures | Example Use Case |
|---|---|---|
row_count | Total rows in a table | Detect data loss or unexpected growth |
null_percent | Percentage of null values | Catch ETL issues leaving nulls |
distinct_count | Unique values in a column | Detect cardinality changes |
duplicate_count | Duplicate values | Find unexpected duplicates |
min_value | Minimum numeric value | Catch invalid data (negative prices) |
max_value | Maximum numeric value | Detect outliers |
mean | Average numeric value | Monitor central tendency |
How Anomaly Detection Works
- Baseline building: Historical values establish what’s “normal”
- Z-score calculation: Each new value is compared to the baseline
- Sensitivity threshold: Values exceeding the threshold trigger alerts
Common Questions
How is a metric different from a validity rule?
A metric captures a numeric property over time (row count, null percentage, distinct count) and flags statistical anomalies against a learned baseline. A validity rule checks a deterministic condition on current data (value in allowed set, format match, range bounds). Use metrics to catch “this number changed suspiciously”; use validity rules to catch “this data broke a known contract”.What’s the default sensitivity for anomaly detection, and when should I change it?
Default is 2.0 standard deviations - roughly 95% of normal variance stays silent, outliers alert. Raise to 3.0 for noisy metrics where 2σ produces false alerts; lower to 1.5 for business-critical metrics where you’d rather investigate a false positive than miss a real anomaly. Tune per-metric, not globally.How much history does AnomalyArmor need before metric anomaly detection works?
Typically 7-14 days of captures at your chosen sampling interval. During this “learning” phase, values are recorded but no alerts fire. You can shorten the wait by temporarily reducing the sample interval, then relaxing it once the baseline is established.Can I define a custom metric that isn’t in the built-in list?
Yes, via custom SQL monitoring. Write aSELECT that returns a single numeric column and AnomalyArmor treats the result as a metric - baseline learning, anomaly detection, and alerting all work the same way as built-in metrics.
Next Steps
Create a Metric
Set up your first data quality metric
Set Up Alerts
Get notified when anomalies are detected
