Public Repository

Last pushed: 8 months ago
Short Description
Konakart eCommerce with the AppDynamics Java agent and Browser Real User Monitoring
Full Description

This short howto explains how to start Konakart and configure the AppDynamics Java agent to talk to your AppDynamics controller.

Agent configuration

Create a file /tmp/envfile with the relevant environment variables:

APPDYNAMICS_CONTROLLER_HOST_NAME=your_controller_url
APPDYNAMICS_CONTROLLER_PORT=your_controller_port
APPDYNAMICS_CONTROLLER_SSL_ENABLED=false
APPDYNAMICS_AGENT_APPLICATION_NAME=Konakart
APPDYNAMICS_AGENT_TIER_NAME=Web
APPDYNAMICS_AGENT_NODE_NAME=node1
APPDYNAMICS_AGENT_ACCOUNT_NAME=your_appdynamics_agent_name
APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY=your_appdynamics_access_key

(see https://docs.appdynamics.com/display/PRO42/Use+Environment+Variables+for+Java+Agent+Settings for a full list of relevant variables)

Starting Konakart in docker

docker run --env-file /tmp/envfile -P appdynamics/konakart

Accessing Konakart

At this stage, Konakart should be running within a docker container on port 8780 and mapped to a local port on the docker host. Use docker ps to find out which host port it is:

The resulting output should look like this:

CONTAINER ID        IMAGE                  COMMAND                  CREATED             STATUS              PORTS                                                                       NAMES
b80dc9f91b6f        appdynamics/konakart   "/bin/sh -c 'service "   4 minutes ago       Up 4 minutes        0.0.0.0:32785->5432/tcp, 0.0.0.0:32784->8780/tcp, 0.0.0.0:32783->8783/tcp   small_joliot
15:49:21 ~ (master) $ docker port appdynamics/konakart

In this example, the relevant host port is 32784. Load http://your_dockerhost_ip:32784 to access Konakart in your browser. If you are running this container on your laptop, the your dockerhost ip is localhost.

Exposing Konakart to the public Internet

If you need to expose Konakart to the public internet, you can use a tool like ngrok to forward the local port on your docker host to the outside world

Configuring Browser Real User Monitoring

By enabling Browser Real User Monitoring from AppDynamics you will get an end to end view of the performance of the Konakart applications, from the frontend to the backend.

Browser Real User Monitoring can be easily enabled by following the instructions on Automatic Injection.

Docker Pull Command
Owner
appdynamics

Comments (0)