Migrating from Standard Edition to Standard Edition
You can migrate the tenant unit configuration data from Self-Hosted Standard Edition. The tenant unit configuration data includes user settings, dashboards, events, alerts, application perspectives, EUM websites and mobile apps, and other data.
- Extract configuration data from the existing host.
- Prepare and configure the new host environment.
- Install Standard Edition on the new host and apply the migrated configuration data.
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
The analytics and metrics data from your Instana agents cannot be migrated.
The following migration paths are supported:
- From one single-node or multi-node Standard Edition to another single-node or multi-node Standard Edition
- From single-node Standard Edition demo installation type to production installation type
Prerequisites
Complete the following prerequisites:
- Prepare your new host as mentioned in Preparing your single-node environment or Preparing your multi-node environment.
- For DNS settings, use the tenant and unit names of your old environment. Since the tenant and unit names are part of the unit domain name, these names must be present in the DNS record of the Standard Edition environment. This is also necessary for logging in to Standard Edition by using LDAP authentication, as LDAP configurations are also migrated.
- Install the
stanctlbinary. For more information, see Installing stanctl command-line tool. - Ensure that the Instana backend version of your old host and new host is the same. If required, upgrade the backend:
- To upgrade the Instana backend on Classic Edition, see Upgrading Classic Edition . The Instana backend on Classic Edition must be build 271 or later.
- To upgrade the Instana backend on Standard Edition, see Upgrading Standard Edition .
- For air-gapped migration, create an air-gapped package on the bastion host, transfer the package to the air-gapped host, install stanctl on the air-gapped host, and import the package on the air-gapped host.
Migrating to Standard Edition
To migrate the data, complete the following steps:
-
Extract the tenant unit configuration data from the Postgres data store. Run the following command on the old Standard Edition host:
Astanctl dump config-datadump.tar.gzfile is created in the./dumpdirectory. This file contains the tenant unit configuration data in the form of executable SQL queries. -
Optional: Set the
--include-sensitiveflag to skip the following dialog dialog....Do you want to include sensitive information?.Sensitive information includes SMTP password, proxy password, and download keys.
If the--include-sensitiveis not set, the following dialog is displayed.This operation may include sensitive information (for example, SMTP credentials, proxy credentials, and download key). Do you want to include sensitive information? Note: Excluding it will require you to reconfigure SMTP and proxy settings in the destination environment during installation. - Complete one of the following steps:
- To include sensitive information in the backup, enter "Yes".
- To exclude sensitive information from the backup, enter "No".
A
dump-<timestamp>.tar.gzfile is created in the current directory. This file contains the tenant unit configuration data in the form of executable SQL queries. -
Do one of the following steps:
- Online migration: Transfer the
dump.tar.gzpackage from the old host to your new Standard Edition host. - Air-gapped migration: Transfer the
dump.tar.gzpackage from the old host to your new Standard Edition air-gapped host by using the bastion host.
- Online migration: Transfer the
-
On your new Standard Edition host, migrate the data from the
dump.tar.gzfile.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>
- Online migration
- 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>
- Online migration
- For a single-node deployment, run the following commands:
-
The following dialog is displayed.
Are you migrating from the Classic offering? - Enter "No", the original multi-domain or single-domain setup is retained.
After you run the command, you see the following prompt:
? Choose installation type: demo < production -
Choose your preferred installation type. For multi-node clusters, only the
productioninstallation type is supported.When migration is completed successfully, a confirmation message appears, similar to the following example:╭──────────────────────────────────────────────╮ │ │ │ Migration completed successfully! │ │ You can now install Instana Standard Edition.│ │ │ ╰──────────────────────────────────────────────╯ -
Install Standard Edition with the tenant unit configuration data that you migrated from your old host. For more information, see Installing the Standard Edition in an online environment or Installing Standard Edition in an air-gapped environment.
Note: If you want to configure additional settings such as custom certificates, SMTP configuration, proxies, and other settings, see Instana backend configurations. You can use the configuration flags with thestanctl upcommand.
After the installation is successfully completed, a message similar to the following example is displayed:
*****************************************************************
* Successfully installed Instana Self-Hosted Standard Edition! *
* *
* URL: https://instana.example.com *
* Username: admin@instana.local *
*****************************************************************
You can sign in to the new Standard Edition UI by using the same tenant password that you used in your old Standard Editionenvironment.
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. To connect your agents to the old and new backends, see Configuring multiple backends.
-
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.
Limitations
The following restrictions are applicable for simultaneous reporting into two Instana backends:
- The Kubernetes sensor in the Instana agent does not support two Instana backend configurations. See Report to multiple backends for Kubernetes monitoring.
- The EUM (end user monitoring) clients do not support reporting to two Instana backends.
- Serverless client implementations do not support reporting to two Instana backends.
- Configuration changes made after the migration are not automatically synchronized between the two Instana backends.
Troubleshooting
You might encounter issues after migration. If you are unable to resolve these issues, contact IBM Support.
Unable to access Standard Edition by using old password
If you used an environment file (.env) to install your Standard Edition and specified a 'STANCTL_UNIT_INITIAL_ADMIN_PASSWORD', the password is ignored. See the following example.
STANCTL_UNIT_INITIAL_ADMIN_PASSWORD=instana1
Resetting IdP configuration
To reset the IdP configuration after you migrate to the Standard Edition, see Resetting the IdP configuration.
Recover from an unstable environment
If your environment becomes unstable or you cannot recover it, recreate the infrastructure. This approach restores a clean, known-good state and eliminates inconsistencies that can persist after partial cleanup.
stanctl cluster delete
rm -r ~/.stanctl/*
These commands delete the cluster and remove the local state that stanctl manages. This cleanup can resolve many issues, but it does not guarantee a full reset. Residual configuration or infrastructure drift might still impact system stability.