Gitlab Community Edition Instance

Commit e73ad4c4 authored by mhellka's avatar mhellka
Browse files

Formatting

parent 3ac0b15d
Pipeline #115109 passed with stages
in 9 minutes and 57 seconds
......@@ -216,18 +216,18 @@ public class VaultRegistry implements RuntimeListener {
}
private void addMetrics(VaultConfigImpl vci) {
if(vci.pool instanceof NioPool) {
if (vci.pool instanceof NioPool) {
runtime.lookup(MetricRegistry.class).ifPresent(mr -> {
String name = "pool."+vci.getName();
String name = "pool." + vci.getName();
NioPool pool = (NioPool) vci.pool;
PoolStats poolStats = pool.getStats();
mr.gauge(name+".cache.hit", () -> () -> poolStats.cacheHitCount());
mr.gauge(name+".cache.miss", () -> () -> poolStats.cacheMissCount());
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());
mr.gauge(name + ".disk.total", () -> () -> poolStats.getDiskTotal());
mr.gauge(name + ".disk.free", () -> () -> poolStats.getDiskFree());
});
}
......
Markdown is supported
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