Skip to main content

Updating Statistics Collection service

If you have Stat API installed as part of the Statistics Collection service, update it along with Stat Receiver.

  1. Fetch new installation artifacts.

    1. In the DGCLI configuration file, specify:

      • New version of the api-platform component (see API Platform releases).
      • Version of core component required to install the new API Platform version (see the Dependencies subsection in the API Platform releases description).
    2. Run the fetch command.

      For more settings, see DGCLI command-line arguments reference.

  2. Check out breaking changes. If necessary, update the settings in the values-stat-receiver.yaml and values-stat-api.yaml configuration files. For more information, see the installation guide.

  3. Run separate commands to update:

    • Stat Receiver service:

      helm upgrade --version=VERSION --atomic --values ./values-stat-receiver.yaml stat-receiver 2gis-on-premise/stat-receiver
    • Stat API service:

       helm upgrade --version=VERSION --atomic --values ./values-stat-api.yaml stat-api 2gis-on-premise/stat-api

    In the --version parameter, set the new api-platform component version that you specified in the DGCLI configuration file.