Adding APM Insight Java agent in a Kubernetes environment
There are three methods for installing the APM Insight Java agent in a Kubernetes environment:
Prerequisites
- Download the latest APM Insight Java agent ZIP file.
- Extract the ZIP file and locate the agent's JAR and configuration files.
- Open the apminsight.conf file in any text editor and enter the license.key, apm.host, application.name, and proxy details (if any).
Adding the APM Insight Java agent via a Docker container
Follow the steps below to install the Java agent in a Docker container:
Refer to this help page for detailed instructions. - Place all the agent files in the same local directory where your Dockerfile is located.
- Open the Dockerfile with any text editor, and copy all the APM Insight Java agent files to a directory inside the target container.
- Add -javaagent:[absolute_path_of_agent_jar]/apminsight-javaagent.jar (Java argument) to the startup command.
- Use the updated Dockerfile to create your container image.
- Once the image is ready, start your application by spawning containers using the Docker image you created.
- Once the application is up and receiving requests, view the monitor under APM tab.
Adding the APM Insight Java agent in Kubernetes via Init Containers
These steps guide you through the process of integrating the APM Insight Java agent into your Kubernetes deployment using Init Containers.
Refer to this KB article for detailed instructions and examples. - Create a secret for the APMInsight license key in your application namespace.
- Create an empty volume that will be used to copy the agent files during the InitContainers process.
- Include the InitContainers command in your Helm chart or deployment YAML file to copy agent files from the docker image to your volume.
- Mount the volume created in Step 2 into your application container.
- Include the environment variables (S247_LICENSE_KEY and JAVA_TOOL_OPTIONS) in the application deployment YAML file.
Adding APM Insight Java agent in Kubernetes via Persistent Volumes
This explains how to set up the APM Insight Java agent for applications running in Kubernetes using Persistent Volumes.
Refer to this KB article for prerequisites and detailed instructions. - Create a Persistent Volume and copy all agent files into it.
- Mount the volume into the application container.
- Create a secret for the APMInsight license key in your application namespace.
- Include the environment variables (S247_LICENSE_KEY and JAVA_TOOL_OPTIONS) in the application deployment YAML file.
New to ADSelfService Plus?
Related Articles
How to add an APM Insight Java agent in Kubernetes via InitContainers?
Step 1. Create a secret to access the APM Insight license key in your application namespace: kubectl create secret generic app-secret --from-literal=s247licensekey='your_APMInsight_license_key' -n petclinic The license key can be obtained from the ...
How to rename an existing APM - Java agent application's monitor?
In Applications Manager's APM(Application Performance Monitoring) doesn't support renaming applications/monitors from the web client. However, the application name of an existing application instance can be renamed in the `apminsight.conf` file and ...
APM Insight Java agent setup in K8s via Persistent Volumes
Prerequisites 1. A persistent volume (with a capacity of 100mb). 2. The persistent volume mounted on all deployment pods (via persistent volume claim). 3. The Applications Manager APM Insight Java agent zip file was downloaded, moved, and extracted ...
Uninstrumented Block of Code - APM Insight
In the traces tab --> Slowest Method Calls and Count we show if you find Un-instrumented block of code the reason is as follows: Basically, What is un-instrumented block of code in APM Insight? By default, APM Insight agent monitors known frameworks ...
Self monitor Applications Manager using APM Insight Java Agent
Applications Manager is built with Java, hence we can monitor it using APM Insight Java Agent to measure it's performance continuously, which can be very much useful. Setting up APM Insight Java Agent Follow the below steps to download and set up the ...