Remote Data Collection from Component Agent

Set up remote data collection by creating host instances in Control Center with SSH details.

1 min read Updated SS

Follow the below steps for remote data collection from the Component Agent.

1. Create the host component instance from the Control Center (CC) UI and provide values for the host address, SSH port, username, and password fields in the CC UI.

Refer to Control Center Administrator Guide.pdf.

2. Copy Component Agent build on the server where CA needs to collect data of remote hosts or component instance data.

3. Install component agent.

4. Go to the ComponentAgent/config folder.

5. Open the basic.properties file and provide the values for the following key attributes.

a. component.agent.uniqueid=<Provide the component-agent identifier, which is created through the config generator tool for this host>

We can also get the component agent identifier by running the below query in Percona.

Execute SELECT unique_token FROM appsone.agent;

For example:

component.agent.uniqueid=e570de02-c585-4917-bbb7-5c97b35e-10

b. component.agent.configserver.url=<Provide the HEAL Control Center URL>

For example:

component.agent.configserver.url=https://19x.xyz.xy.xyz:9998/heal-controlcenter/v2.0/api/agent-config-data

Note:

  • Make sure both these key attributes are valid and not empty if an invalid or empty component agent stops its service.
  • A username and password are mandatory for remote data collection.
  • It is mandatory to mention keycloak.example with IP address in the /etc/hosts file of the server where CA is running.

6. Start the component agent.