mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
fix(metrics): update storage metrics on gc (#2698)
Signed-off-by: Eusebiu Petu <petu.eusebiu@gmail.com>
This commit is contained in:
parent
d42ac4cd0d
commit
cfbeeff7bb
1 changed files with 5 additions and 0 deletions
|
@ -1634,6 +1634,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue