diff --git a/pkg/storage/imagestore/imagestore.go b/pkg/storage/imagestore/imagestore.go index 64f0f5d6d..5eecde06b 100644 --- a/pkg/storage/imagestore/imagestore.go +++ b/pkg/storage/imagestore/imagestore.go @@ -1621,6 +1621,11 @@ func (is *ImageStore) CleanupRepo(repo string, blobs []godigest.Digest, removeRe } } + // finally update metrics + if is.storeDriver.Name() == storageConstants.LocalStorageDriverName { + monitoring.SetStorageUsage(is.metrics, is.rootDir, repo) + } + return count, nil }