Setting Up AppDynamics Connector
Extract the connector package, load its Docker image, and configure it.
Follow the below steps to set up AppDynamics connector:
Note: This connector can run on any operating system that supports docker.
-
Untar connector.tar.gz file.
tar -xvf connector.tar.gzYou get the connector folder which contains the following files:
conf.tar file sql.tar file ext-system-adapter_<tag>.tar file ext-system-adapter_<tag>.tar file is a docker image which you can load directly in docker. -
Execute the following command to load the docker image.
docker load -i ext-system-adapter_<tag>.tar -
Untar conf.tar and sql.tar files.
tar -xvf conf.tar tar -xvf sql.tar -
conf folder contains all the configuration files of the connector. conf folder contains adapter-conf.yaml, importCert.sh, and logback.xml files.
sql folder contains folder AppD folder.
-
Create a folder named logs inside the connector folder.
- Update the adapter-conf.yaml file as shown below.
| Parameter | Value | |
| className | “com.appnomic.heal.etladapter.reposit ories.AdapterConfigMaster”. Do not modify. | |
| properties: | ||
| hibernate.connection.username | User name of the Database. | |
| hibernate.connection.password | Password of the Database. | |
| hibernate.connection.autoReconnect | “true”. Do not modify. | |
| hibernate.c3p0.min_size | “1”. Do not modify. | |
| hibernate.c3p0.max_size | “3”. Do not modify. | |
| hibernate.connection.url | “jdbc:mysql://<ip-address of Percona>: <port number of Percona>/<AppD schema name>? verifyServerCertificate=false&useSSL =true&requireSSL=true&enabledTLSP rotocols=TLSv1.2&useServerPrepStm ts=true&cacheServerConfiguration=tru e” | |
| adapterProperties: | ||
| hibernate.connection.username | User name of the appsone database. | |
| hibernate.connection.password | Password of the appsone database. | |
| hibernate.connection.autoReconnect | “true”. Do not modify. | |
| hibernate.c3p0.min_size | “1”. Do not modify. | |
| hibernate.c3p0.max_size | “3”. Do not modify. | |
| hibernate.connection.url | jdbc:mysql:// ://<ip-address of appsone DB>:<port number of appsone DB>/appsone | |
| connector.id | To get the connector id, run this query: select * from mst_connector_details where name=’Appdynamics’;. | |
For Example: className: “com.appnomic.heal.etladapter.repositories.AdapterConfigMaster” properties: hibernate.connection.username: “dbadmin” hibernate.connection.password: “<password>” hibernate.connection.autoReconnect: “true” hibernate.c3p0.min_size: “1” hibernate.c3p0.max_size: “3” hibernate.connection.url: “jdbc:mysql://192.0.2.78:3307/dataadapter_sap? verifyServerCertificate=false&useSSL=true&requireSSL=true&enabledTLSProto cols=TLSv1.2,TLSv1.3&useServerPrepStmts=true&cacheServerConfiguration=t rue” adapterProperties: hibernate.connection.username: “dbadmin” hibernate.connection.password: “<password>” hibernate.connection.autoReconnect: “true” hibernate.c3p0.min_size: “1” hibernate.c3p0.max_size: “3” hibernate.connection.url: “jdbc:mysql://192.0.2.78:3307/appsone” connector.id: “3”
-
Import the HEAL certificate to Keystore.
-
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<SERVERIP>:<PORT> – Provide IP address and port number of GRPC or HAPROXY.
-
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 -
Copy 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.
-
-
Execute the following command to run the container.
sudo docker run -d -t --name="<container-name>" --add- host=haproxy.example:<ip address> -v <path>/connector/conf/: <path>/ext-system-adapter/conf/:rw -v <path>/connector/logs/: <path>/ext-system-adapter/logs/:rw ext-system-adapter:<tag> -
Execute the following command to start the adapter.
docker start <container name> -
Execute the following command to stop the adapter.
docker stop <container name>