.NET Core in Linux Docker

You can integrate the Atatus .NET agent into your Docker image, enabling you to monitor your application's performance. This setup is compatible with Amazon ECS as well.

  1. Atatus Profiler Agent supports .NET Core 5 and above.

  2. Add below configuration to your Dockerfile.

    FROM mcr.microsoft.com/dotnet/sdk:7.0
    
    # Your code here
    
    RUN apt update && apt install unzip wget curl -y
    RUN mkdir -p /atatus \
      && cd /atatus \
      && wget https://atatus-artifacts.s3.amazonaws.com/atatus-dotnet/downloads/atatus-dotnet-agent-profiler-2.0.1-linux-x64.zip \
      && unzip atatus-dotnet-agent-profiler-2.0.1-linux-x64.zip
    
    ENV CORECLR_ENABLE_PROFILING=1
    ENV CORECLR_PROFILER={A6C28362-6F75-472A-B36C-50C1644DA40A}
    ENV CORECLR_PROFILER_PATH="/atatus/libatatus_profiler.so"
    ENV ATATUS_PROFILER_HOME="/atatus"
    ENV ATATUS_PROFILER_INTEGRATIONS="/atatus/integrations.yml"
    ENV ATATUS_LICENSE_KEY="<YOUR_LICENSE_KEY>"
    ENV ATATUS_APP_NAME="<YOUR_APP_NAME>"
    
    # For setting up API Analytics
    ENV ATATUS_ANALYTICS=true
    ENV ATATUS_CAPTURE_BODY=all
    
    
  3. Build a image and run your applications.