Predefined alert templates - reference#

An alert definition contains a system-defined or user-defined set of conditions that PEM compares to the system statistics. If the statistics deviate from the boundaries specified for that statistic, the alert triggers, and the PEM client displays a warning on the Alerts Overview page and optionally sends a notification to a monitoring user.

The tables that follow list the system-defined alert templates that you can use to create an alert. This list is subject to change and can vary by system.

Templates applicable on agent#

Template name

Description

Probe dependency

Load Average (1 minute)

1-minute system load average

load_average

Load Average (5 minutes)

5-minute system load average

load_average

Load Average (15 minutes)

15-minute system load average

load_average

Load Average per CPU Core (1 minutes)

1-minute system load average per CPU core

load_average

Load Average per CPU Core (5 minutes)

5-minute system load average per CPU core

load_average

Load Average per CPU Core (15 minutes)

15-minute system load average per CPU core

load_average

CPU utilization

Average CPU consumption

cpu_usage

Number of CPUs running higher than a

Number of CPUs running at greater than K% utilization threshold

cpu_usage

Free memory percentage

Free memory as a percent of total system memory

memory_usage

Memory used percentage

Percentage of memory used

memory_usage

Swap consumption

Swap space consumed (in megabytes)

memory_usage

Swap consumption percentage

Percentage of swap area consumed

memory_usage

Disk Consumption

Disk space consumed (in megabytes)

disk_space

Disk consumption percentage

Percentage of disk consumed

disk_space

Disk Available

Disk space available (in megabytes)

disk_space

Disk busy percentage

Percentage of disk busy

disk_busy_info

Most used disk percentage

Percentage used of the most utilized disk on the system

disk_space

Total table bloat on host

The total space wasted by tables on a host, in MB

table_bloat, settings

Highest table bloat on host

The most space wasted by a table on a host, in MB

table_bloat, settings

Average table bloat on host

The average space wasted by tables on host, in MB

table_bloat, settings

Table size on host

The size of tables on host, in MB

table_size

Database size on host

The size of databases on host, in MB

database_size

Number of ERRORS in the logfile on agent N in last X hours.

The number of ERRORS in the logfile on agent N in last X hours

N/A

Number of ERRORS in the audit logfile on agent N in last X hours

The number of ERRORS in the audit logfile on agent N in last X hours

N/A

Number of WARNINGS in the logfile on agent N in last X hours

The number of WARNINGS in the logfile on agent N in last X hours

N/A

Number of WARNINGS in the audit logfile on agent N in last X hours

The number of WARNINGS in the audit logfile on agent N in last X hours

N/A

Number of WARNINGS or ERRORS in the logfile on agent N in last X hours

The number of WARNINGS or ERRORS in the logfile on agent N in last X hours

N/A

Number of WARNINGS or ERRORS in audit the logfile on agent N in last X hours

The number of WARNINGS or ERRORS in the logfile on agent N in last X hours

N/A

Package version mismatch

Check for package version mismatch as per catalog

N/A

Total materialized view bloat on host

The total space wasted by materialized views on a host, in MB

mview_bloat, settings

Highest materialized view bloat on host

The most space wasted by a materialized view on a host, in MB

mview_bloat, settings

Average materialized view bloat on host

The average space wasted by materialized views on host, in MB

mview_bloat, settings

Materialized view size on host

The size of materialized views on host, in MB

mview_size

Agent Down

Specified agent is currently down

N/A

Templates applicable on server#

Template name

Description

Probe dependency

Audit config mismatch

Check for audit config parameter mismatch

audit_configuration

Average materialized view bloat in server

The average space wasted by materialized views in server, in MB

mview_bloat, settings

Average table bloat in server

The average space wasted by tables in server, in MB

table_bloat, settings

Buffers allocated per second

Number of buffers allocated per second, over the last two probe cycles

background_writer_statistics

Buffers written per second

Number of buffers written per second, over the last two probe cycles

background_writer_statistics

Committed transactions percentage

Percentage of transactions in the server that committed vs. that rolled-back over last N minutes

database_statistics

Conflicting replication slots

