microsoft / ApplicationInsights-dotnet-server

Microsoft Application Insights for .NET Web Applications
https://azure.microsoft.com/services/application-insights/
133 stars 67 forks source link

Support Process CPU and Memory from Linux #1189

Closed cijothomas closed 5 years ago

cijothomas commented 5 years ago

Overall story: https://github.com/microsoft/ApplicationInsights-dotnet-server/issues/1188

The goal is to leverage the following to report process cpu, process memory usage. https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.totalprocessortime https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.process.privatememorysize64

These 2 counters are what powers LiveMetric charts.(which appear blank in Linux now) image