Performance Counters agony

Discussion created by RJKSolutions on May 17, 2013
Latest reply on May 22, 2013 by RJKSolutions

I'm running data through StreamInsight using AF SDK in a pseudo adapter. I wanted to use the PI Interface for Performance Monitor to capture the Performance Counters that are automatically generated by StreamInsight for the Server, Queries and Input Adapters. 


After reading Microsoft's definition for the Performance Counters (http://technet.microsoft.com/en-us/library/hh290543(v=sql.105).aspx?ppud=4) I figured I could still stream the Counters in to a PI Server to monitor. However, it seems that the unique number is not a "one time unique number" based on the machine it is running on (with some index for each instance) but a new unique number generated each time an instance of StreamInsight is created. This means each time StreamInsight is stopped/started then all the PI Interface for Performance Monitor tags created become orphaned.


Anyone come up with any clever ways to keep the tags connected? I may have to end up having the hosting application start the StreamInsight instance, find the Performance Counter prefix and modify all tags before running...but that is far from ideal.