Major rework on PerfCounter plugin to get ready for dynamic ephemeral instances.