Before using the policy, download the AppDynamics C/C++ SDK on the machine or within the container running the AI Gateway data plane. To use the AppDynamics policy, the libappdynamics.so shared library must be available on all data plane nodes running AI Gateway. You can install the AppDynamics C/C++ SDK or extract the libappdynamics.so shared library, which is the only required file.
For information about installation and configuration, see the AppDynamics SaaS and AppDynamics On-Premises documentation.
We recommended installing the libappdynamics.so in the /usr/local/kong/lib directory. This directory is included in the AI Gateway search path for shared libraries, so the libappdynamics.so file will be found automatically.
If you’re using the AI Gateway quickstart container, perform the following steps:
-
Extract the SDK:
tar -xzf appdynamics-sdk-native-64bit-linux-VERSION.tgz
-
Locate the library file:
cd appdynamics-cpp-sdk/lib
-
Copy the file into the container running the AI Gateway data plane:
docker cp libappdynamics.so <container_id>:/usr/local/kong/lib
If you prefer to install the libappdynamics.so file in a different location, you can do so.
- If AI Gateway is deployed on RHEL or CentOS, the
libappdynamics.so file can be in the /usr/lib64 directory, which is included in the default search path for shared libraries.
- If AI Gateway is deployed on Debian or Ubuntu, the
libappdynamics.so file can be in the /usr/lib directory, which is included in the default search path for shared libraries.
- If these options aren’t available, the
libappdynamics.so file can be in one of the locations configured by the system’s shared library loader.
- Alternatively, the
LD_LIBRARY_PATH environment variable can be set to the directory containing the libappdynamics.so file when starting AI Gateway.