Check for slots that are conflicting for a particular server

Connections in idle state

Number of connections in server that are in idle state

session_info

Connections in idle-in-transaction state

Number of connections in server that are in idle-in-transaction state

session_info

Connections in idle-in-transaction state, as percentage of max_connections

Number of connections in server that are in idle-in-transaction state, as a percentage of maximum connections allowed on server, settings

session_info, settings

Database size in server

The size of databases in server, in MB

database_size

Dead Tuples

Number of estimated dead tuples in server

table_statistics

Dead tuples percentage

Percentage of estimated dead tuples in server

table_statistics

EFM agent down

Failover Manager service is down

efm_cluster_info

EFM cluster failover detected

Failover is triggered when a failover event is recorded for an EFM cluster within the specified time.

failover_manager_node_status

EFM fewer than N nodes active

Triggers when the number of active EFM nodes in a cluster falls below the expected threshold

efm_cluster_node_status

EFM missing primary

EFM cluster is missing the primary node

efm_cluster_node_status

Function Count

Total number of functions in server

oc_function

Highest materialized view bloat in server

The most space wasted by a materialized view in server, in MB

mview_bloat, settings

Highest table bloat in server

The most space wasted by a table in server, in MB

table_bloat, settings

Hot update percentage

Percentage of hot updates in the server over last N minutes

table_statistics

Inactive replication slots

Check for slots that are inactive for a particular server

Index Scans

Number of index scans in server, over last N minutes

table_statistics

Index size as a percentage of table size

Size of the indexes in server, as a percentage of their tables' size

index_size, oc_index, table_size

InfiniteCache buffers hit percentage

Percentage of block read requests in the server that were satisfied by InfiniteCache, over last N minutes

database_statistics

Largest index by table-size percentage

Largest index in server, calculated as percentage of its table's size, oc_index, table_size

index_size, oc_index, table_size

Largest materialized view (by multiple of unbloated size)

Largest materialized view in server, calculated as a multiple of its own estimated unbloated size; exclude materialized views smaller than N MB

mview_bloat, settings

Largest table (by multiple of unbloated size)

Largest table in server, calculated as a multiple of its own estimated unbloated size; exclude tables smaller than N MB

table_bloat, settings

Last Analyze

Hours since last analyze on the server

table_statistics

Last AutoAnalyze

Hours since last autoanalyze on the server

table_statistics

Last AutoVacuum

Hours since last autovacuum on the server

table_statistics

Last Vacuum

Hours since last vacuum on the server

table_statistics

Live Tuples

Number of estimated live tuples in server

table_statistics

Log config mismatch

Check for log config parameter mismatch

log_configuration

Long-running autovacuums

Number of autovacuum operations in server that have been running for more than N seconds

session_info

Long-running idle connections

Number of connections in the server that have been idle for more than N seconds

session_info

Long-running idle connections and idle transactions

Number of connections in the server that have been idle or transactions idle-in-transaction for more than N seconds

session_info

Long-running idle transactions

Number of connections in the server that have been idle in transaction for more than N seconds

session_info

Long-running queries

Number of queries in server that have been running for more than N seconds

session_info

Long-running transactions

Number of transactions in server that have been running for more than N seconds

session_info

Long-running vacuums

Number of vacuum operations in server that have been running for more than N seconds

session_info

Materialized View Count

Total number of materialized views in server

oc_views

Materialized view size in server

The size of materialized view in server, in MB

mview_size

Multixact ID exhaustion (wraparound)

Check for multixact ID exhaustion (wraparound)

Number of attacks detected in the last N minutes

The number of SQL injection attacks occurred in the last N minutes

sql_protect

Number of attacks detected in the last N minutes by username

The number of SQL injection attacks occurred in the last N minutes by username

sql_protect

Number of ERRORS in the logfile on server M in the last X hours

The number of ERRORS in the logfile on server M in last X hours

N/A

Number of minutes lag of replica server from primary server

Streaming Replication: number of minutes replica node is lagging behind the primary node

streaming_replication_lag_time

Number of prepared transactions

Number of transactions in prepared state

