Postgresql table not auto analyzed warning
>>>
((
pg_stat_user_tables_n_tup_del
+
pg_stat_user_tables_n_tup_upd
+
pg_stat_user_tables_n_tup_hot_upd
) >
pg_settings_autovacuum_analyze_threshold
) and (
time
() -
pg_stat_user_tables_last_autoanalyze
) > 24 * 60 * 60 * 10
The alert fires when the sum of deleted, updated, and HOT‑updated rows for a table exceeds the autovacuum_analyze_threshold and the table has not been auto‑analyzed for at least 10 days (10 × 24 × 60 × 60 = 864000 seconds). In that case Prometheus triggers the "Postgresql table not auto analyzed" alert, inserting the table name via the relname label.
Exporters Used
Related Alerts
PostgreSQLCacheHitRatio
PostgreSQLDown
PostgreSQLHighConnections
PostgreSQLMaxConnectionsReached
PostgreSQLQPS
PostgreSQLSlowQueries
Postgresql SSL compression active
Postgresql bloat index high (> 80%)
Postgresql bloat table high (> 80%)
Postgresql commit rate low
Postgresql configuration changed
Postgresql dead locks
Postgresql down
Postgresql exporter error
Postgresql high rate deadlock
Postgresql high rate statement timeout
Postgresql high rollback rate
Postgresql invalid index
Postgresql low XID consumption
Postgresql not enough connections
Postgresql replication lag
Postgresql restarted
Postgresql table not auto vacuumed
Postgresql too many connections
Postgresql too many dead tuples
Postgresql too many locks acquired
Postgresql unused replication slot