Skip to main content
Version 3.1.1

Metadata Database Management

The Metadata Database is an internal PostgreSQL instance, used solely to store metadata for the observability service.

Check below for the commands available to control the Metadata Database service.

Prerequisites
Terminal input
pgsmart obs metadb[OPERATION] [FLAGS]
Command Syntax
pgsmart obs metadb [OPERATIONS] [FLAGS], as follows:

Operations:

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

Status of the Metadata Database Service

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

    Figure 1 - Metrics Exporter - metadb - Status
    Figure 1 - Metrics Exporter - metadb - Status

Stop the Metadata Database Service

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

    Figure 2 - Metrics Exporter - metadb - Stop
    Figure 2 - Metrics Exporter - metadb - Stop

Start the Metadata Database Service

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

    Figure 3 - Metrics Exporter - metadb - Start
    Figure 3 - Metrics Exporter - metadb - Start

Restart the Metadata Database Service

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

    Figure 4 - Metrics Exporter - metadb - Restart
    Figure 4 - Metrics Exporter - metadb - Restart

Reload the Metadata Database Service

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

    Figure 5 - Metrics Exporter  - metadb - Reload
    Figure 5 - Metrics Exporter - metadb - Reload