number_of_prepared_transactions

Number of replica servers lag behind the primary by flush location

Streaming Replication: number of replica servers lag behind the primary by flush location

streaming_replication

Number of replica servers lag behind the primary by replay location

Streaming Replication: number of replica servers lag behind the primary by replay location

streaming_replication

Number of replica servers lag behind the primary by write location

Streaming Replication: number of replica servers lag behind the primary by write location

streaming_replication

Number of users expiring in N days

Number of users whose accounts are expiring in N days

user_info

Number of users whose password expiring in N days

Number of users whose password have expired or are expiring in N days

user_info

Number of WAL archives pending

Streaming Replication: number of WAL files pending to be replayed at replica

wal_archive_status

Number of WAL files

Total number of Write Ahead Log files

number_of_wal_files

Number of WARNINGS in the logfile on server M in the last X hours

The number of WARNINGS in logfile on server M in the last X hours

N/A

Number of WARNINGS or ERRORS in the logfile on server M in the last X hours

The number of WARNINGS or ERRORS in the logfile on server M in the last X hours

N/A

Patroni cluster paused

Patroni: Detects if the Patroni cluster is paused and unavailable for failover.

patroni_cluster_status

Patroni cluster failover detected

Patroni: Failover is triggered when a failover event is recorded for a Patroni cluster within the specified time.

patroni_node_status

Patroni DCS not healthy

Patroni: Detects if the distributed configuration store (etcd) is not healthy.

patroni_cluster_status

Patroni down or out of contact

Patroni: Detects if the Patroni process is not reachable or has failed on a monitored node.

patroni_cluster_status

Patroni no leader detected

Patroni: Detects when Patroni cluster has no leader/master node.

patroni_cluster_status

Patroni timeline mismatch

Patroni: Detects if the node timeline doesn't match the cluster timeline.

patroni_node_status, patroni_cluster_status

Percentage of buffers written by backends

The percentage of buffers written by backends vs. the total buffers written

background_writer_statistics

Percentage of buffers written by backends over the last N minutes

The percentage of buffers written by backends vs. the total buffers backends over last N

background_writer_statistics

Percentage of buffers written by checkpoint

The percentage of buffers written by the checkpoints vs. the total buffers written

background_writer_statistics

PGD Group Raft Consensus

PGD group Raft consensus not working

bdr_monitor_group_raft

PGD Group Raft Leader ID not matching

PGD group Raft leader ID not matching

bdr_group_raft_details

PGD Group versions check

PGD/pglogical version mismatched in PGD group

bdr_monitor_group_raft

PGD worker error detected

PGD worker error detected reported for PGD node

Replica server lag behind the primary by flush location

Streaming Replication: replica server lag behind the primary by flush location in MB

streaming_replication

Replica server lag behind the primary by replay location

Streaming Replication: replica server lag behind the primary by replay location in MB

streaming_replication

Replica server lag behind the primary by size (MB)

Streaming Replication: replica server lag behind the primary by size in MB

streaming_replication

Replica server lag behind the primary by WAL pages

Streaming Replication: replica server lag behind the primary by WAL pages

streaming_replication

Replica server lag behind the primary by WAL segments

Streaming Replication: replica server lag behind the primary by WAL segments

streaming_replication

Replica server lag behind the primary by write location

Streaming Replication: replica server lag behind the primary by write location in MB

streaming_replication

Sequence Count

Total number of sequences in server

oc_sequence

Sequential Scans

Number of full table scans in server, over last N minutes

table_statistics

Server Down

Specified server is currently inaccessible

N/A

Shared buffers hit percentage

Percentage of block read requests in the server that were satisfied by shared buffers, over last N minutes

database_statistics

Table Count

Total number of tables in server

oc_table

Table size in server

The size of tables in server, in MB

table_size

Tablespace directory missing

Triggers an alert if a tablespace directory is missing or deleted from the operating system.

tablespace_size

Total connections

Total number of connections in the server

session_info

Total connections as percentage of max_connections

Total number of connections in the server as a percentage of maximum connections allowed on server, settings

session_info, settings

Total materialized view bloat in server

