canonical / prometheus-openstack-exporter

OpenStack exporter for the prometheus monitoring system
GNU General Public License v3.0
128 stars 113 forks source link

add support for exporting per-account swift usage #60

Closed vmpjdc closed 5 years ago

vmpjdc commented 5 years ago

This branch adds SwiftAccountUsage and its configuration variables and wires it all up.

It's been running happily in its various iterations on one of our production Swift clusters for about week or so.

I've also added an enabled_collectors directive. It is most straightforward to run SwiftAccountUsage on a swift-proxy node, which is far from the best place to run a whole-cloud exporter. I've left in place the legacy methods for disabling the swift and cinder collectors, but these should probably go away eventually.

I've started writing some tests for this new code, which will be the first tests for this entire project, and will submit them in a followup.