Tool to easily deploy an AppDynamics extension to K8s
- Download this git repository. Change directory to the top directory.
git clone https://github.com/nobuhikosekiya2/appdynamics-extension-k8s.git
cd appdynamics-extension-k8s
- Download your desired AppDynamics extensions from https://www.appdynamics.com/community/exchange/ . It should be a zip format file. ( Copy the zip url link and downlaod with wget or curl is the easy way )
- Place the downloaded zip file under
extensions
directory. - Run build.sh with the tag name of the extension docker image to create.
./build.sh -t <your registry>/<your repo>/appdymamics-extensions:latest
- Push the created docker image to your container registry.
docker push <your registry>/<your repo>/appdymamics-extensions:latest
- Edit deploy/ma-config.yaml with your AppDynamics controller properties.
- Create secret for controller access key.
kubectl -n appdynamics create secret generic appd-secret --from-literal=appd-key="<Your access key>"
- Edit deploy/ma-extension-config.yaml for the configuration of your extension.
- Lastly, deploy all the yaml file under deploy directory.
kubectl create -f deploy/
- Check
machine-agent-extension
pod is in Running status.kubectl get pods -n appdynamics
- Login to AppDynamics controller. Select Servers from top menu. Select Metric Browser from left menu. In Metric Browser , navigate tree to Application Infrastructure Performance|Root|Individual Nodes|machine-agent-extension|Custom Metrics. The metrics should be showing up under this tree node.
- Edit the deploy/ma-extension-config.yaml. This file is generated by the build.sh script.
- Delete the current deployment.
kubectl delete -f deploy/
- Re-create the deployment.
kubectl create -f deploy/
- Add the extension zip file to
extensions
directory - Run build.sh with the tag name of the extension docker image to create.
./build.sh -t <your registry>/<your repo>/appdymamics-extensions:latest
- A fresh deploy/ma-extension-config.yaml is created and the previous ma-extension-config.yaml is backed up with date suffix. Manually re-apply the previous configurations to the new file.
- Delete the current deployment.
kubectl delete -f deploy/
- Re-create the deployment.
kubectl create -f deploy/