📈 Add different configuration for other histogram
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 3 Aug 2019 08:39:16 +0000 (10:39 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 3 Aug 2019 08:39:16 +0000 (10:39 +0200)
src/main/java/net/pterodactylus/sone/core/SoneInserter.java

index e138f79..07c96c4 100644 (file)
@@ -151,7 +151,7 @@ public class SoneInserter extends AbstractService {
                this.core = core;
                this.eventBus = eventBus;
                this.freenetInterface = freenetInterface;
-               this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration");
+               this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration", () -> new Histogram(new ExponentiallyDecayingReservoir(3000, 0)));
                this.soneInsertErrorMeter = metricRegistry.meter("sone.insert.errors");
                this.soneId = soneId;
                this.soneModificationDetector = soneModificationDetector;