-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All perf counters stop being collected when any of faulty counters are specified to collect on Azure WebApps #1686
Comments
This is likely due to WebAppPerformanceCollector.RefreshCounters throwing an exception when PerformanceCollectorModule.EnsurePerformanceCountersRegistered is called. Since it's not caught on the way, we end up not updating Is it possible to catch the exception in |
Hi, your explanation makes sense. |
@tukaef Thanks for reporting and investigating the issue. Please submit a PR if you have time. |
This is a consequence of #1685. When any of the counters in question is specified, the collector stops collecting the other counters after 5-6 successful iterations.
Repro Steps
\.NET CLR Memory(??APP_CLR_PROC??)\# Total committed Bytes
\ASP.NET Applications(??APP_W3SVC_PROC??)\Request Bytes In Total
\ASP.NET Applications(??APP_W3SVC_PROC??)\Request Bytes Out Total
Actual Behavior
After deploy, all counters apart from the faulty ones are collected and sent only 5-6 times (a few minutes). After that, nothing is collected (nor sent).
Expected Behavior
Non-faulty counters being collected successfully during the app lifetime.
Version Info
SDK Version : 2.12.1
.NET Version : 4.7
Hosting Info : Azure WebApps
The text was updated successfully, but these errors were encountered: