poxet / Influx-Capacitor

Influx-capacitor collects metrics from windows machines using Performance Counters. Data is sent to influxDB to be viewable by grafana.
http://influx-capacitor.com
MIT License
44 stars 13 forks source link

Allow mutivalued InstanceName property for a Counter #48

Closed kirillkovalenko closed 8 years ago

kirillkovalenko commented 8 years ago

Use case: I'm trying to peek various memory related counters for all the Microsoft Exchange processes. The ability to use wild-cards helps a lot, e.g. I use <InstanceName>*Exchange*</InstanceName> to grab all the processes that have Exchange in their names. But this does not cover all the exchange processes, because there is store, msftefd, msftesql, etc. For each of those, apparently I'll have to copy / paste the same Counter section. Instead, it would be nice to use several InstanceName sections within a single Counter section.

tbolon commented 8 years ago

Could this be related to #41 ? With Filters, you could use a regular expression pattern similar to "Exchange|store|msftefd|..." which will include all the instances you mentionned ?

kirillkovalenko commented 8 years ago

I did some code for this. Please take a look and let me know what you think.

poxet commented 8 years ago

Great work! Three issues taken care of. Thanks!!!