VK Cloud logo
Updated at April 15, 2024   03:53 AM

VictoriaMetrics deployment

You can collect, store and analyze metrics in the time series database using the VictoriaMetrics service.

The instructions will help you deploy the VictoriaMetrics service (using the example of version 1.93.9) on a VM in VK Cloud and configure the collection of metrics.

By using VictoriaMetrics, you agree to the Marketplace and VictoriaMetrics license agreements.

To deploy the VictoriaMetrics service in a project:

  1. Register at VK Cloud.

  2. Create a network, if one has not been created earlier.

  3. In the settings of the subnet where one or more servers with the deployed service will be located, disable the Private DNS option.

  4. Deploy service in the project by choosing the appropriate tariff plan (Single, Cluster Mini, Cluster Maxi):

    1. At the “Настройки VictoriaMetrics” step:

      • Резервное копирование: select the no option to not save data to the object storage Cloud Storage. With the yes option, the data for the last 7 days will be copied.
      • Сколько хранить все метрики: specify the storage time of the metrics with the appropriate suffix: h (hour), d (day), w (week), y (year). If you do not specify a suffix, months are used as the unit of measurement. The minimum value is 24h (1d), the default is 12 (12 months).
      • Параметры дедупликаци: specify the frequency of deleting the same metrics, use the suffixes ms, s, m, h. A metric is a collection of the metric itself and its metadata. For example, the metrics cpu{host=hostname1} and cpu{host=hostname2} are considered different. The default value is 1ms.
    2. Click the Next step button.

    3. At the “Параметры сервера” step:

      • Сеть: select the previously created network and subnet.

      • Availability zone: select which of the data centers the VM will be running in.

      • Type of virtual machine: select the preset VM configuration. For more information, see Cloud Servers service overview.

      • For the system disk and data disk:

        • Disk size: specify the desired VM disk size in gigabytes.
        • Disk Type: select one of the values — HDD, SSD or High-IOPS SSD. For more information, see Cloud Servers service overview.
    4. Click the Next step button.

    5. At the “Confirmation” step, review the calculated cost of the service and click Connect the tariff.

    After the installation is completed, a one-time link with access will be sent to your email.

  5. Follow the link from the email.

  6. Save the data to access VictoriaMetrics.

  7. (Optional) Configure the collection of metrics depending on the selected configuration:

    For the extended configuration of the service, use the official instructions VictoriaMetrics.