The total space wasted by materialized views in server, in MB

mview_bloat, settings

Total table bloat in server

The total space wasted by tables in server, in MB

table_bloat, settings

Transaction ID exhaustion (wraparound)

Check for transaction ID exhaustion (wraparound)

Tuples deleted

Tuples deleted from server over last N minutes

database_statistics

Tuples fetched

Tuples fetched from server over last N minutes

database_statistics

Tuples hot updated

Tuples hot updated in server, over last N minutes

table_statistics

Tuples inserted

Tuples inserted into server over last N minutes

database_statistics

Tuples returned

Tuples returned from server over last N minutes

database_statistics

Tuples updated

Tuples updated in server over last N minutes

database_statistics

Ungranted locks

Number of ungranted locks in server

blocked_session_info

Unused, non-superuser connections

Number of unused, non-superuser connections on the server, user_info, settings

session_info, user_info, settings

Unused, non-superuser connections as percentage of max_connections

Number of unused, non-superuser connections on the server as a percentage of max_connections of max_connections, user_info, settings

session_info, user_info, settings

View Count

Total number of views in server

oc_views

Templates applicable on database#

Template name

Description

Probe dependency

Total table bloat in database

The total space wasted by tables in database, in MB

table_bloat, settings

Largest table (by multiple of unbloated size)

Largest table in database, calculated as a multiple of its own estimated unbloated size; exclude tables smaller than N MB

table_bloat, settings

Highest table bloat in database

The most space wasted by a table in database, in MB

table_bloat, settings

Average table bloat in database

The average space wasted by tables in database, in MB

table_bloat, settings

Table size in database

The size of tables in database, in MB

table_size

Database size

The size of the database, in MB

database_size

Total connections

Total number of connections in the database

session_info

Total connections as percentage of max_connections

Total number of connections in the database as a percentage of maximum connections allowed on server, settings

session_info, settings

Ungranted locks

Number of ungranted locks in database

blocked_session_info

Connections in idle state

Number of connections in database that are in idle state

session_info

Connections in idle-in-transaction state

Number of connections in database that are in idle-in-transaction state

session_info

Connections in idle-in-transaction state,as percentage of max_connections

Number of connections in database that are in idle-in-transaction state, as a percentage of maximum connections allowed on server, settings

session_info, settings

Long-running idle connections

Number of connections in the database that have been idle for more than N seconds

session_info

Long-running idle connections and idle transactions

Number of connections in the database that have been idle or idle-in-transaction for more than N seconds

session_info

Long-running idle transactions

Number of connections in the database that have been idle in transaction for more than N seconds

session_info

Long-running transactions

Number of transactions in database that have been running for more than N seconds

session_info

Long-running queries

Number of queries in database that have been running for more than N seconds

session_info

Long-running vacuums

Number of vacuum operations in database that have been running for more than N seconds

session_info

Long-running autovacuums

Number of autovacuum operations in database that have been running for more than N seconds

session_info

Committed transactions percentage

Percentage of transactions in the database that committed vs. that rolled-back over last N minutes

database_statistics

Shared buffers hit percentage

Percentage of block read requests in the database that were satisfied by shared buffers, over last N minutes

database_statistics

InfiniteCache buffers hit percentage

Percentage of block read requests in the database that were satisfied by InfiniteCache, over last N minutes

database_statistics

Tuples fetched

Tuples fetched from database over last N minutes

database_statistics

Tuples returned

Tuples returned from database over last N minutes

database_statistics

Tuples inserted

Tuples inserted into database over last N minutes

database_statistics

Tuples updated

Tuples updated in database over last N minutes

database_statistics

Tuples deleted

Tuples deleted from database over last N minutes

database_statistics

Tuples hot updated

Tuples hot updated in database, over last N minutes

table_statistics

Sequential Scans

Number of full table scans in database, over last N minutes

table_statistics

Index Scans

Number of index scans in database, over last N minutes

table_statistics

Hot update percentage

Percentage of hot updates in the database over last N minutes

table_statistics

Live Tuples

Number of estimated live tuples in database

table_statistics

