Migrating from Custom Edition to Standard Edition

You can migrate Custom Edition to Standard Edition. The data that you can migrate includes tenant unit configuration data. The tenant unit configuration data includes user settings, dashboards, events, alerts, application perspectives, EUM websites and mobile apps, and other data.Focus sentinel

The following items are migrated:

  • Email and SMTP settings:
    • SMTP server (host, port)
    • Email sender address
    • SSL/TLS settings
    • SMTP credentials (if sensitive data included)
  • Proxy Settings;
    • Proxy server (host, port)
    • Non-proxy hosts list
    • Proxy credentials (if sensitive data included)
  • Acceptor Configurations:
    • Agent acceptor (host, port)
    • EUM acceptor (host, port)
    • Synthetics acceptor (host, port)
    • Serverless acceptor (host, port)
    • OpAmp acceptor (host, port)
    • OTLP HTTP acceptor (host, port)
    • OTLP GRPC acceptor (host, port)
  • Feature Flags: The flags of features that are enabled or disabled features with their values
  • Domain Configuration: Base domain and tenant or unit URL path setting
Note: The analytics and metrics data from your Instana agents cannot be migrated.
Note: Important You can use the same license of your Custom Edition to migrate to the Standard Edition.

Prerequisites

Make sure that the following prerequisites are met:

Procedure

To migrate the data, complete the following steps:

  1. On your Custom Edition host, extract the tenant unit configuration data from the Postgres data store.

    kubectl-instana dump config-data --unit <unitname> --unit-namespace <namespace>
     

    A dump.tar.gz file is created in the ./dump directory. This file contains the tenant unit configuration data in the form of executable SQL queries.

    Table 1. Extraction parameters
    Parameter Description
    --unit-namespace Unit Namespace (default: instana-units)
    --postgres-namespace Namespace (default: instana-postgres)
    --unit Name of unit (default: unit0-tenant0)
    --include-sensitive Set this flag to includes SMTP password, proxy password, and download keys in the backup configuration
    --help See supported options
  2. On your new Standard Edition host, complete one of the following steps:

    • Online migration: Transfer the dump.tar.gz package from the old host to your new host to migrate.
    • Air-gapped migration: Transfer the dump.tar.gz package from the old host to your new air-gapped host by using the bastion host.
  3. Complete one of the following steps:

    Table 2. Migration parameters
    Parameter Usage Example
    --volume-data=<custom-directory>

    Specifies the directory to store configuration and operational data for Elasticsearch, PostgreSQL, and Kafka data stores

    Default: /mnt/instana/stanctl/data

    --volume-data=/custom/data/path
    --volume-metrics=<custom-directory>

    Specifies the directory to store metrics and time-series data for Cassandra and BeeInstana data stores

    Default: /mnt/instana/stanctl/metrics

    --volume-metrics=/custom/metrics/path
    --volume-analytics=<custom-directory>

    Specifies the directory to store analytics data for ClickHouse data store

    Default: /mnt/instana/stanctl/analytics

    --volume-analytics=/custom/analytics/path
    --volume-objects=<custom-directory>

    Specifies the directory to store object storage data including traces and monitoring data

    Default: /mnt/instana/stanctl/objects

    --volume-objects=/custom/objects/path
    • For a single-node deployment, run the following commands:
      • Online migration
        stanctl migrate -f </path/to/tar.gz>
         
      • Air-gapped migration
        stanctl migrate --air-gapped -f </path/to/tar.gz>
         
    • For a multi-node deployment, run the following commands:
      • Online migration
        stanctl migrate --file=</path/to/tar.gz> --multi-node-enable --multi-node-ips=<node0IPaddress,node1IPaddress,node2IPaddress>
         
      • Air-gapped migration
        stanctl migrate --air-gapped --file=</path/to/tar.gz> --multi-node-enable --multi-node-ips=<node0IPaddress,node1IPaddress,node2IPaddress>
         
      The following dialog is displayed.
      Are you migrating from the Classic offering?
  4. Enter "No". The domain configuration is preserved.

    After you run the command, the following dialog is displayed:

    ? Choose installation type:
    demo <
    production
     
  5. Choose your preferred installation type. For multi-node clusters, only the production installation type is supported.

  6. Install Standard Edition with the tenant unit configuration data that you migrated from your old host. For more information, see Installing Standard Edition in an online environment or Installing Standard Edition in an air-gapped environment.

Post-migration configurations

If required, you might need to redo some configurations that were on the old host. You can reconfigure as suggested in the following list:

  • New Standard Edition instance is not connected to any agent by default. Complete one of the following steps:
    • Connect your agents to old and new backends, see Configuring multiple backends.
    • Connect your agents to the new backend, update the existing DNS records to point to the new Standard Edition instance. The agents automatically start reporting to the new backend.
  • After the migration, when the old and new environments are connected to your agents, both the Instana environments generate alerts. To avoid duplicate alerts, you can set a maintenance window on one of your Instana instances. For more information, see Scheduling maintenance windows. /events_alerts/maintenance-window.dita