[英]Custom Performance Counters in Windows Azure Web Sites
I have a Mvc Web Site that I'm deploying via MSDeploy to an Azure Web Site . 我有一个通过MSDeploy部署到Azure 网站的Mvc 网站 。 My web site has a custom Performance Counter .
我的网站上有一个自定义的性能计数器 。
When I deploy the code and run the site from Azure I get an exception: 当我部署代码并从Azure运行网站时,出现异常:
System.UnauthorizedAccessException: Access to the registry key 'Global' is denied.
System.UnauthorizedAccessException:对注册表项“ Global”的访问被拒绝。
When calling System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
. 调用
System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName)
。
This makes sense as this call requires elevated permissions (must be a member of the Performance Monitor Users group). 这很有意义,因为此调用需要提升的权限(必须是Performance Monitor Users组的成员)。
How can I configure my Azure Web Site to correctly create and use Performance Counters? 如何配置Azure网站以正确创建和使用性能计数器?
当前,Azure网站不支持自定义性能计数器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.