pgBackRest INCR backup status


Job details

Name: pgBackRest INCR backup status
Platform: Postgres
Category: Availability
Description: Monitors the status and recency of PostgreSQL Incremental backups performed with pgBackRest.
Long description: Checks the status of pgBackRest backups for PostgreSQL instances by analyzing available backup metadata. The job ensures that recent Incremental backups exist and meet expectations regarding freshness and retention, helping to detect potential backup issues early.
Version: 1.0
Default schedule: 15 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’ & is_awsrds = ‘0′ & maj_version > ‘11′ ]

Parameters

Name Default value Description
alarm threshold 8 Specifies the maximum number of hours allowed since the last backup before an alarm is triggered. This acts as a critical threshold indicating that backups are significantly overdue and may require immediate attention.
warning threshold 2 Specifies the maximum number of hours allowed since the last backup before a warning is triggered. If the time since the last backup exceeds this threshold, the job will return a warning status.
history threshold 120 Defines the number of days that backup statistics should be retained in the history table. This ensures long-term tracking of backup size and timing trends for auditing or analysis purposes.
pgbackrest output table dbwatch_cc.pgbackrest_backup_log Specifies the name of the table (in schema_name.table_name format) where the output from the pgbackrest info command will be stored. This allows the job to persist raw backup metadata for further processing. This table does not need to reside in the dbwatch schema but must be accessible within the dbWatch monitored database.

Job Summary

Description

Handles the monitoring of PostgreSQL incremental backup status by analyzing the metadata provided by pgBackRest to verify that recent backups exist and adhere to defined freshness and retention policies.

Implementation Details

Alert Logic

Dependencies

Reporting

Presentation Title Data Presented
Incremental Backup Statistics Details of recent incremental backups including times and sizes
Backup Size History Historical chart showing sizes of past backups, allowing trend analysis

Scheduled Execution

This monitoring job thus plays a critical role in ensuring the operational continuity and data safety for PostgreSQL databases using pgBackRest for the incremental backups.