【发布时间】:2013-02-28 11:17:40
【问题描述】:
我知道 Requests\Sec、Requests Total 等计数器是免费提供的(只需设置它们以进行收集和传输)。有谁知道任何可用的计数器,这些计数器通过 http 请求 url 提供一些基于数据的拆分?那么请求/秒对服务上的特定 url 呢?只是想确保在我开始编写每个计数器的自定义之前没有任何东西。
【问题讨论】:
标签: azure azure-web-roles azure-diagnostics
我知道 Requests\Sec、Requests Total 等计数器是免费提供的(只需设置它们以进行收集和传输)。有谁知道任何可用的计数器,这些计数器通过 http 请求 url 提供一些基于数据的拆分?那么请求/秒对服务上的特定 url 呢?只是想确保在我开始编写每个计数器的自定义之前没有任何东西。
【问题讨论】:
标签: azure azure-web-roles azure-diagnostics
您可以继续编写自定义代码:)
这是http://blogs.msdn.com/b/avkashchauhan/archive/2011/04/01/list-of-performance-counters-for-windows-azure-web-roles.aspx 提供的性能计数器列表:
// .NET 3.5 计数器
@"\ASP.NET Apps v2.0.50727(Total)\Requests Total"
@"\ASP.NET Apps v2.0.50727(Total)\Requests/Sec"
@"\ASP.NET v2.0.50727\Requests Queued"
@"\ASP.NET v2.0.50727\Requests Rejected"
@"\ASP.NET v2.0.50727\请求执行时间"
@"\ASP.NET v2.0.50727\Requests Queued"
// 最新的 .NET 计数器 (4.0)
@"\ASP.NET Applications(Total)\Requests Total"
@"\ASP.NET Applications(Total)\Requests/Sec"
@"\ASP.NET\Requests Queued"
@"\ASP.NET\Requests 被拒绝"
@"\ASP.NET\请求执行时间"
@"\ASP.NET\Requests Disconnected"
@"\ASP.NET v4.0.30319\Requests Current"
@"\ASP.NET v4.0.30319\请求等待时间"
@"\ASP.NET v4.0.30319\Requests Queued"
@"\ASP.NET v4.0.30319\Requests Rejected"
@"\Processor(_Total)\% 处理器时间"
@"\Memory\Available MBytes
@"\Memory\Committed Bytes"
@"\TCPv4\Connections 已建立"
@"\TCPv4\Segments Sent/sec"
@""\TCPv4\连接失败"
@""\TCPv4\Connections 重置"
@"\Network Interface(Microsoft 虚拟机总线网络适配器 _2)\Bytes Received/sec"
@"\Network Interface(Microsoft 虚拟机总线网络适配器 _2)\字节发送/秒"
@"\Network Interface(Microsoft 虚拟机总线网络适配器 _2)\字节总数/秒"
@"\Network Interface()\Bytes Received/sec"@"\Network 接口()\Bytes Sent/sec"
@".NET CLR 内存(全局)\% Time in GC"
【讨论】:
您需要自己编写。我为使用 MVC 框架的客户提供了帮助。这非常简单,因为唯一需要检测的代码是在所需控制器的 OnActionExecuting 方法中。
请务必通过如下所述的启动脚本来检测自定义性能计数器定义的创建(步骤 #2): http://www.windowsazure.com/en-us/develop/net/common-tasks/performance-profiling/
【讨论】: