AppDynamics integrates with Pivotal Cloud Foundry (PCF). You can easily deploy AppDynamics-monitored .NET applications on the Pivotal platform.

On this page:

Your Rating:
Results:
PatheticBadOKGoodOutstanding!
4 rates

 

Deploying a .NET Application in Pivotal

The following steps outline the workflow:

Before You Start

  1. Create a Pivotal Web Services account OR set up Pivotal Cloud Foundry PaaS. 
  2. Install the cf command line interface. Go to the Pivotal Documentation and search for "install cf cli".

Log In to Pivotal

  1. Open a CLI or command-prompt window.

  2. Log in to the PCF apps manager using the following command:

cf login -a <apps-manager-link> -u <username> -p <password>

Download and Build the Buildpack

Download a fork of Cloud Foundry HWC buildpack version 2.3.14 for deploying .NET full framework applications with AppDynamics monitoring.

  1. Go to: https://github.com/Appdynamics/hwc-buildpack, then click Download.
  2. Follow the instructions under Building the Buildpack.

Push the Application

  1. cd to the root directory of the .NET application you want to deploy.
  2. Push the application and the Cloud Foundry .NET buildpack:

    cf push <.net-app-name-in-pivotal> -b <buildpack_name> -s windows2012R2

 

The buildpack name is the name of the buildpack you created under Building the Buildpack.

 

Bind the Application with an AppDynamics Service Instance

Set Up the Service Plan

  1. Log in to the Pivotal Ops Manager.
  2. If the AppDynamics Service Broker tile does not appear in the Installation Dashboard, click Import a Product in the left-side menu and import the AppDynamics tile.
  3. Double-click on the AppDynamics tile in the Installation Dashboard.
  4. In the Settings tab, click AppDynamics Controller Configuration (left menu). Then click Add (right side of the page).
  5. Enter the following Service Plan options. All these fields are required.
    1. Controller configuration name
    2. Controller configuration description
    3. Account Name – The account name used to access the Controller 
    4. Account Access Key – In the Controller, click the gear icon  and choose License > Account > Access Key.

       

      If the Account Access Key includes a one or more '$' characters, append a second '$' to every '$' included in the key string and surround the entire string with single quotes(').

    5. Controller Host
    6. Controller Port
  6. Click Save to save the changes and return to the Installation Dashboard.
  7. In the Installation Dashboard, click Apply Changes (right pane) and wait for all the changes to get applied. 

Bind the Service Plan to the Application

  1. Log in to the Pivotal Apps Manager.
  2. Click Marketplace (left menu) and click AppDynamics under Services.
  3. Under Service Plans, select the service plan that you set up in the Ops Manager. Then click SELECT THIS PLAN.
  4. In the Instance Configuration area, select the space where you app resides under Add to Space.
  5. Under Bind To App, select the name of your app, then click Create.
  6. Restart the application.

Verify the Buildpack was Deployed

You can verify that the buildpack has been deployed successfully by viewing the logs.

Enter cf logs <app_name> --recent

Verify the Application in the Controller

  1. Generate load on the application by refreshing it a few times.
  2. Log in to the Controller web UI, navigate to the Metric Browser, and verify that the application is getting detected and monitored.
  • No labels