From a53fe34c2cc605f34b9361cb8c95ca1d68906eff Mon Sep 17 00:00:00 2001 From: Raitis Veinbahs Date: Fri, 28 Jun 2024 15:52:37 +0200 Subject: [PATCH] fix: Smaller granularity for Grafana fuseki durations (DEV-3776) (#3297) --- .../store/triplestore/impl/TriplestoreServiceLive.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala index 31357d03f7..91e170e812 100644 --- a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala +++ b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala @@ -75,8 +75,8 @@ case class TriplestoreServiceLive( Metric.timer( "fuseki_request_duration", ChronoUnit.MILLIS, - // 7 buckets for upper bounds 10ms, 100ms, 1s, 10s, 1.6m, 16.6m, inf - Chunk.iterate(10.0, 6)(_ * 10), + // 7 buckets for upper bounds: 2 ms, 4 ms, 8 ms, 16 ms, 32 ms, 64 ms, inf + Chunk.iterate(2.0, 6)(_ * 2), ) private def processError(sparql: String, response: String): IO[TriplestoreException, Nothing] =