Configuring Dynatrace Connector

Import the HEAL SSL certificate into the keystore to configure the connector.

2 min read Updated SS

Follow the steps below for configuring the connector:

  1. Import the HEAL certificate to the keystore.

    1. 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>.crt
      

      Please replace the following:

      <SERVERIP>:<PORT>: The IP and PORT of GRPC/HAPROXY.

      1. 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>.crt
        
      2. 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.

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

    For example:

    1. 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'<password>' appsone < adapter.sql
      

      Note: Ensure the parameter specifications are as per your environment.

    2. 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'<password>' appsone < adapter-insert.sql
      
  3. Execute all the consul keys present in the connector-consul-kv.txt file.

  4. Update the Nomad file:

    1. 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"
      }
      
    2. Update the RMQ Queue details in the template section:

      template {
      ………..
      QUEUE_NAME = "DT_1"
      ………..
      }
      
    3. The image path: Update the image path of the connector,

      config {
              image = "rhel-166.heal:8091/heal-dynatrace-connector:1.0.0-SNAPSHOT"
              ….
             }
      
    4. volumes section (update the certificate paths):

      volumes = [
      "/opt/Heal/centralized_logs/heal-dynatrace-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-dynatrace-connector/appnomic-
      keystore.jks",
      "/opt/Heal/Appsone_Service/data/cert/appnomic-truststore.jks:/opt/heal-dynatrace-connector/appnomic-
      truststore.jks",
      ]
      

    5. Ensure the services are running in the correct server (ensure with its IP).

      1. 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",
        

Next — For end-to-end connector setup practices, see the HEAL Connectors SOP.