Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically convert WMI metrics to prometheus #12

Closed
martinlindhe opened this issue Aug 28, 2016 · 2 comments · Fixed by #28
Closed

Automatically convert WMI metrics to prometheus #12

martinlindhe opened this issue Aug 28, 2016 · 2 comments · Fixed by #28

Comments

@martinlindhe
Copy link
Collaborator

@brian-brazil wrote in #5

I'm still perusing the docs, but I have a crazy idea.

It looks like it's possible to get to CounterType with WMI (though we'll need to use a different WMI library). Given that and presuming that metric naming is relatively consistent we may be able to fully automate the transformation of metric names and the user would only have to provide a WMI class name. We'll likely still need some hardcoded rules to fix e.g. bytes->megabytes.

I also note we cannot completely rely on documentation alone for CounterTypes - several of the ones in this PR changed in Windows 2000 (which means this won't quite work on XP).

The counter types is what changed between versions.

What I'd see happening for IIS/SQL is that you'd run the WMI exporter but with different flags just pulling in IIS/SQL metrics.

This was referenced Aug 28, 2016
@martinlindhe martinlindhe changed the title Automatically convert WMI metriocs to prometheus Automatically convert WMI metrics to prometheus Aug 28, 2016
@martinlindhe
Copy link
Collaborator Author

@brian-brazil wrote

What I'd see happening for IIS/SQL is that you'd run the WMI exporter but with different flags just pulling in IIS/SQL metrics.

Would this satisfy the above wish? #17
It now works like the node_exporter, taking a --collectors.enabled flag

@brian-brazil
Copy link

#17 still requires code to be written per WMI class. What I'm proposing is that you'd only have to pass in the WMI class, and everything else (as much as practical) is automatic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants