Welcome to MSDN Blogs Sign in | Join | Help

Enabling Performance Counters

Performance counters are a mechanism for monitoring services that you can get without changing any code, but you have to ask for them. The values of performance counters give you real-time monitoring information about the operational characteristics of your services. You can control performance counters through configuration.

<system.serviceModel>
<diagnostics performanceCounters="All" />
</system.serviceModel>

The possible settings for the scope of service counters are Off, ServiceOnly, and All. For the actual performance counters, the scopes are finer grained, with different naming schemes depending on the type of data that the performance counter monitors.

  • Service scope performance counters look like Service@Address
  • Endpoint scope performance counters look like Service.Contract@Address
  • Operation scope performance counters look like Service.Contract.Operation@Address

The address is based on the external address of the object being monitored, with some modifications. The addresses are normalized by capitalizing them, replacing certain characters (the forward path separator is replaced by a pipe symbol, for example), and then mangling the address so that it is both short and unique. Addresses that are already short remain essentially readable while addresses that are more than a few dozen characters come out considerably worse for wear.

Next time: Svcutil Tips

Published Wednesday, July 18, 2007 5:00 AM by Nicholas Allen
Filed under: ,

Comments

Wednesday, July 18, 2007 10:11 AM by Jason Haley

# Interesting Finds: July 18, 2007

Wednesday, July 18, 2007 12:05 PM by Nicholas Allen's Indigo Blog

# Local Settings and Policy

You have talked in the past about how a service has both local settings and settings that are shared

Saturday, July 21, 2007 1:48 PM by Miguel Campos Blog

# Some interesting links

Just found some useful information: - Extensions to EntLib 3.1 done as as community effort: http://blogs.msdn.com/tomholl/archive/2007/07/17/first-release-of-entlib-contrib.aspx

Wednesday, July 25, 2007 10:46 AM by Irwin

# re: Enabling Performance Counters

Hey Nick,

U need to edit that, it should be

'<diagnostics performanceCounters="All" />'.

When i used 'performanceCountersEnabled', WCF kicked up a fuss.

Wednesday, July 25, 2007 2:51 PM by Nicholas Allen

# re: Enabling Performance Counters

You're correct.  Adding Enabled is a common typo because that's how the WMI setting is named.

New Comments to this post are disabled
 
Page view tracker