Observability Service Installation
In PostgreSYS, the Observability service is implemented through the integration of Prometheus, Grafana, Alertmanager, and Karma components, which are responsible for collecting, storing, and displaying metrics and alerts for the entire PostgreSQL database environment.
-
PgSmart installation, observing the minimum requirements.
-
Extra package repository to resolve indirect dependencies. In accordance with each organization's security and support policies, Tecnisys does not provide these packages. However, to assist you, we inform you that for Enterprise Linux family distributions, the Extra Packages for Enterprise Linux - EPEL repository generally provides the necessary indirect dependencies.
-
Initialization of the PgSmart Agent service on all machines in the database environment.
Terminal inputsystemctl start pgsmart-agent
-
Log in as the local PgSmart user. For example:
Terminal inputsu - PgSmart
-
PgSmart Agent Registration via PgSmart-Client.
pgsmart install -s obs
pgsmart install --service=obs
Flags:
-M, --pgversion=(11/12/13/14/15). Default: 15.
=> Major version of PostgreSQL, regardless of the service. The latest release of the chosen major version will be used.-a, --agent= <agent>
. => Alias, hostname, or IP of the server where a PgSmart Agent is installed.-h, --help
. => Help-q, --quiet
. => Non-interactive execution for service installation. Used together with --service, --pg-major-version and --agent.
This installation mode is enabled by the quiet option (--quiet, -q) and its execution uses default values for unspecified parameters. However, this option is disabled during the first installation due to the need to create the PostgreSYS package repository based on information requested interactively.
- Command
- Video
pgsmart install -q -a 192.168.0.102 --service obs --pgversion=16

- Instructions
- Video
pgsmart install
-
Select the
PgSmart Agent
(or Register a new Agent). -
Select the Observability service.
-
Select the
Major version
of environment PostgreSQL. -
Select the 'Release` of the environment PostgreSQL Major Version.
-
Confirm the installation:
-
Confirm that you want to download the package repository and, if prompted, the URL of the repository. 6.1 Provide the package repository URL.
noteThis question is not asked if the pgsys-utils repositories are already present or mapped on the machine.
Figure2 -Observability Installation - interactive
Command Variations for Interactive Installation
Some parameters can be passed in advance in the command; however, without the quiet option (--quiet, -q), the execution remains interactive, with these parameters being used with the default values in the prompts.
Examples:
pgsmart install --service=pool
pgsmart install --service=pool --pg-version=15
PgSmart sets environment variables (PGDATA, PGBIN, among others) in the current user's bash_profile
file that will be loaded in new sessions. If you want to load these variables immediately, execute the command below after the installation:
source ~/.bash_profile