Merge pull request #58090 from nextcloud/backport/58052/stable33

[stable33] chore(openmetrics): export only "real" files count
This commit is contained in:
Andy Scherzinger 2026-02-05 12:23:14 +01:00 committed by GitHub
commit 9cea0183f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,6 +61,7 @@ class FilesByType extends Cached {
$qb = $this->connection->getQueryBuilder()->runAcrossAllShards();
$metrics = $qb->select('mimetype', $qb->func()->count('*', 'count'))
->from('filecache')
->where($qb->expr()->like('path', $qb->createNamedParameter('files/%')))
->groupBy('mimetype')
->executeQuery();