Skip to content

bfrevel/appd-demo-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppDynamics OpenTelemetry Java Demo

1. Demo Application Architecture

/=-----\
|      |
| load |:-------------------------+
|      |                          |
\---+--/                          |
    :                             |
    |                             |
    | HTTP                        |
    |                             |
    v                             v
+---------------+              +------------------+           +-------------------+
|               |     HTTP     |                  |   JDBC    | {s}               |
|               +------------->| customer-service +---------->| customer-postgres |
| order-service |              |                  |           |                   |
|               +--+           +------------------+           +-------------------+
|               |  |
+---------------+  |
                   |
                   |
                   |           +------------------+            +-------------------+
                   |   HTTP    |                  |    JDBC    | {s}               |
                   +---------->| product-service  +----------->| product-postgres  |
                               |                  |            |                   |
                               +------------------+            +-------------------+

2. Java Applications

2.1. Build Application

Gradle Build
./gradlew -p services clean bootJar

2.2. Download AppDynamics Java Agent

Download the agent and unzip the agent to libs/appd-java-agent

2.3. Prepare Environment

Create postgres databases for customer-service and product-service
# start customer-postgres
docker run \
  -d \
  --name customer-postgres \
  -e POSTGRES_PASSWORD=postgrespw \
  -p 5412:5432 \
  postgres:14.4-alpine

# start product-postgres
docker run \
  -d \
  --name product-postgres \
  -e POSTGRES_PASSWORD=postgrespw \
  -p 5422:5432 \
  postgres:14.4-alpine

# start rabbitmq
docker run \
  -d \
  --name rabbitmq \
  -p 5672:5672 \
  rabbitmq:3.10.6-alpine
Configure AppDynamics Environment
export APPDYNAMICS_CONTROLLER_HOST_NAME={{controller-host-name}}
export APPDYNAMICS_CONTROLLER_PORT={{controller-host-port}}
export APPDYNAMICS_CONTROLLER_SSL_ENABLED={{controller-ssl-enabled}}
export APPDYNAMICS_AGENT_ACCOUNT_NAME={{agent-account-name}}
export APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY={{agent-account-access-key}}
export APPDYNAMICS_AGENT_APPLICATION_NAME=appd-demo-java
export APPDYNAMICS_AGENT_LOCATION=${PWD}/lib/appd-java-agent/javaagent.jar

2.4. Start and Stop Java Applications

./start.sh

./stop.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published