Skip to content
Snippets Groups Projects
Commit 4b9ceab3 authored by Lorenz Boguhn's avatar Lorenz Boguhn
Browse files

Change object to any in promResponse + fix execution duration under 1 min

parent b1cd9f05
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!96Handle shutdown,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
...@@ -42,9 +42,12 @@ abstract class BenchmarkExecutor( ...@@ -42,9 +42,12 @@ abstract class BenchmarkExecutor(
*/ */
fun waitAndLog() { fun waitAndLog() {
logger.info { "Execution of a new benchmark started." } logger.info { "Execution of a new benchmark started." }
for (i in 1.rangeTo(executionDuration.toMinutes())) { for (i in 1.rangeTo(executionDuration.toSeconds())) {
Thread.sleep(Duration.ofMinutes(1).toMillis())
logger.info { "Executed: $i minutes" } Thread.sleep(Duration.ofSeconds(1).toMillis())
if ((i % 60) == 0L) {
logger.info { "Executed: ${i / 60} minutes" }
}
} }
} }
} }
...@@ -12,7 +12,7 @@ data class PromData( ...@@ -12,7 +12,7 @@ data class PromData(
data class PromResult( data class PromResult(
var metric: PromMetric? = null, var metric: PromMetric? = null,
var values: List<Object>? = null var values: List<Any>? = null
) )
data class PromMetric( data class PromMetric(
......
...@@ -12,7 +12,7 @@ slos: ...@@ -12,7 +12,7 @@ slos:
- sloType: "slo type" - sloType: "slo type"
threshold: 1000 threshold: 1000
prometheusUrl: "http://localhost:32656" prometheusUrl: "http://localhost:32656"
externalSloUrl: "http://127.0.0.1:8000/evaluate-slope" externalSloUrl: "http://localhost:80/evaluate-slope"
offset: 0 offset: 0
warmup: 0 warmup: 0
execution: execution:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment