Install monitoring

ADPG bundle includes a monitoring system. To install monitoring, perform the steps described below.

Step 1. Add the Monitoring service

Open the Clusters page in ADCM UI and select an ADPG cluster. Open the Services tab and click Add services.

The Services tab
The "Services" tab

In the dialog that opens, select the Monitoring service and click Add.

Select the Monitoring service
Select the "Monitoring" service

As a result, the added Monitoring service is displayed on the Services tab.

The Services tab with the Monitoring service
The "Services" tab with the "Monitoring" service

Step 2. Configure monitoring

The Concerns icon concern red dark concern red light indicates that you need to specify required configuration parameters and distribute monitoring components across hosts.

Click the Monitoring service and set configuration parameters on the Primary configuration tab.

Set configuration parameters
Set configuration parameters

You should set the following required parameters marked in red:

  • Prometheus settingsPassword for Grafana connection — a password of a Grafana user (admprom_grafana) that is used to connect to Prometheus. The password should contain a combination of numbers, symbols, lowercase and uppercase letters and have a minimum length of 8.

  • Grafana settingsGrafana administrator’s password — a password of the Grafana admin user. The password should contain a combination of numbers, symbols, lowercase and uppercase letters and have a minimum length of 8.

All monitoring parameters are described in the "Monitoring" section of the Configuration parameters article.

Then open the Mapping tab. Map components as described in Add components using the following recommendations:

  • ADPG Exporter, Pgbouncer Exporter, and PgBackRest Exporter — to each host with the ADPG service.

  • Prometheus Server and Grafana — to a separate host.

  • Node Exporter — to each host from which you need to collect system metrics.

Monitoring mapping
Distribution of monitoring components across hosts

Click Save to save the configuration.

Step 3. Install the Monitoring service

Execute the Install action of the Monitoring service.

The Install action of the Monitoring service
The "Install" action of the Monitoring service

In the next dialog window, click Run to confirm the action. You can also activate the Verbose checkbox to see additional execution details on the Jobs page.

Confirm the Install action
Confirm the "Install" action

As a result, the Monitoring service state is changed to installed.

The Monitoring service is installed
The Monitoring service is installed

Step 4. View dashboards

The ADPG monitoring system includes the Grafana component. Grafana visualizes metrics data. After monitoring with the Grafana component is installed, you will be able to view dashboards that display metrics in a browser. Enter the address of the host where the Grafana component is deployed and add the port number — the Grafana listen port parameter (the default value is 11210). For example, http://10.92.6.91:11210. For login, use admin as a username, and the Grafana administrator’s password parameter value as a password. You can find the Grafana parameters on the Configuration tab of the Monitoring service.

Enter Grafana credentials
Enter Grafana credentials

Expand the Grafana menu and click the Dashboards item.

The Grafana interface
The Grafana interface

The page with the dashboard list will be displayed. Expand the ADPG Dashboard…​ item for your cluster to display available dashboards.

ADPG Dashboards
ADPG Dashboards

Click on any desired item to view graphs, for example, ADPG DB overview.

ADPG DB overview graphs
ADPG DB overview graphs
Found a mistake? Seleсt text and press Ctrl+Enter to report it