[Monitoring Cloud Applications]

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. From your editor, open ServiceManifest.xml in each folder in the published application root.
  2. Add the following environment variables in each CodePackage:

    <CodePackage ...>
      <EntryPoint>
        ...
      </EntryPoint>
      <EnvironmentVariables>
        <EnvironmentVariable Name="COR_ENABLE_PROFILING" Value="1" />
        <EnvironmentVariable Name="COR_PROFILER" Value="{39AEABC1-56A5-405F-B8E7-C3668490DB4A}" />
        <EnvironmentVariable Name="COR_PROFILER_PATH" Value=AppDynamics/AppDynamics.Profiler_x64.dll" />
       </EnvironmentVariables>
    </CodePackage>

  3. Unpack AppDynamics.Agent.dllAppDynamics.Profiler_x64.dllAppDynamicsAgentLog.configAppDynamicsConfig.json from <nuget_package>\content\AppDynamics to the code package folder that contains the executable you want to run.

  4. Rename Make a copy of the of the AppDynamicsConfig.json  to file and rename it to <executable_name>.AppDynamicsConfig.json. For example <servicefabricapplicationname>.AppDynamicsConfig.json.

    Info

    When you rename the .json file to the application name, do not include .exe at the end of your application name.

  5. Right-click on the files in the AppDynamics sub-folder and select Copy Always.
  6. Make a copy of AppDynamicsConfig.json and rename it to:<executable_name>.AppDynamicsConfig.json, for example <servicefabricapplicationname>.AppDynamicsConfig.json. Put it into the root of your project folder.

  7. Update <executable_name>.AppDynamicsConfig.json with your configuration information:

  8. {
    "controller":
    {
    "host":"",
    "port":0,
    "account":"",
    "password":""
    },
    "application":
    {
    "name":""
    }
    }

...