Migrate Agents
Reconfigure managed agents to connect to a new Bindplane server or project
Objective
You have migrated resources from one Bindplane installation to another. All managed agents need to be updated in order to connect to the new Bindplane server or project. The Bindplane servers can be onprem or SaaS
Prerequisites
The following requirements must be met:
- SSH (Linux) or Remote Desktop (Windows) access to the managed agents
- Sudo or root access (Linux) or Administrator permissions (Windows)
Procedure
- Update Manager Configuration
- Restart Agent
- Validate
Update Manager Configuration
Edit the manager configuration with your editor of choice. On Linux, the path is /opt/observiq-otel-collector/manager.yaml
and on Windows it is C:/Program Files/observIQ OpenTelemetry Collector/manager.yaml
.
The configuration will look similar to this:
Modify the endpoint
value to reflect the new IP address or hostname of the Bindplane server. Be sure to keep the protocol (ws
/ wss
) and path (/v1/opamp
) the same. If you are migrating between different Projects on the same Bindplane server, the endpoint will not change.
Modify the secret_key
to match the secret key of the new Bindplane server or project. You can find your secret key on the agent install page by selecting "Install Agent".
All other fields should be deleted, as they will be populated on first connection to the new server or when a config from the new server is applied. The new configuration should looke similar to this:
In the sample above, we have pointed to a new server, specifically our SaaS platform, that uses TLS (wss://
instead of ws://
), and the value of secret_key
has changed due to being a new server. The secret_key
would have been changed, even for a new project on the same server.
Once the manager configuration is updated, save the file and close your editor.
Restart Agent
Restart the agent after modifying the manager configuration.
On Linux:
On Windows, use the "services" app or the following command:
Validate
Once the agent(s) are restarted, log into the Bindplane server's web interface. The agents will now be connected to the new server or project.