Gitlab Community Edition Instance

Commit 5a5426a5 authored by mhellka's avatar mhellka
Browse files

Added another metric (pool.name.cache.size)

parent 3a8e39ee
Pipeline #115018 passed with stages
in 9 minutes and 20 seconds
......@@ -375,6 +375,10 @@ public class NioPool implements StoragePool {
return usable;
}
public long cacheSize() {
return indexCache.estimatedSize();
}
public long cacheHitCount() {
return indexCache.stats().hitCount();
}
......
......@@ -225,6 +225,7 @@ public class VaultRegistry implements RuntimeListener {
mr.gauge(name+".cache.hit", () -> () -> poolStats.cacheHitCount());
mr.gauge(name+".cache.miss", () -> () -> poolStats.cacheMissCount());
mr.gauge(name + ".cache.size", () -> () -> poolStats.cacheSize());
mr.gauge(name+".disk.total", () -> () -> poolStats.getDiskTotal());
mr.gauge(name+".disk.free", () -> () -> poolStats.getDiskFree());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment