uselagoon / lagoon

Lagoon, the developer-focused application delivery platform
https://docs.lagoon.sh/
Apache License 2.0
566 stars 148 forks source link

Export projects' used storage and database size #754

Closed eskp closed 1 year ago

eskp commented 5 years ago

This is more of a start of a discussion issue for exposing used storage by a project/namespace and project's database size. This has came up during the need of monthly report creation for customer billing. Right now the process is fairly manual of extracting project storage from GraphQL and database size from Mysql (via Openshift). One idea is for Lagoon to write this data periodically to Elasticsearch and/or export these metrics on an endpoint in Prometheus format (this can be done by instrumenting Lagoon with a client library https://prometheus.io/docs/instrumenting/clientlibs/). The data will then be available historically and can be queried with Grafana, making a nice looking dashboards.

tobybellwood commented 1 year ago

duplicate of #602