mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
re-implement prometheus metrics endpoint to be simpler (#13922)
data-structures were repeatedly initialized this causes GC pressure, instead re-use the collectors. Initialize collectors in `init()`, also make sure to honor the cache semantics for performance requirements. Avoid a global map and a global lock for metrics lookup instead let them all be lock-free unless the cache is being invalidated.
This commit is contained in:
1 parent
890f43ffa5
commit
818f0201fc
3 files changed
+776
-753
No files matched your search
+745
-752
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user