Skip to main content
Version 3.1.0

PostgreSQL Metrics Exporter Management

Check out the commands available to control the PostgreSQL Metrics Exporter service.

Prerequisites


Command Syntax

[source,shell]

    pgsmart obs exporter [OPERATIONS] [FLAGS], where:

Operations:

  • Status of the PostgreSQL Metrics Exporter service.
  • Start the PostgreSQL Metrics Exporter service.
  • Stop the PostgreSQL Metrics Exporter service.
  • Restart the PostgreSQL Metrics Exporter service.
  • Reload the PostgreSQL Metrics Exporter service.

Flags:

  • -a, --agent=<agent> => Alias, hostname, or IP of the server where the desired PgSmart Agent is installed.
  • -h, --help => Help
  • -q, --quiet => Non-interactive execution to control the component service (status|start|stop|restart|reload). Used together with the --agent option.
Non-Interactive Execution
Terminal input
pgsmart obs exporter [status|start|stop|restart|reload] -q -a &lt;agent&gt;**
Interactive Execution

Status of the PostgreSQL Metrics Exporter Service

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 the 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 the 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 the 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 the 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