No way to add custom performance counters to existing custom categories...?
According to http://www.devcity.net/net/article.aspx?alias=perf_counters, “You cannot create new counters within existing custom categories. If you need to add counters to categories that already exist, the only way you can do so is to delete the category and recreate it with all of its contents, including the new counters you want to add.”
This is nasty, as it prevents lazy instantiation of performance counters. During development, when new counters are being frequently added, the application has to delete any custom categories on startup and recreate all the counters. During production, the application could usually get away with reusing the counters, but that leads to complex verification scenarios. The only safe way to do this appears to be deleting and recreating the entire set of counters on startup.
Anyone found a workaround?