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 cache to exporter #66

Closed inkel closed 7 months ago

inkel commented 7 months ago

This PR adds a cache system to the exporter to prevent timeouts when calling *exporter.Collect. Each given provider will poll in its own goroutine and write the results to the cache; then in the *exporter.Collect method we read the values from the cache.

inkel commented 7 months ago

This probably needs a bit more of work, but I'll work on them while your PR(s) get merged, @logyball 😸

logyball commented 7 months ago

This probably needs a bit more of work, but I'll work on them while your PR(s) get merged, @logyball 😸

merged :D