Skip to main content
Version 3.1.1

Metrics Collector Management

Check below for the commands available to control the Metrics Collector service.

Command Syntax
Terminal input
pgsmart obs collector [OPERATION] [FLAGS]

Operations:

  • Status of the Metrics Collector service.
  • Start the Metrics Collector service.
  • Stop the Metrics Collector service.
  • Restart the Metrics Collector service.
  • Reload the Metrics Collector 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 Metrics Collector service (status|start|stop|restart|reload).
Non-Interactive Execution
Terminal input
pgsmart obs collector [status|start|stop|restart|reload] -q -a @!&lt;agent&gt;@!
Interactive Execution

Status of the Metrics Collector Service

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

    Figure 1 - Metrics Exporter - Collector - Status
    Figure 1 - Metrics Exporter - Collector - Status

Stop the Metrics Collector Service

Terminal input
    pgsmart obs collector stop
  1. Select the PgSmart Agent or register a new one.
Figure 3 - Metrics Exporter - Collector - Stop
Figure 3 - Metrics Exporter - Collector - Stop

Start the Metrics Collector Service

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

    Figure 2 - Metrics Exporter - Collector - Start
    Figure 2 - Metrics Exporter - Collector - Start

Restart the Metrics Collector Service

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

    Figure 4 - Metrics Exporter - Collector - Restart
    Figure 4 - Metrics Exporter - Collector - Restart

Reload the Metrics Collector Service

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

    Figure 5 - Metrics Exporter - Collector - Reload
    Figure 5 - Metrics Exporter - Collector - Reload