Dead Tuples

Number of estimated dead tuples in database

table_statistics

Dead tuples percentage

Percentage of estimated dead tuples in database

table_statistics

Last Vacuum

Hours since last vacuum on the database

table_statistics

Last AutoVacuum

Hours since last autovacuum on the database

table_statistics

Last Analyze

Hours since last analyze on the database

table_statistics

Last AutoAnalyze

Hours since last autoanalyze on the database

table_statistics

Table Count

Total number of tables in database

oc_table

Function Count

Total number of functions in database

oc_function

Sequence Count

Total number of sequences in database

oc_sequence

Index size as a percentage of table size

Size of the indexes in database, as a percentage of their tables' size

table_size

Largest index by table-size percentage

Largest index in database, calculated as percentage of its table's size, oc_index, table_size

index_size, oc_index, table_size

Database Frozen XID

The age (in transactions before the current transaction) of the database's frozen transaction ID

database_frozenxid

Number of attacks detected in the last N minutes

The number of SQL injection attacks occurred in the last N minutes

sql_protect

Number of attacks detected in the last N minutes by username

The number of SQL injection attacks occurred in the last N minutes by last N minutes by username

sql_protect

Queries that have been cancelled due to dropped tablespaces

Streaming Replication: number of queries that have been cancelled due to dropped tablespaces

streaming_replication_db_conflicts

Queries that have been cancelled due to lock timeouts

Streaming Replication: number of queries that have been cancelled due to lock timeouts

streaming_replication_db_conflicts

Queries that have been cancelled due to old snapshots

Streaming Replication: number of queries that have been cancelled due to old snapshots

streaming_replication_db_conflicts

Queries that have been cancelled due to pinned buffers

Streaming Replication: number of queries that have been cancelled due to pinned buffers

streaming_replication_db_conflicts

Queries that have been cancelled due to deadlocks

Streaming Replication: number of queries that have been cancelled due to deadlocks

streaming_replication_db_conflicts

Total events lagging in all slony clusters

Slony Replication: total events lagging in all slony clusters

slony_cluster

Events lagging in one slony cluster

Slony Replication: events lagging in one slony cluster

slony_cluster

Lag time (minutes) in one slony cluster

Slony Replication: lag time (minutes) in one slony cluster

slony_cluster

Total rows lagging in xdb single primary replication

xDB Replication: Total rows lagging in xdb single primary replication

xdb_smr_mmr_replication

Total rows lagging in xdb multi primary replication

xDB Replication: Total rows lagging in xdb multi primary replication

xdb_smr_mmr_replication

Total materialized view bloat in database

The total space wasted by materialized views in database, in MB

mview_bloat, settings

Largest materialized view (by multiple of unbloated size)

Largest materialized view in database, calculated as a multiple of its estimated unbloated size; exclude materialized views smaller than N MB

mview_bloat, settings

Highest materialized view bloat in database

The most space wasted by a materialized view in database, in MB

mview_bloat, settings

Average materialized view bloat in database

The average space wasted by materialized views in database, in MB

mview_bloat, settings

Materialized view size in database

The size of materialized view in database, in MB

mview_size

View Count

Total number of views in database

oc_views

Materialized View Count

Total number of materialized views in database

oc_views

Templates applicable on schema#

Template name

Description

Probe dependency

Total table bloat in schema

The total space wasted by tables in schema, in MB

table_bloat, settings

Largest table (by multiple of unbloated size)

Largest table in schema, calculated as a multiple of its own estimated unbloated size; exclude tables smaller than N MB

table_bloat, settings

Highest table bloat in schema

The most space wasted by a table in schema, in MB

table_bloat, settings

Average table bloat in schema

The average space wasted by tables in schema, in MB

table_bloat, settings

Table size in schema

The size of tables in schema, in MB

table_size

Tuples inserted

Tuples inserted in schema over last N minutes

table_statistics

Tuples updated

Tuples updated in schema over last N minutes

table_statistics

Tuples deleted

Tuples deleted from schema over last N minutes

table_statistics

Tuples hot updated

Tuples hot updated in schema, over last N minutes

