Skip to main content

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.

Discovery scans your databases to build a catalog of tables, views, and columns. Run it manually or on a schedule to keep your asset inventory current.

Running Discovery Manually

  1. Go to Data Sources in the sidebar
  2. Find your data source
  3. Click Run Discovery (or the refresh icon)
  4. Wait for completion (typically 30 seconds to 5 minutes)
You’ll see “Discovery completed” with a summary of assets found.

Scheduling Discovery

Set discovery to run automatically:
  1. Go to Data Sources → select your data source
  2. Click Settings (gear icon)
  3. Under Discovery Schedule, select frequency:
ScheduleBest ForTypical Use Case
HourlyProduction databasesCatch changes quickly
Every 6 hoursActive developmentBalance coverage and load
DailyStable databasesLow-change environments
WeeklyArchives, warehousesRarely modified systems
  1. Click Save
Discovery runs at the start of each interval (e.g., hourly = on the hour).

What Discovery Finds

During each run, discovery catalogs:
Asset TypeWhat’s Captured
TablesName, schema, columns, types, constraints
ViewsName, schema, underlying columns
ColumnsName, data type, nullability, defaults
RelationshipsForeign keys, primary keys

Discovery Duration

Discovery time depends on database size:
Database SizeTypical Duration
< 100 tables30 seconds
100-500 tables1-2 minutes
500-2000 tables2-5 minutes
2000+ tables5-15 minutes
Discovery runs read-only queries against system catalogs. It doesn’t impact your database performance significantly.

Incremental vs Full Discovery

Incremental (default): Checks for changes since last run. Faster. Full: Re-scans everything. Use when:
  • First run after connecting
  • Suspect missed changes
  • After major database migrations
To run full discovery:
  1. Go to Data Sources → select your data source
  2. Click the dropdown arrow next to Run Discovery
  3. Select Full Discovery

Viewing Discovery Results

After discovery completes:
  1. Go to Assets in the sidebar
  2. Filter by data source to see discovered assets
  3. Click any asset to view details
New assets show a “New” badge for 24 hours.

Discovery History

View past discovery runs:
  1. Go to Data Sources → select your data source
  2. Click History tab
  3. See each run with:
    • Timestamp
    • Duration
    • Assets found/changed
    • Any errors

Troubleshooting

Causes:
  • Large database with many tables
  • Slow network connection
  • Database under heavy load
Fix:
  1. Check discovery history for progress
  2. Wait up to 30 minutes for large databases
  3. If stuck, cancel and retry during off-peak hours
Causes:
  • User doesn’t have permission on those schemas
  • Tables in schemas excluded from discovery
  • Views the user can’t access
Fix:
  1. Check your database user’s permissions
  2. Grant SELECT on information_schema (or equivalent)
  3. Verify schema inclusion settings
Causes:
  • Connection credentials changed
  • Database unreachable
  • Permission revoked
Fix:
  1. Check the error message in discovery history
  2. Test the connection in Data Sources
  3. Verify credentials and network access

Common Questions

Does discovery impact database performance?

No. Discovery runs read-only queries against system catalogs (information_schema and equivalents), not against your data tables. The load is negligible even on large databases.

How often should I run discovery?

For production databases, run discovery hourly to catch schema changes quickly. Stable databases can run daily, and archives can run weekly. More frequent runs shorten the window between a change and detection.

What’s the difference between incremental and full discovery?

Incremental discovery checks only for changes since the last run and is the default. Full discovery re-scans everything and should be used after the first connection, after major migrations, or when you suspect a missed change.

Why are some tables missing after discovery?

The most common cause is permissions. The database user AnomalyArmor connects with needs SELECT on information_schema (or the vendor equivalent) and access to the target schemas. Check also that the schema isn’t excluded in your discovery settings.

How long does discovery take on a large database?

Databases under 100 tables finish in about 30 seconds. 500-2000 tables take 2-5 minutes, and 2000+ tables can take 5-15 minutes. If a scan runs longer than 30 minutes it’s likely stuck, retry during off-peak hours.

See Also

Discovery Concepts

How discovery works under the hood

Schema Changes

Understanding detected changes