grafana / unused

CLI tool, Prometheus exporter, and Go module to list your unused disks in all cloud providers
Apache License 2.0
51 stars 1 forks source link

Add Prometheus exporter #2

Closed inkel closed 2 years ago

inkel commented 2 years ago

This PR adds a simple Prometheus exporter to list some basic metrics:

All metrics have the labels provider with the provider's name and metadata with some simple metadata for each provider. Provider's metadata should always be small enough that it won't transform into a label cardinality explosion.

Information about each unused disk is currently logged to stdout given that it contains more changing information that could lead to cardinality explosion. We might revise this in the future, but having the information as a log stream is useful if these are forwarded to Loki.