table_statistics

Sequential Scans

Number of full table scans in schema, over last N minutes

table_statistics

Index Scans

Number of index scans in schema, over last N minutes

table_statistics

Hot update percentage

Percentage of hot updates in the schema over last N minutes

table_statistics

Live Tuples

Number of estimated live tuples in schema

table_statistics

Dead Tuples

Number of estimated dead tuples in schema

table_statistics

Dead tuples percentage

Percentage of estimated dead tuples in schema

table_statistics

Last Vacuum

Hours since last vacuum on the schema

table_statistics

Last AutoVacuum

Hours since last autovacuum on the schema

table_statistics

Last Analyze

Hours since last analyze on the schema

table_statistics

Last AutoAnalyze

Hours since last autoanalyze on the schema

table_statistics

Table Count

Total number of tables in schema

oc_table

Function Count

Total number of functions in schema

oc_function

Sequence Count

Total number of sequences in schema

oc_sequence

Index size as a percentage of table size

Size of the indexes in schema, as a percentage of their table's size

table_size

Largest index by table-size percentage

Largest index in schema, calculated as percentage of its table's size, oc_index, table_size

index_size, oc_index, table_size

Materialized view bloat

Space wasted by the materialized view, in MB

mview_bloat, settings

Total materialized view bloat in schema

The total space wasted by materialized views in schema, in MB

mview_bloat, settings

Materialized view size as a multiple of unbloated size

Size of the materialized view as a multiple of estimated unbloated size

mview_bloat

Largest materialized view (by multiple of unbloated size)

Largest materialized view in schema, calculated as a multiple of its own estimated unbloated size; exclude materialized view smaller than N MB

mview_bloat, settings

Highest materialized view bloat in schema

The most space wasted by a materialized view in schema, in MB

mview_bloat, settings

Average materialized view bloat in schema

The average space wasted by materialized views in schema, in MB

mview_bloat, settings

Materialized view size

The size of materialized view, in MB

mview_size

Materialized view size in schema

The size of materialized views in schema, in MB

mview_size

View Count

Total number of views in schema

oc_views

Materialized View Count

Total number of materialized views in schema

ov_views

Materialized View Frozen XID

The age (in transactions before the current transaction) of the materialized view's frozen transaction ID

mview_frozenxid

Templates applicable on table#

Template name

Description

Probe dependency

Table bloat

Space wasted by the table, in MB

table_bloat, settings

Table size

The size of table, in MB

table_size

Table size as a multiple of unbloated size

Size of the table as a multiple of estimated unbloated size

table_bloat

Tuples inserted

Tuples inserted in table over last N minutes

table_statistics

Tuples updated

Tuples updated in table over last N minutes

table_statistics

Tuples deleted

Tuples deleted from table over last N minutes

table_statistics

Tuples hot updated

Tuples hot updated in table, over last N minutes

table_statistics

Sequential Scans

Number of full table scans on table, over last N minutes

table_statistics

Index Scans

Number of index scans on table, over last N minutes

table_statistics

Hot update percentage

Percentage of hot updates in the table over last N minutes

table_statistics

Live Tuples

Number of estimated live tuples in table

table_statistics

Dead Tuples

Number of estimated dead tuples in table

table_statistics

Dead tuples percentage

Percentage of estimated dead tuples in table

table_statistics

Last Vacuum

Hours since last vacuum on the table

table_statistics

Last AutoVacuum

Hours since last autovacuum on the table

table_statistics

Last Analyze

Hours since last analyze on the table

table_statistics

Last AutoAnalyze

Hours since last autoanalyze on the table

table_statistics

Row Count

Estimated number of rows in a table

table_statistics

Index size as a percentage of table size

Size of the indexes on table, as a percentage of table's size

table_size

Table Frozen XID

The age (in transactions before the current transaction) of the table's frozen transaction ID

table_frozenxid

Global templates#

Template name

Description

Probe dependency

Agents Down

Number of agents that haven't reported in recently

N/A

Servers Down

Number of servers that are currently inaccessible

N/A

Alert Errors

Number of alerts in an error state

N/A