Skip to main content
Version 4.0.0

Metric Collector Management - Prometheus

Below are the available commands to manage the Metric Collector service.

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

Operations:

  • Status — Allows checking the status of the Metric Collector service
  • Start — Allows starting the Metric Collector service
  • Stop — Allows stopping the Metric Collector service
  • Restart — Allows restarting the Metric Collector service
  • Reload — Allows reloading the Metric Collector service

Flags:

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

Metric Collector Service Status

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 Metric Collector Service

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

    Figure 2 - Metrics Exporter - Collector - Stop
    Figure 2 - Metrics Exporter - Collector - Stop

Start Metric Collector Service

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

    Figure 3 - Metrics Exporter - Collector - Start
    Figure 3 - Metrics Exporter - Collector - Start

Restart Metric 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 Metric 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