Home All Groups Group Topic Archive Search About

Restrictions on perf counter instance name

Author
13 Dec 2006 9:37 AM
jonathan
Is there a restriction on the instance name of a performance counter?

When I try and add a number of URL's to a perfomance counter using C#
no exceptions are thrown.  However when I look in PerMon the string is
split between the instance name and parent fields?

For example:

counter  = new PerformanceCounter("Web App", "Url response time",
"http://10.0.0.1/myfolder/", false);

I've tried using escaping the URL but this doesn't seem to make a
difference.

Any help would be greatly appreciated!

Many thanks

AddThis Social Bookmark Button