Using AppDynamics with Red Hat OpenShift v3

By | | 2 min read

Tag ,


As customers and partners are making the transition of their applications from monoliths to microservices using Platform as a Service (PaaS) providers such as RedHat OpenShift v3, AppDynamics has made a significant investment in providing first-class integrations with such providers.

OpenShift v3 has been significantly re-architected from its predecessor OpenShift v2 where cartridges have been replaced with docker images and gears with docker containers. The complete set of differences can be found here.

AppDynamics integrates its agents with RedHat OpenShift v3 using the Source-to-Image (S2I) methodology. S2I is a tool for building reproducible Docker images. It produces ready-to-run images by injecting application source into a Docker image and assembling a new Docker image. The new image incorporates the base image (the builder) and built source and is ready to use with the docker run command. S2I supports incremental builds, which re-use previously downloaded dependencies, previously built artifacts, etc.


The overall workflow for using the AppDynamics with RedHat OpenShift v3 s shown below:

Step 1: is already provided for by RedHat.

To perform Steps 2 and 3, we have provided the S2I scripts in the following GitHub repository and instructions on how to build enhanced builder images for JBoss Wildfly and EAP servers.

Let’s explore this with an actual example and use the sample



–    Ensure OC is installed (

–    Ensure sti is installed (

–    Ensure you have a dockerhub account (

Step 2: Create an AppDynamics builder image

$ git clone

$ cd sti-wildfly

$ make build VERSION=eap6.4

Step 3: Create an Application image

$ s2i build  -e “APPDYNAMICS_APPLICATION_NAME=os3-ticketmonster,APPDYNAMICS_TIER_NAME=os3-ticketmonster-tier,APPDYNAMICS_ACCOUNT_NAME=customer1_xxxxxxxxxxxxxxxxxxf,APPDYNAMICS_ACCOUNT_ACCESS_KEY=xxxxxxxxxxxxxxxxxxxxx,,APPDYNAMICS_CONTROLLER_PORT=443,APPDYNAMICS_CONTROLLER_SSL_ENABLED=true” appdynamics/sti-wildfly-eap64-centos7:latest pranta/appd-eap-ticketmonster

$ docker tag openshift-ticket-monster pranta/openshift-ticket-monster:latest

$ docker push pranta/openshift-ticket-monster

Step 4: Deploy the Application into OpenShift

$ oc login

$ oc new-project wildfly

$ oc project wildfly

$ oc new-app –docker-image=pranta/appd-eap-ticketmonster:latest –name=ticketmonster-demo

Now you should be able to login to the controller and see the ticketmonster application on the application dashboard:

See a live demo of Red Hat OpenShift v3 with AppDynamics from AppSphere ’15 below.

If you’re already using RedHat OpenShift v3 but are new to AppDynamics, here’s where you can sign-up for a free trial:

Pranta Das

Pranta joined AppDynamics in 2011 as an Architect and has over 25 years of experience in the software industry. He was responsible for adding initial support for ESB (Enterprise Service Bus) and SEDA (Staged Event Driven Architecture) containers such as Mule ESB and Apache Camel in the AppDynamics Java Application Agent. He was also responsible for adding key Error Monitoring features to the AppDynamics 3.3 release. Subsequently, his primary focus has been working on integrations with various software partners including alerting extensions with Splunk, ServiceNow, Boundary & BMC ProactiveNet, connectors to a variety of Cloud Infrastructures such as Windows Azure, OpenStack (Rackspace Public & Private Cloud, Nova & HP Cloud Services), Apache CloudStack, VMware vSphere and vCloud Director as well as monitoring extensions to get data from IBM z/OS mainframes (including metrics from subsystems such as DB2 and CICS). He also led the AppDynamics eXchange Platform effort in promoting the development of AppDynamics eXtensions using the various AppDynamics APIs and SDKs and was responsible for making them open-source on GitHub. He also conceptualized the idea of building the world's first C/C++ Dynamic Agent for APM, that required no code changes. Prior to AppDynamics, Pranta held senior technical roles at Sybase, CrossWorlds Software, IBM, Cisco Systems & BlackBerry (nee: Research In Motion).