From 93cebc9b4825db7b688f4ed52012738844c30f8e Mon Sep 17 00:00:00 2001 From: Remigiusz Janeczek Date: Wed, 23 Oct 2019 13:36:56 +0200 Subject: Fix performance test issues Issue-ID: DCAEGEN2-1783 Signed-off-by: Remigiusz Janeczek Change-Id: I367d109fc5903cd3fd6dbfeeda77d30d780a8a09 --- .../dcae/collectors/veshv/kafkaconsumer/metrics/MicrometerMetrics.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sources/hv-collector-kafka-consumer') diff --git a/sources/hv-collector-kafka-consumer/src/main/kotlin/org/onap/dcae/collectors/veshv/kafkaconsumer/metrics/MicrometerMetrics.kt b/sources/hv-collector-kafka-consumer/src/main/kotlin/org/onap/dcae/collectors/veshv/kafkaconsumer/metrics/MicrometerMetrics.kt index 906fce23..64dbdf49 100644 --- a/sources/hv-collector-kafka-consumer/src/main/kotlin/org/onap/dcae/collectors/veshv/kafkaconsumer/metrics/MicrometerMetrics.kt +++ b/sources/hv-collector-kafka-consumer/src/main/kotlin/org/onap/dcae/collectors/veshv/kafkaconsumer/metrics/MicrometerMetrics.kt @@ -42,6 +42,7 @@ internal class MicrometerMetrics constructor( }.memoize() private val travelTime = Timer.builder(name(TRAVEL,TIME)) + .maximumExpectedValue(MAX_BUCKET_DURATION) .publishPercentileHistogram(true) .register(registry) @@ -65,6 +66,7 @@ internal class MicrometerMetrics constructor( private const val TRAVEL = "travel" private const val TIME = "time" private const val PREFIX = "hv-kafka-consumer" + internal val MAX_BUCKET_DURATION = Duration.ofSeconds(300L) private fun name(vararg name: String) = "$PREFIX.${name.joinToString(".")}" } } -- cgit 1.2.3-korg