Skip to main content
Version 4.0.0

PostgreSQL Metrics Exporter Management

Below are the available commands to manage the PostgreSQL Metrics Exporter service.

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

Operations:

  • Status — Allows checking the PostgreSQL Metrics Exporter service status
  • Start — Allows starting the PostgreSQL Metrics Exporter service
  • Stop — Allows stopping the PostgreSQL Metrics Exporter service
  • Restart — Allows restarting the PostgreSQL Metrics Exporter service
  • Reload — Allows reloading the PostgreSQL Metrics Exporter service

Flags:

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

PostgreSQL Metrics Exporter Service Status

Terminal input
    pgsmart obs exporter status
  1. Select the PgSmart Agent or register a new one.

  2. Select the PostgreSQL Metrics Exporter.

    Figure 1 - Metrics Exporter - PostgreSQL - Status
    Figure 1 - Metrics Exporter - PostgreSQL - Status

Start PostgreSQL Metrics Exporter Service

Terminal input
    pgsmart obs exporter start
  1. Select the PgSmart Agent or register a new one.

  2. Select the PostgreSQL Metrics Exporter.

    Figure 2 - Metrics Exporter - PostgreSQL - Start
    Figure 2 - Metrics Exporter - PostgreSQL - Start

Stop PostgreSQL Metrics Exporter Service

Terminal input
    pgsmart obs exporter stop
  1. Select the PgSmart Agent or register a new one.

  2. Select the PostgreSQL Metrics Exporter.

    Figure 3 - Metrics Exporter - PostgreSQL - Stop
    Figure 3 - Metrics Exporter - PostgreSQL - Stop

Restart PostgreSQL Metrics Exporter Service

Terminal input
    pgsmart obs exporter restart
  1. Select the PgSmart Agent or register a new one.

  2. Select the PostgreSQL Metrics Exporter.

    Figure 4 - Metrics Exporter - PostgreSQL - Restart
    Figure 4 - Metrics Exporter - PostgreSQL - Restart

Reload PostgreSQL Metrics Exporter Service

Terminal input
    pgsmart obs exporter reload
  1. Select the PgSmart Agent or register a new one.

  2. Select the PostgreSQL Metrics Exporter.

    Figure 5 - Metrics Exporter - PostgreSQL - Reload
    Figure 5 - Metrics Exporter - PostgreSQL - Reload