Setting Up Dynatrace Connector

Load and deploy the Dynatrace Connector Docker image on a Docker-capable server.

3 min read Updated SS

Note: This Connector can run on any operating system that supports Docker.

  1. Download and copy the connector build to the target server.
  2. Untar the heal-connector.tar.gz file.

    tar -xvf connector.tar.gz
    

    Note: The heal-connector_<tag>.tar file is a Docker image that you can load directly in Docker.

  3. Execute the following command to load the Docker image.

    1. To load the image:

      docker load -i heal-connector_<tag>.tar
      

      For example:

      docker load -i heal-connector.tar.
      
    2. 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.0
      
    3. 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
      
  4. The build has the following SQL file:

    • adapter-insert.sql
  5. As per the configuration you require, update .sql scripts in the build folder.

    1. Update the parameters below, as per the environment for

      mst_connector_worker_parameters.

      1. 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',
        
      2. 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'
        
      3. Transaction Chain:

        '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','<access token>'
        "management.zone.id", "<management zone ID>",
        'dt.entity.url','https://<dynatrace domain>/api/v2/entities'
        

        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',
        
      4. 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'
        

    2. 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:

      1. 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');
        
      2. 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');
        

      3. 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');
        
      4. 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');
        
    3. 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