Monitoring cluster (VictoriaMetrics)

Overview

Monitoring based on VictoriaMetrics is available in ADH only for the Enterprise version starting from 4.0.0.b1.

To configure monitoring, use:

  • ADM cluster version 5.0.0 and above. An external VictoriaMetrics server can be used.

  • The VMAgent component of the Monitoring service of the ADH cluster — available starting with 4.0.0.b1.

VMAgent scrapes metrics from an ADH cluster and sends them to ADM. If the Grafana service is installed in ADM, ADH host and service metrics are displayed in the Grafana web UI.

The steps for installing the VMAgent component and setting up monitoring are described below.

NOTE

The installation instructions in the article apply to clusters where the Monitoring service has not been previously installed. If the Monitoring service is already installed — follow these steps:

  1. Import the configuration of an ADM cluster or external VictoriaMetrics.

  2. Install the VMAgent component for the Monitoring service using the Add/Remove components service action after upgrading the cluster to 4.0.0.b1. There is no need to remove components already installed in the Monitoring service (Grafana, Node Exporter, Prometheus Server).

  3. Configure the VMAgent component if necessary. Restart the Monitoring service after the configuration.

  4. Check the results of the VMAgent component installation.

Step 1. Install ADM

Install an ADM cluster according to the instructions. You can install ADM before or after installing the ADH cluster, but you should install it before adding the VMAgent component of the Monitoring service.

Step 2. Add the Monitoring service to ADH

  1. In ADCM, go to Clusters → <ADH_cluster> → Services and click Add services.

    Switch to adding services
    Switch to adding services
  2. In the opened window, select the Monitoring service and click Add.

    Select the service
    Select the service

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

    Result of successful adding the service to the cluster
    Result of successfully adding the service to the cluster

Step 3. Add the VMAgent component

  1. Go to the Clusters → <ADH_cluster> → Mapping tab to add the VMAgent component to the cluster.

  2. Add the VMAgent component to a host. For this, click Add hosts and select the desired host in the pop-up window.

    Select a host for a component
    Select a host for the component
  3. After the distribution of components is completed, click Save.

Step 4. Configure VMAgent

  1. Go to the Clusters → <ADH_cluster> → Services tab and click the Monitoring service name in the Name column.

    Switch to the service configuration
    Switch to the service configuration
  2. On the page that opens, fill in or change the parameters in the VMAgent group. Descriptions of the parameters are provided in the Monitoring configuration parameters article. Also, fill in the mandatory fields highlighted in red (Prometheus Server, Grafana).

    Configure the Monitoring service
    Configure the Monitoring service

    After specifying all necessary parameters, click Save.

Step 5. Import cluster configuration

Import ADM cluster configuration

  1. Go to the Clusters → <ADH_cluster> → Import tab.

  2. Select the ADM cluster as shown in the image and click Import.

    Import ADM cluster
    Import ADM cluster

Import external VictoriaMetrics server configuration

When using an external VictoriaMetrics server, the server configuration must be imported into ADH. To do this, go to the Monitoring service settings, as shown above, and in the VMAgent group for the Custom remote_write parameter, use the Add property field to set the value url: "http://<vm-server>:8428/api/v1/write", where <vm-server> is the IP address of the external VictoriaMetrics server.

Step 6. Install the Monitoring service

  1. Go to the Clusters → <ADH_cluster> → Services tab, click actions default dark actions default light for the Monitoring service in the Actions column and run the Install action.

    Switch to the service installation
    Switch to the service installation
  2. Confirm the action in the opened window.

  3. Wait for the installation to complete and make sure the service status changes from created to installed.

    Installation is complete
    Installation is complete

    To view the service installation process and analyze errors if they occur, use the Jobs page.

Step 7. Check the results

After configuring the monitoring, ADH cluster metrics are displayed in the VictoriaMetrics web UI. The optimal way to manage VictoriaMetrics metrics of an ADH cluster is through the Grafana web UI.

ADH dashboards in the Grafana web interface
ADH dashboards in the Grafana UI
Found a mistake? Seleсt text and press Ctrl+Enter to report it