DataDog / dogstatsd-csharp-client

A DogStatsD client for C#/.NET
datadoghq.com
Other
94 stars 62 forks source link

How to get .NET metrics? #198

Open TheBlueSky opened 4 weeks ago

TheBlueSky commented 4 weeks ago

If this is not the right repository for this question, please guide me to the right one.

I followed the document here, which says that all I need to do is setting the environment variable DD_RUNTIME_METRICS_ENABLED to true. I did that, but I do not see any of these metrics for my application.

So, I asked some of my colleagues, who worked on an application which has such metrics in Datadog, about the way they configured the application, and they mentioned that I need these too:

CORECLR_ENABLE_PROFILING=1
CORECLR_PROFILER={846F5F1C-F9AE-4B07-969E-05C26BC060D8}
CORECLR_PROFILER_PATH=/opt/app/datadog/linux-x64/Datadog.Trace.ClrProfiler.Native.so

Is that true? If so, what is the reason that I do not find this information anywhere in the documentation? These seem, to me, related to profiling and tracing, more than metrics.