Critical Services Monitoring

Upon deploying your PostgreSQL databases in production, it is very important to monitor them regularly. We could categorize the monitoring of any database into three types:

  • Reactive
  • Proactive
  • Predictive

To understand the preceding three categories better, let's consider an example of a PostgreSQL database with a size of 100 GB on a disk of size 150 GB:

  • Reactive: Receive an alert when a database server crashes because it has reached its capacity of storage. This is said to be reactive.
  • Proactive: You know that the database server is about to reach its threshold and add more space to avoid an outage. The impact may be very little to users if it requires a server reboot or a restart.
  • Predictive: Based on the data ...

Get PostgreSQL 13 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.