V Valk
Documentation

Anomaly Rules Guide

Explore how Valk detects anomalies, when they trigger, and what actions to take next. Rules are auto-discovered—add a new one and it shows up here.

Index Type Mismatch

INDEX_TYPE_MISMATCH
Warning

Evaluates schema metadata to recommend more suitable index access methods for common PostgreSQL data patterns.

Schema 0 examples

Rapid Table Growth

TABLE_GROWTH
Warning

Monitors table size deltas across extractor runs and highlights datasets that balloon within a short observation window.

Schema 0 examples

Slow Query Detection

SLOW_QUERY
Warning

Flags queries whose latest extractor window average (“Avg Time (Real)”) meets or exceeds the configured slow query threshold. Historical samples remain for context but no longer drive detection.

Performance 2 examples

Unused Index Detection

UNUSED_INDEX
Warning

Flags indexes that have recorded zero scans across consecutive extractor snapshots, indicating they may be redundant and suitable for removal.

Schema 0 examples

VACUUM Maintenance Required

VACUUM_NEEDED
Warning

Detects tables with excessive dead tuples or stale maintenance activity, helping teams spot bloat before it impacts performance.

Maintenance 0 examples