brandonweeks / vsphere_exporter

A Prometheus exporter for vSphere
Apache License 2.0
26 stars 15 forks source link

Best Way to Only Query Certain Metric Types? #12

Open gmcquillan opened 7 years ago

gmcquillan commented 7 years ago

Right now it takes about 20 seconds for our VSphere server to respond with all the metrics -- the thing is we don't need 90% of the metrics reported.

I've been tinkering with making changes myself, but I'm pretty hobbled by not understanding the vsphere API very well.

Any suggestions? So far I've been looking pretty closely to the SampleByName function, but I'm kind of uncertain what my ManagedObject list should be made up of.

doppelgrau commented 6 years ago

As a quick hack, I implemented a small "ignore prefix" function and removed the always identical entity-label:

quickfix.txt