File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
model-server/src/main/kotlin/org/modelix/model/server/handlers Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,16 @@ import io.micrometer.prometheus.PrometheusMeterRegistry
38
38
import org.modelix.api.public.Paths
39
39
import java.time.Duration
40
40
41
- class MetricsHandler () {
41
+ class MetricsHandler {
42
42
43
- val appMicrometerRegistry = PrometheusMeterRegistry (PrometheusConfig .DEFAULT )
43
+ private val appMicrometerRegistry = PrometheusMeterRegistry (PrometheusConfig .DEFAULT )
44
44
45
45
fun init (application : Application ) {
46
46
application.apply {
47
47
install(MicrometerMetrics ) {
48
48
registry = appMicrometerRegistry
49
49
distributionStatisticConfig = DistributionStatisticConfig .Builder ()
50
50
.percentilesHistogram(true )
51
- .maximumExpectedValue(Duration .ofSeconds(20 ).toNanos().toDouble())
52
- .serviceLevelObjectives(
53
- Duration .ofMillis(100 ).toNanos().toDouble(),
54
- Duration .ofMillis(500 ).toNanos().toDouble(),
55
- )
56
51
.build()
57
52
meterBinders = listOf (
58
53
// jvm
You can’t perform that action at this time.
0 commit comments