Why Schema Monitoring Matters
Schema changes are one of the most common causes of data pipeline failures:What We Monitor
AnomalyArmor detects all structural changes to your database:| Change Type | Description | Impact Level |
|---|---|---|
| Column Removed | Existing column no longer exists | High - breaks queries |
| Column Added | New column appears | Low - usually safe |
| Column Type Changed | Data type modified | Medium - may affect logic |
| Column Renamed | Name changed (detected as remove + add) | High - breaks queries |
| Table Added | New table discovered | Low - informational |
| Table Removed | Table no longer exists | High - breaks queries |
| Constraint Changed | Primary key, foreign key, unique modified | Medium - may affect joins |
How It Works
Schema monitoring happens during discovery:- Discovery scans your database’s system catalogs
- Comparison against the previous discovery state
- Changes recorded with full before/after details
- Alerts triggered based on your rules
Key Features
Automatic Detection
Changes are detected automatically during scheduled discovery, no manual work required.- Set discovery to run hourly, daily, or custom
- Changes detected on next run after they occur
- Zero configuration for basic monitoring
Complete Change History
Every change is recorded with full context:- What changed: Column name, type, constraints
- When detected: Timestamp of discovery
- Before/after: Previous and new values
- Asset context: Which table, schema, database
Flexible Alerting
Route different changes to different places:Change Visualization
See schema changes at a glance:Getting Started
1. Connect Your Database
Schema monitoring starts when you add a data source.2. Run Discovery
Trigger discovery to establish a baseline.3. Set Up Alerts
Create alert rules for schema changes:4. Schedule Discovery
Configure discovery to run regularly:| Environment | Recommended Schedule |
|---|---|
| Production | Hourly |
| Staging | Every 6 hours |
| Development | Daily |
Viewing Schema Changes
In the Asset Catalog
- Go to Assets
- Click on a table or view
- Select the Schema History tab
- Timeline of all changes
- Before/after comparison for each change
- Which discovery run detected it
In Alert History
- Go to Alerts → History
- Filter by “Schema Change”
- Click an alert to see change details
Schema Change Types
Column Removed
What: A column that existed before is no longer present. Risk: High, any query referencing this column will fail. Example:Column Added
What: A new column appears that didn’t exist before. Risk: Low. Existing queries usually continue working. Example:Column Type Changed
What: A column’s data type was modified. Risk: Medium. May affect type-specific logic. Example:Table Removed
What: An entire table no longer exists. Risk: High. All queries to this table will fail. Example:Best Practices
Monitor Production Most Closely
Production schema changes have the highest impact. Run discovery more frequently and set up immediate alerts.Route by Change Type
Not all changes are equally urgent:| Change | Alert Destination |
|---|---|
| Column/Table removed | PagerDuty + Slack |
| Type changed | Slack |
| Column/Table added | Email or Slack (low priority) |
Coordinate with Change Management
When you know schema changes are coming:- Inform your team
- Update downstream code first (if possible)
- Make the schema change
- Verify AnomalyArmor detects it
- Confirm no unexpected alerts
Use Schema History for Debugging
When a pipeline fails, check schema history:- Find the asset in AnomalyArmor
- Look at recent schema changes
- Correlate timing with pipeline failure
- Identify the breaking change
Related Topics
Schema Drift
Deep dive into detecting and managing drift
Asset Discovery
How discovery finds and catalogs assets
Alert Rules
Configure schema change alerts
Core Concepts
Understand schema changes in depth
