Expose the container registry database-related metrics in the Grafana dashboards
Related to gitlab-org&5392 (closed).
As we approach the deployment of the new registry with a metadata database and online garbage collection to pre-production, we'll need to extend the existing Grafana dashboards for the registry with database-related metrics (application metrics, not the database cluster metrics).
The container registry, when the metadata database is enabled, emits the following sets of Prometheus metrics:
- Connection pool statistics: Count of open, idle, in use, etc. connections (
sql.Stats
); - Statements duration: The duration of every single statement executed against the database is recorded using a histogram;
- Online GC statistics: Statistics about online GC, such as the number of processed tasks, recovered space, etc.
The ~"group::package" team will try to self-serve these changes but we may need some guidance.