Giter Club home page Giter Club logo

cloudfoundry-apps's Introduction

Application Instrumentation using Appdynamics

Pre-Requisites.

  • CloudFoundry Environment with Appdynamics Tile installed and configured with controller(s) information.
  • Sample Application.

To Use

  • Make sure appdynamics service is available by doing cf marketplace command
pavan.krishna@OSXLTPKrishna:~/pcf-dash-generator$ cf marketplace
Getting services from marketplace in org appdynamics-org / space dev as admin...
OK

service                       plans                          description
app-autoscaler                standard                       Scales bound applications in response to load
appdynamics                   443Controller, 450Controller   Appdynamics Monitoring Platform
  • Create a service instance of appdynamics plan (controller configuration) that we want to expose to the application we are pushing. cf create-service appdynamics <plan/controller_config> <name_of_the_application>
pavan.krishna@OSXLTPKrishna:~/pcf-dash-generator$ cf create-service appdynamics 443Controller appd443
Creating service instance appd443 in org appdynamics-org / space dev as admin...
OK

Note that if we already have an instance for the plan of our choice, we donot have to create another one, we can reuse the same instance across multiple applications.

pavan.krishna@OSXLTPKrishna:~/pcf-dash-generator$ cf services
Getting services in org appdynamics-org / space dev as admin...

name      service       plan            bound apps              last operation
appd443   appdynamics   443Controller                          create succeeded
  • Edit manifest.yml to include the service instance we created so that the application binds to the instance. Just add
  services:
    - appd443

so manifest.yml will look like

---
applications:
- name: spring-music
  memory: 1G
  random-route: true
  path: build/libs/spring-music-1-1.0.jar
  services:
    - appd443
  • Push the application using cf push
pavan.krishna@OSXLTPKrishna:~/pcf-dash-generator$ cf push 

Once it is pushed, you can generate the traffic and you will notice the application getting instrumented on Appdynamics Controller.

cloudfoundry-apps's People

Contributors

jeffaholmes avatar kyleweaver avatar pavankrish123 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.