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

Ability to track arbitrary things as counters #53

Open tbolon opened 8 years ago

tbolon commented 8 years ago

I have an internal requirement that could be adressed: we are using azure sql database, and performance counters for the database are only available through the sys.dm_od_performance_counters view.

My idea is to add an abstraction around performance counters to allow arbitrary providers to provide counters values.

It is similar to issues #28 and #46, but I do not want (for now) to expose them as performance counters for the system. It seems to be a lot easier to just provide IPerformanceCounterInfos instead of registering in the system new performance counters (it requires some admin rights and configuration to works).

This work will requires some steps:

I will track this work in my own "abstract-perfcounterbusiness" branch for now.

I will try to fix the issues #28 and #46 with this work. The plugin feature could requires some big changes in the code (copy/paste plugin assemblies, dynamic registration, dependency injection, etc.)

tbolon commented 8 years ago

I have created a WIP branch and PR to track this issue, please do not merge for now.

poxet commented 8 years ago

Cool! Tell me when it is done.

tbolon commented 8 years ago

Just submitted PR #58, which add a new custom provider system. I now plan to add a custom sqldmvprovider, which will use this new system.

poxet commented 8 years ago

That sounds great! I will se if I have some time to use that too.