Dynatrace Connector Guide
Set up and operate the connector that pulls Dynatrace KPIs and transactions into HEAL.
Introduction#
The purpose of Dynatrace Connector is to fetch the KPIs and transaction data from Dynatrace APIs and push them to HEAL.
The HEAL KPIs Adapter does the transformation of the data and loads it into HEAL.
- Metrics can be response time, CPU time, etc.
- Transactions are related to Dynatrace events.
As per Dynatrace’s monitoring and observability framework, the following chains represent interconnected layers of data that Dynatrace correlates to provide observability and context-aware details:
- Events Chain: Detects signal anomalies across the environment.
- KPI Chain: Tracks predefined performance metrics of Dynatrace health.
- Topology Chain: Detected affected components.
- Transaction Chain: traces end-to-end user transactions across distributed systems.
This guide describes how to set up, configure, validate, and operate the Dynatrace connector for HEAL using the procedures, SQL references, API checks, Redis keys, and RabbitMQ.
It standardises critical fixes such as scheduler arguments, metric query templates, account mappings, and event/KPI mappings to ensure reliable data ingestion for KPIs, transactions, topology, and events.
Dynatrace Tables#
The Dynatrace connector has the following tables:
| Table | Description |
|---|---|
account |
Account-level information, including credentials and identifiers. |
mst_connector_details |
Lists available connectors. Each connector is linked to an account. |
mst_connector_instance_details |
Contains connector instances. Instance names include the chain (e.g., DT-1_KPI). |
mst_connector_chains |
Master list of all supported chains. |
mst_connector_workers |
Master list of workers who perform specific tasks in a chain. |
mst_connector_worker_parameters |
Common parameters required by workers. |
mst_connector_chain_worker_mapping |
Maps chains to their relevant workers. Includes execution order and reinitialization flags. |
mst_connector_instance_worker_parameters_mapping |
New table – Contains only instance-specific overrides for worker parameters. |
Prerequisites#
Follow the steps below before setting up the Dynatrace Connector.
- Ensure the following services are running:
- Control Center (cc)
- Redis microservice
- Scheduler service
- Percona
- Rabbit MQ
- Create the account and application in Control Center before enrolling in the connector.
-
Generate an access token for the Dynatrace API.
a. In the Dynatrace menu, select “Access Tokens.”
b. Select Generate new token.
c. Enter a name for your token.
d. Select the scopes below for the token.
- Dataexport.
- Read entities.
- Read metrics.
e. Select Generate.
d. Copy the generated token to the clipboard. Store the token in a password manager for future use.
-
Gather Dynatrace environment details and validate access with API examples for entities, services, and management zones.
-
Validate the Topology chain, execute the following command:
a. For Host:
curl -X GET "https://<Dynatrace DNS>/api/v2/entities/<host id>" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"b. For Service:
curl -X GET "https://<Dynatrace DNS>/api/v2/entities/<service id>" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"c. For Instance:
curl -X GET "https://<Dynatrace DNS>/api/v2/entities/<instance id>" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"For Example: Check with any one of the curl requests from above (Host/Service/Instance).
Input: Host
curl -X GET "https://<Dynatrace DNS>/api/v2/entities/<host id>" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"Output: Host
[ { "entityId": "HOST-A018DD25178A72A8", "displayName": "sapsrv-01", "discoveredName": "sapsrv-01", "firstSeenTimestamp": 1633408762045, "lastSeenTimestamp": 1633960296393, "tags": [], "fromRelationships": {}, "toRelationships": { "isProcessOf": [ "PROCESS_GROUP_INSTANCE-A04C640A9F34164A", "PROCESS_GROUP_INSTANCE-E0BE9530F2AA3104", "PROCESS_GROUP_INSTANCE-32A64DDB01151241", ], "isSiteOf": [ "GEOLOC_SITE-34A24A88FF7D252D" ], "runsOn": [ "PROCESS_GROUP-55BB99EBACB51463", "PROCESS_GROUP-AB0163FF20FB0174", "PROCESS_GROUP-6A7C84421CB9B74A", ] }, "osType": "LINUX", "osArchitecture": "X86", "osVersion": "Red Hat Enterprise Linux 7 (Core) (kernel 3.10.0-1127.8.2.el7.x86_64)", "hypervisorType": "VMWARE", "ipAddresses": [ "192.0.2.134" ], "bitness": "64bit", "cpuCores": 8, "logicalCpuCores": 8, "monitoringMode": "FULL_STACK", "networkZoneId": "default", "agentVersion": { "major": 1, "minor": 225, "revision": 146, "timestamp": "20210929-151104", "sourceRevision": "" }, "consumedHostUnits": 2, "userLevel": "NON_SUPERUSER", "oneAgentCustomHostName": "" },If the response is obtained for any of Host/Service/Instance, it ensures that, through the token, we can validate the topology chain.
-
Validate the KPI chain, execute the following command:
Note: Ensure to use any of the Host/Service/Instance values based on the requirements.
curl -X GET " https:// <Dynatrace DNS>/api/v2/metrics/query?pageSize=1000&metricSelector= <Host metric>&resolution=1m&entitySelector=entityId(<Host entity>)&mzSelector=mzid(<management zone ID>)" - H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"For example:
curl -X GET "https://<tenant>.live.dynatrace.com/api/v2/metrics/query?pageSize=1000&metricSelector=builtin:host.d isk.free&resolution=1m&entitySelector=entityId(HOST- 464321EF36A94577)&mzSelector=mzId(991371682806578231)"-H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"Output:
{ "totalCount": 2, "nextPageKey": null, "resolution": "1m", "result": [ { "metricId": "builtin:host.disk.free", "dataPointCountRatio": 0.000012, "dimensionCountRatio": 0.00002, "data": [ { "dimensions": [ "HOST-464321EF36A94577", "DISK-9BD35BB507AF37E6" ], "dimensionMap": { "dt.entity.disk": "DISK-9BD35BB507AF37E6", "dt.entity.host": "HOST-464321EF36A94577" }, "timestamps": [1763615100000, 1763615160000], "values": [74.2688293457031, 74.2688293457031] } ] } ] } -
Validate the Transaction chain, execute the following command:
Note: Ensure to use any of the Host/Service/Instance values based on the requirements.
curl -X GET " https://<tenant>.live.dynatrace.com/api/v2/metrics/query?pageSize=1000&metricSelector=builtin:service .keyRequest.(response.time,count.total,errors.fourxx.count)&resolution=1m&mzSelector=mzId(<management zone ID>)" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"For example:
curl -X GET " https://<tenant>.live.dynatrace.com/api/v2/metrics/query?pageSize=1000&metricSelector=builtin:service .keyRequest.(response.time,count.total,errors.fourxx.count)&resolution=1m&mzSelector=mzId(99137168280 6578231)"-H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"Output:
{ "totalCount": 2, "nextPageKey": null, "resolution": "1m", "result": [ { "metricId": "builtin:service.keyRequest.response.time", "dataPointCountRatio": 0.000024, "dimensionCountRatio": 0.00004, "data": [ { "dimensions": [ "SERVICE_METHOD-DAF5B1744250F8EC" ], "dimensionMap": { "dt.entity.service_method": "SERVICE_METHOD-DAF5B1744250F8EC" }, "timestamps": [1763615220000, 1763615280000], "values": [3874.66666666667, 4530] } ] }, { "metricId": "builtin:service.keyRequest.count.total", "dataPointCountRatio": 0.000024, "dimensionCountRatio": 0.00004, "data": [ { "dimensions": [ "SERVICE_METHOD-DAF5B1744250F8EC" ], "dimensionMap": { "dt.entity.service_method": "SERVICE_METHOD-DAF5B1744250F8EC" }, "timestamps": [1763615220000, 1763615280000], "values": [3, 1] } ] }, { "metricId": "builtin:service.keyRequest.errors.fourxx.count", "dataPointCountRatio": 0.000024, "dimensionCountRatio": 0.00004, "data": [ { "dimensions": [ "SERVICE_METHOD-DAF5B1744250F8EC" ], "dimensionMap": { "dt.entity.service_method": "SERVICE_METHOD-DAF5B1744250F8EC" }, "timestamps": [1763615220000, 1763615280000], "values": [0, 0] } ] } ] } -
Validate the Events chain, execute the following command:
Note: Ensure to use any of the Host/Service/Instance values based on the requirements.
curl -X GET " https://<tenant>.live.dynatrace.com/api/v2/events?pageSize=1000&eventSelector=managementZoneId(<manag ement zone ID>)" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"* Multiple management zone IDs can be provided based on the requirement (management zone ID1, management zone ID2, etc).
For example:
curl -X GET " https://<tenant>.live.dynatrace.com/api/v2/events?pageSize=1000&eventSelector=managementZoneId(991371 682806578231)"-H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token {Enter the token generated form step 4}"Output:
{ "totalCount": 1, "pageSize": 1000, "events": [ { "eventId": "3619426252375115466_1763462490716", "startTime": 1763462490716, "endTime": -1, "eventType": "AVAILABILITY_EVENT", "title": "Minimum process count not met for rule ProcessEnabled", "entityId": { "entityId": { "id": "HOST-464321EF36A94577", "type": "HOST" }, "name": "192.0.2.135" }, "properties": [ { "key": "Event_source", "value": "Process availability" }, { "key": "Message", "value": "Minimum process count not met for rule named ProcessEnabled" }, { "key": "Process_instance_snapshots", "value": "generated" }, { "key": "dt.entity.host", "value": "HOST-464321EF36A94577" }, { "key": "dt.entity.host_group", "value": "HOST_GROUP-77693739306412E3" }, { "key": "dt.event.group_label", "value": "Availability" }, { "key": "dt.event.impact_level", "value": "Infrastructure" }, { "key": "dt.event.is_rootcause_relevant", "value": "true" }, { "key": "dt.event.timeout", "value": "10" }, { "key": "dt.event.title", "value": "Minimum process count not met for rule ProcessEnabled" }, { "key": "dt.host_group.id", "value": "Thread_Dump" }, { "key": "dt.settings.object_id", "value": "vu9U3hXa3q0AAAABABtidWlsdGluOnByb2Nlc3NhdmFpbGFiaWxpdHkABnRlbmFudAAGdGVuYW50ACRlZGE4ZDg3ZS0zNTc4LTMz <base64-token>NzFmNmFkZGW-71TeFdrerQ" }, { "key": "host.name", "value": "microservices1" } ], "status": "OPEN", "correlationId": "bfe80edce49a0ef7", "entityTags": [ { "context": "CONTEXTLESS", "key": "easytravel", "value": "Linux", "stringRepresentation": "easytravel:Linux" }, { "context": "CONTEXTLESS", "key": "the lab servers", "stringRepresentation": "the lab servers" }, { "context": "CONTEXTLESS", "key": "EasyTravel", "stringRepresentation": "EasyTravel" } ], "managementZones": [ { "id": "991371682806578231", "name": "EasyTravel_Linux" } ], "underMaintenance": false, "suppressAlert": false, "suppressProblem": false, "frequentEvent": false } ], "warnings": [] } -
Ensure the tables are available in the AppsOne DB.
Setting Up Dynatrace Connector#
Note: This Connector can run on any operating system that supports Docker.
- Download and copy the connector build to the target server.
-
Untar the heal-connector.tar.gz file.
tar -xvf connector.tar.gzNote: The heal-connector_<tag>.tar file is a Docker image that you can load directly in Docker.
-
Execute the following command to load the Docker image.
a. To load the image:
docker load -i heal-connector_<tag>.tarFor example:
docker load -i heal-connector.tar.b. To tag the image:
docker tag <image name>:<version> <tag name>:<version>For example:
docker tag heal-connector:1.0.0 rhel-155.heal:8099/heal-connector:1.0.0c. To push the image:
docker push <tag name>:<version>For example:
docker tag heal-connector:1.0.0 rhel-155.heal:8099/heal-connector:1.0.0 -
The build has the following SQL file:
- adapter-insert.sql
-
As per the configuration you require, update .sql scripts in the build folder.
a. Update the parameters below, as per the environment for mst_connector_worker_parameters.
i. KPI chain:
'dt.kpi.url','https://<dynatrace domain>/api/v2/metrics/query?pageSize=1000&metricSelector=%s&resolution=%sm&entitySelector=entityId(% s)&mzSelector=mzId(%s)' 'Authorization','<access token>' "management.zone.id", "<management zone ID>", 'resolution','<mention the interval duration value>', 'datasource.url', 'jdbc:mysql://<percona IP:Port>/appsone?verifyServerCertificate=false&useSSL=false&requireSSL=true&enabledTLSProtocols=TLSv1 .2&allowPublicKeyRetrieval=true', 'datasource.username', '<percona user>', 'datasource.password', '<percona password>', 'data.receiver.kpi.endpoint','https://<HAProxy IP>:9998/raw-agents-kpi-data',For example:
'dt.kpi.url','https://<tenant>.live.dynatrace.com/api/v2/metrics/query?pageSize=1000&metricSelector=% s&resolution=%sm&entitySelector=entityId(%s)&mzSelector=mzId(%s)' 'Authorization','<dynatrace-api-token> X6YVYO7DPLPL' "management.zone.id", "6066030016517584332", 'resolution','2', 'datasource.url', 'jdbc:mysql://192.0.2.110:3307/multiple_connectors?verifyServerCertificate=false&useSSL=false&requ ireSSL=true&enabledTLSProtocols=TLSv1.2&allowPublicKeyRetrieval=true', 'datasource.username', 'dbadmin', 'datasource.password', '<base64-password>', 'domain','dynatrace', 'data.receiver.kpi.endpoint','https://haproxy.example:9998/raw-agents-kpi-data',ii. TOPOLOGY Chain:
'dt.service.url','https://<dynatrace domain>/api/v2/entities?pageSize=1000&entitySelector=zld(%s),type(SERVICE)&includeDetails=true', 'Authorization','<access token>' "management.zone.id", "<management zone ID>", 'datasource.url', 'jdbc:mysql://<percona IP:Port>/multiple_connectors?verifyServerCertificate=false&useSSL=false&requireSSL=true&enabledTLSPro tocols=TLSv1.2&allowPublicKeyRetrieval=true', 'datasource.username', '<percona user>', 'datasource.password', '<percona password>', 'account.name','<account identifies>' 'topology.application.identifier', 'dt-application', 'grpc.address','<HAProxy/grpc IP>', 'grpc.port','<HAProxy/grpc Port>', 'controlcenter.instance.delete.url','https://<HAProxy IP>:9998/heal- controlcenter/v2.0/api/accounts/example/instances?instanceRemoval=true&instanceIdentifier=' 'controlcenter.instance.add.url','https://<HAProxy IP>.example:9998/heal- controlcenter/v2.0/api/accounts/example/instances' 'controlcenter.service.add.url','https://<HAProxy IP>.example:9998/heal- controlcenter/v2.0/api/accounts/example/services' 'controlcenter.agent.add.url','https://<HAProxy IP>.example:9998/heal- controlcenter/v2.0/api/accounts/example/agents-config' 'controlcenter.service.connection.url','https://<HAProxy IP>:9998/heal- controlcenter/v2.0/api/accounts/%s/connections'For example:
'dt.service.url','https://<tenant>.live.dynatrace.com/api/v2/entities?pageSize=1000&entitySelector=mz Id(%s),type(SERVICE)&includeDetails=true', 'Authorization','<dynatrace-api-token> X6YVYO7DPLPL', 'dt.entity.url','https://<tenant>.live.dynatrace.com/api/v2/entities', "management.zone.id", "6066030016517584332", 'datasource.url', 'jdbc:mysql://192.0.2.110:3307/multiple_connectors?verifyServerCertificate=false&useSSL=false&requ ireSSL=true&enabledTLSProtocols=TLSv1.2&allowPublicKeyRetrieval=true', 'datasource.username', 'dbadmin', 'datasource.password', '<base64-password>', 'account.name', 'example', 'topology.application.identifier', 'dt-application', 'grpc.address','haproxy-node1.example', 'grpc.port','9998', 'controlcenter.instance.delete.url','https://haproxy-node1.example:9998/heal- controlcenter/v2.0/api/accounts/example/instances?instanceRemoval=true&instanceIdentifier=' 'controlcenter.instance.add.url','https://haproxy-node1.example:9998/heal- controlcenter/v2.0/api/accounts/example/instances' 'controlcenter.service.add.url','https://haproxy-node1.example:9998/heal- controlcenter/v2.0/api/accounts/example/services' 'controlcenter.agent.add.url','https://haproxy-node1.example:9998/heal- controlcenter/v2.0/api/accounts/example/agents-config' 'controlcenter.service.connection.url','https://haproxy-node1.example:9998/heal- controlcenter/v2.0/api/accounts/%s/connections'iv. Transaction Chain:
'dt.transaction.url','https://<dynatrace domain>/api/v2/metrics/query?pageSize=1000&metricSelector=builtin:service.keyRequest.(response.time,c 'datasource.url', 'jdbc:mysql://<percona IP:Port>/appsone?verifyServerCertificate=false&useSSL=false&requireSSL=true&enabledTLSProtocols=TLSv1 .2&allowPublicKeyRetrieval=true', 'datasource.username', '<percona user>', 'datasource.password', '<percona password>', 'account.name','<account identifier>', 'grpc.address','<HAProxy/grpc IP>', 'grpc.port','<HAProxy/grpc Port>',For example:
'dt.transaction.url','https://<dynatrace domain>/api/v2/metrics/query?pageSize=1000&metricSelector=builtin:service.keyRequest.(response.time,c ount.total,errors.fourxx.count)&resolution=1m&mzSelector=mzId(%s)' 'Authorization','<dynatrace-api-token> X6YVYO7DPLPL' "management.zone.id", "6066030016517584332" 'dt.entity.url','https://<tenant>.live.dynatrace.com/api/v2/entities' 'datasource.url', 'jdbc:mysql://192.0.2.110:3307/multiple_connectors?verifyServerCertificate=false&useSSL=false&requ ireSSL=true&enabledTLSProtocols=TLSv1.2&allowPublicKeyRetrieval=true', 'datasource.username', 'dbadmin', 'datasource.password', '<base64-password>', 'account.name','example', 'grpc.address','haproxy-node1.example', 'grpc.port','9998',v. Event Chain:
'dt.event.url','https://<dynatrace domain>/api/v2/events?pageSize=1000&eventSelector=managementZoneId(%s)' 'Authorization','<access token>' "management.zone.id", "<management zone ID>", 'dt.event.nextpageurl','https://<dynatrace domain>/api/v2/events?nextPageKey=%s' 'dt.kpi.url','https://<dynatrace domain>/api/v2/metrics/query?pageSize=1000&metricSelector=%s&resolution=%sm&entitySelector=entityId(% s)&mzSelector=mzId(%s)' 'dt.entity.url','https://<dynatrace domain>/api/v2/entities' 'datasource.url', 'jdbc:mysql://<percona IP:Port>/multiple_connectors?verifyServerCertificate=false&useSSL=false&requireSSL=true&enabledTLSPro tocols=TLSv1.2&allowPublicKeyRetrieval=true' 'datasource.username', '<percona user>' 'datasource.password', '<percona password>' 'account.name','<account identifier>' 'mq.server.host','<Host server IP>', 'mq.server.port','<Host server Port>', 'opensearch.nodes','<OpenSearch node 1 IP:Port>,<OpenSearch node 2 IP:Port>,<OpenSearch node 3 IP:Port>', 'opensearch.username','<OpenSearch user>', 'opensearch.password','<OpenSearch password>',For example:
'dt.event.url','https://<tenant>.live.dynatrace.com/api/v2/events?pageSize=1000&eventSelector=managem entZoneId(%s)' 'Authorization','<dynatrace-api-token> X6YVYO7DPLPL' "management.zone.id", "6066030016517584332" 'dt.event.nextpageurl','https://<tenant>.live.dynatrace.com/api/v2/events?nextPageKey=%s' 'dt.kpi.url','https://<tenant>.live.dynatrace.com/api/v2/metrics/query?pageSize=1000&metricSelector=% s&resolution=%sm&entitySelector=entityId(%s)&mzSelector=mzId(%s)' 'dt.entity.url','https://<tenant>.live.dynatrace.com/api/v2/entities' 'datasource.url', 'jdbc:mysql://192.0.2.110:3307/multiple_connectors?verifyServerCertificate=false&useSSL=false&requ ireSSL=true&enabledTLSProtocols=TLSv1.2&allowPublicKeyRetrieval=true' 'datasource.username', 'dbadmin' 'datasource.password', '<base64-password>' 'account.name','example' 'mq.server.host','192.0.2.144', 'mq.server.port','5671', 'opensearch.nodes','192.0.2.145:9200,192.0.2.145:9225,192.0.2.145:9250', 'opensearch.username','healadmin', 'opensearch.password','<base64-password>',b. Ensure the scheduler argument value is updated/available:
If the duration_min (for the scheduled job) value is missing, then add it as below, respectively:
#INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('duration_min', '<default time interval>', '<actual time interval>', '0', '<your scheduler job ID>', '2025-10-06 00:00:00', '2025- 10-06 00:00:00', '7640123a-fbde-4fe5-9812-581cd1e3a9c1');Note: Ensure the required time interval value is provided in the actual time interval.
For example:
i. Dynatrace_KPIs:
#INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('duration_min', '1', '0', '2025-10-06 00:00:00', '2025-10-06 00:00:00', '7640123a-fbde-4fe5- 9812-581cd1e3a9c1');ii. Dynatrace_Transactions:
#INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('duration_min', '1', '0', '2025-10-06 00:00:00', '2025-10-06 00:00:00', '7640123a-fbde-4fe5- 9812-581cd1e3a9c1');iii. Dynatrace_Topology:
#INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('duration_min', '1', '0', '2025-10-06 00:00:00', '2025-10-06 00:00:00', '7640123a-fbde-4fe5- 9812-581cd1e3a9c1');iv. Dynatrace_Events:
#INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('duration_min', '1', '0', '2025-10-06 00:00:00', '2025-10-06 00:00:00', '7640123a-fbde-4fe5- 9812-581cd1e3a9c1');c. lag_duration_min fix: txn, KPI & Events collection.
Note: This field is not mandatory, but it is applicable when there is a lag in the data collection. This ensures smooth data collection in case of any issue with the application.
Transaction and some KPI collections returned no data for the current minute; the previous minute had data. Added lag_duration_min = 1 to allow 1 minute lag.
Add lag_duration_min for Dynatrace_Txn, Dynatrace_KPI, and Dynatrace_Event schedulers:
INSERT INTO appsone.scheduler_job_arguments (argument_name, argument_value, default_value, is_placeholder, scheduler_job_id, created_time, updated_time, user_details_id) VALUES ('lag_duration_min','1','1','0', (SELECT id FROM appsone.scheduler_job_details WHERE scheduler_id = (SELECT id FROM appsone.scheduler_details WHERE name = 'Dynatrace_Txn' AND account_id = 4)), '2025-10-06 00:00:00','2025-10-06 00:00:00','7640123a-fbde-4fe5-9812-581cd1e3a9c1'); -- Repeat similarly for Dynatrace_KPI and Dynatrace_Event scheduler_job_details
Configuring Dynatrace Connector#
Follow the steps below for configuring the connector:
-
Import the HEAL certificate to the keystore.
a. Generate the SSL certificate from the server using the following command.
echo -n | openssl s_client -connect '<SERVERIP>:<PORT>' | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/<servicename>.crtPlease replace the following:
<SERVERIP>:<PORT>: The IP and PORT of GRPC/HAPROXY.
i. Import the certificate into the Java cacerts keystore using the following command.
keytool -import -trustcacerts -keystore <JAVA_HOME>/jre/lib/security/cacerts -storepass changeit - noprompt -alias <servicename> -file /tmp/<servicename>.crtii. Make a copy of your cacerts file to the config directory.
cp <JAVA_HOME>/jre/lib/security/cacerts <Connector Build path>/config/This is needed to push KPIs to HEAL over SSL.
-
Update and execute all the .sql files in the build folder in MySQL on the server:
mysql -h <percona IP> -P <percona port> -u <user name> -p'<password>' <database name> < adapter.sqlFor example:
i. adapter.sql (The create queries in this SQL file, create the tables for the connector):
mysql -h 198.51.100.10 -P 3307 -u dbadmin -p'xxxxxx@111' appsone < adapter.sqlNote: Ensure the parameter specifications are as per your environment.
ii. adapter-insert.sql (The insert queries in this SQL file, insert the data into the connector-specific tables):
mysql -h 198.51.100.10 -P 3307 -u dbadmin -p'xxxxxx@111' appsone < adapter-insert.sql -
Execute all the consul keys present in the connector-consul-kv.txt file.
-
Update the Nomad file:
a. Under the Constraints section: Update the IP address of the target server (where the connector needs to run).
constraint { attribute = "${attr.unique.network.ip-address}" value = "203.0.113.10" }b. Update the RMQ Queue details in the template section:
template { ……….. QUEUE_NAME = "RB_1" ……….. }c. The image path: Update the image path of the connector,
config { image = "rhel-166.heal:8091/heal-riverbed-connector:1.0.0-SNAPSHOT" …. }d. volumes section (update the certificate paths):
volumes = [ "/opt/Heal/centralized_logs/heal-riverbed-connector:/tmp/logs", "/opt/Heal/Appsone_Service/data/cert/cacerts:/etc/ssl/certs/java/cacerts", "/opt/Heal/Appsone_Service/data/cert/appnomic-keystore.jks:/opt/heal-riverbed-connector/appnomic- keystore.jks", "/opt/Heal/Appsone_Service/data/cert/appnomic-truststore.jks:/opt/heal-riverbed-connector/appnomic- truststore.jks", ]e. Ensure the services are running in the correct server (ensure with its IP).
i. Under the extra hosts section,
extra_hosts = [ "trinodb.example:192.0.2.110", "haproxy-node1.example:192.0.2.110", "rabbitmq-node1.example:192.0.2.110", "heal-computed-service.example:192.0.2.110", "redis-service.example:192.0.2.110", "action-detector.example:192.0.2.110", "otel-collector-node1.example:192.0.2.110", "event-detector.example:192.0.2.110", "supervisorcontroller.example:192.0.2.110", "signal-detector.example:192.0.2.110", "heal-scheduler-service.example:192.0.2.110", "reporting-data-service.example:192.0.2.111", "advanced-analytics-ds.example:192.0.2.111", "redis-node1.example:192.0.2.111", "keycloak.example:192.0.2.111", "mle.example:192.0.2.111", "a1eventhandler.example:192.0.2.111", "grafana.example:192.0.2.111", "jaeger-node1.example:192.0.2.111", "control-center.example:192.0.2.111", "ui-service.example:192.0.2.111", "otel-lb.example:192.0.2.111", "data-receiver.example:192.0.2.112", "data-emitter.example:192.0.2.112", "heal-job-executor.example:192.0.2.112", "incident-management-broker.example:192.0.2.112", "opensearch-node1.example:192.0.2.112", "server166.heal:192.0.2.110", "server167.heal:192.0.2.111", "server168.heal:192.0.2.112",
Post Configurations#
Follow the steps below to be performed post the configuration of the connector:
-
Run/stop/status check the connector container by executing the following commands:
Nomad
a. Execute the command below to check the active services:
nomad status* To check specific service status:
nomad status heal-dynatrace-connector(sevice name)b. Execute the following command to start the connector:
nomad run heal-dynatrace-connector.nomadc. Execute the following command to stop the connector:
nomad stop heal-dynatrace-connector(sevice name)Docker
a. Execute the command below to run the connector container:
sudo docker run -d -t --name="<container-name>" --add-host=haproxy.example:<ip address> ext-system- adapter:<tag>b. Execute the command below to check the active containers:
docker psc. Execute the following command to start the connector:
docker start <container name>d. Execute the following command to stop the connector:
docker stop <container name>