More stats
This commit is contained in:
parent
f9fb679f9b
commit
29210cca80
@ -128,7 +128,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "no")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "disabled")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueNotFoundWithBloomBufferSize = DistributionSummary
|
this.readValueNotFoundWithBloomBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -136,7 +136,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "hit.notfound")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "enabled", "bloom.mayexist", "false")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueNotFoundWithMayExistBloomBufferSize = DistributionSummary
|
this.readValueNotFoundWithMayExistBloomBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -144,7 +144,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "hit.wrong")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "false", "bloom", "enabled", "bloom.mayexist", "true", "bloom.mayexist.result", "notexists", "bloom.mayexist.cached", "false")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueFoundWithBloomUncachedBufferSize = DistributionSummary
|
this.readValueFoundWithBloomUncachedBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -152,7 +152,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "hit.found")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "enabled", "bloom.mayexist", "true", "bloom.mayexist.result", "exists", "bloom.mayexist.cached", "false")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueFoundWithBloomCacheBufferSize = DistributionSummary
|
this.readValueFoundWithBloomCacheBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -160,7 +160,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "hit.cachedvalue")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "enabled", "bloom.mayexist", "true", "bloom.mayexist.result", "exists", "bloom.mayexist.cached", "true")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueFoundWithBloomSimpleBufferSize = DistributionSummary
|
this.readValueFoundWithBloomSimpleBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -168,7 +168,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "hit")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "enabled", "bloom.mayexist", "true", "bloom.mayexist.result", "exists", "bloom.mayexist.cached", "false")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.readValueFoundWithoutBloomBufferSize = DistributionSummary
|
this.readValueFoundWithoutBloomBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
@ -176,7 +176,7 @@ public sealed abstract class AbstractRocksDBColumn<T extends RocksDB> implements
|
|||||||
.baseUnit("bytes")
|
.baseUnit("bytes")
|
||||||
.scale(1)
|
.scale(1)
|
||||||
.publishPercentileHistogram()
|
.publishPercentileHistogram()
|
||||||
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "no")
|
.tags("db.name", databaseName, "db.column", columnName, "buffer.type", "val.read", "found", "true", "bloom", "disabled")
|
||||||
.register(meterRegistry);
|
.register(meterRegistry);
|
||||||
this.writeValueBufferSize = DistributionSummary
|
this.writeValueBufferSize = DistributionSummary
|
||||||
.builder("buffer.size.distribution")
|
.builder("buffer.size.distribution")
|
||||||
|
@ -420,6 +420,9 @@ public class LLLocalKeyValueDatabase implements LLKeyValueDatabase {
|
|||||||
try {
|
try {
|
||||||
return database.getAggregatedLongProperty(propertyName);
|
return database.getAggregatedLongProperty(propertyName);
|
||||||
} catch (RocksDBException e) {
|
} catch (RocksDBException e) {
|
||||||
|
if ("NotFound".equals(e.getMessage())) {
|
||||||
|
return 0d;
|
||||||
|
}
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user