Skip to main content
Version 3.1.0

pgBackRest Metrics Exporter Configuration

The pgBackRest Metrics Exporter exposes metrics related to backup and restore processes, such as backup duration, amount of data processed, success or failure of operations, among others. Monitoring these metrics is essential to ensure the integrity of backups and readiness for restorations in case of failure or data loss.

Through this configuration option, it is possible to specify the exposure port for pgBackRest metrics to be collected by Prometheus.

Prerequisites
Command Syntax
Terminal input
pgsmart obs exporter config [FLAGS]

Flags

  • -a, --agent=<agent> => Alias, hostname, or IP of the server where the desired PgSmart Agent is installed.
  • -h, --help => Help
Non-Interactive Configuration

Non-interactive execution is disabled for this operation.

Interactive Configuration
Terminal input
pgsmart obs exporter config

pgBackRest Exporter Configuration

  1. Select the PgSmart Agent or register a new one.

  2. Select the pgBackRest Metrics Exporter.

  3. Provide the metrics exposure port and web interface.

    Figure 1 - pgBackRest Metrics Exporter Configuration
    Figure 1 - pgBackRest Metrics Exporter Configuration
    note

    The exported metrics can be viewed via the console:

    Terminal input
        curl http://192.168.56.235:9100/metrics

    Or via the web interface:

    Terminal input
        http://192.168.56.235:9100/metrics