Help APM APM for .NET Install .NET Core agent in Azure Service fabric

Install .NET Core agent in Azure Service Fabric

You can monitor .NET Core applications hosted in Azure Service Fabric using the Site24x7 APM Insight .NET Core agent. Monitoring is supported in version 4.5.1 and up of the .NET Core agent.

Install the agent using the steps below:

  1. Add the Nuget package Site24x7.APMInsight.Agent to your Azure Service Fabric .NET Core project using the Package Manager Console in Visual Studio.

    PM> Install-Package Site24x7.APMInsight.Agent

    Install .NET Core agent in Azure Service Fabric

  2. Set the environment variables in your application's ServiceManifest.xml file, as shown below:

    <CodePackage>
    ... <EntryPoint>
    <ExeHost>
    ...
    <!-- It is mandatory for the WorkingFolder to be set as CodePackage. -->
    <!-- This is because the environment variable to be persisted on the working folder to load the agent. -->

    <WorkingFolder>CodePackage</WorkingFolder>
    ...
    </ExeHost>
    </EntryPoint>
    ...
    <EnvironmentVariables>
    ...
    <EnvironmentVariable Name="CORECLR_ENABLE_PROFILING" Value="1"/>
    <EnvironmentVariable Name="CORECLR_PROFILER" Value="{989D151B-3F31-482E-926F-2E95D274BD36}"/>
    <EnvironmentVariable Name="CORECLR_PROFILER_PATH_64" Value=".\site24x7\core\x64\ClrProfilerAgent.dll"/>
    <EnvironmentVariable Name="CORECLR_PROFILER_PATH_32" Value=".\site24x7\core\x64\ClrProfilerAgent.dll"/>
    <EnvironmentVariable Name="CORECLR_SITE24X7_HOME" Value=".\site24x7\core"/>
    <EnvironmentVariable Name="DOTNET_ADDITIONAL_DEPS" Value=".\site24x7\core\additionalDeps"/>
    <EnvironmentVariable Name="DOTNET_SHARED_STORE" Value=".\site24x7\core\store"/>
    <EnvironmentVariable Name="S247_LICENSE_KEY" Value="xxxxxxxxxxxxxxxxxxxxxxxxx"/>
    ...
    </EnvironmentVariables>
    ...
    </CodePackage>
  3. Replace the license S247_LICENSE_KEY value with the Site24x7 license key copied from the portal.

    Site24x7 license key

  4. Publish the application in Azure Service Fabric.
  5. Perform transactions to start monitoring.

To view data, log in to your Site24x7 account, select APM Insight, and choose your application.

Note:

    1. Ensure that the agent files are within the Site24x7 folder in the root of the application to be published to Azure Service Fabric.
    2. Ensure that the environment variables are set correctly.
Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.

Help APM APM for .NET Install .NET Core agent in Azure Service fabric