Missing Metric Data (gargbage collection in some cases)

I am running Elastic-Stack 7.7.0 with an dotnet APM-Client.

On normal dev workstations we have the all metric-Data about GarbageCollection via the APM-Client. If we deploy this on our Server and run the code with IIS there is no Garbage-Collection Metric.
It's an ASP.net core 2.1 Project which runs under .net Full Framework with Ef6.

The configuration of the local dev instance and the server Version is almost the same.

Hi @FlorianBeck, welcome on discuss :clap:

On .NET Full Framework the agent uses ETW through TraceEvent to collect GC metrics. One guess I have is that maybe from some reason the agent is unable to create an ETW session in that environment. If this happens the agent prints an error - if you collect agent logs then some error should show up there, which would tell us more.

Maybe temporarily switching the user of the app pool, or listing all ETW sessions would be also good steps - the session which is started by the agent should be called EtwSessionForCLRElasticApm_[SomeGuid].

Thank you. Indeed the iis User was not in the relevant group to collect these metrics. Would be awesome to give some Information about this on the specific metrics Page.

Also a little bit strange, that at some point, there was an error of less System ressources and no gc collected afterwards. Restart of iis, and some Performance Services did nothing. There was enough RAM and disc space.