Monitoring
==========

Monitoring replication setups is important to ensure that your system:

- Performs optimally

- Doesn’t run out of disk space

- Doesn’t encounter other faults that might halt operations

It’s important to have automated monitoring in place to ensure that the
administrator is alerted and can take proactive action when issues
occur. For example, the administrator can be alerted if replication
slots start falling badly behind.

EDB provides Postgres Enterprise Manager (PEM), which supports PGD
starting with version 8.1. See :ref:`Monitoring EDB PostgresDistributed <Monitoring the Connection Manager>`  for more information.

Tools or users can also make their own calls into information views and
functions provided by the BDR extension. See :ref:`Monitoring through SQL <Monitoring through SQL>` 

for details.

Every PGD node also serves PGD Monitor, a built-in monitoring web
application with a REST API and a Prometheus scrape endpoint alongside
it. See :ref:`Using the PGD Monitor <Using the PGD Monitor>`  for details.

.. toctree::
  :maxdepth: 3

  lifecycle--monitoring--sql
  lifecycle--monitoring--pgd-monitor--index
