Skip to content
Snippets Groups Projects
Commit 77a09cee authored by Lorenz Boguhn's avatar Lorenz Boguhn Committed by Lorenz Boguhn
Browse files

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

parent d140408d
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!92Introduce experiment evaluation,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
......@@ -42,9 +42,12 @@ abstract class BenchmarkExecutor(
*/
fun waitAndLog() {
logger.info { "Execution of a new benchmark started." }
for (i in 1.rangeTo(executionDuration.toMinutes())) {
Thread.sleep(Duration.ofMinutes(1).toMillis())
logger.info { "Executed: $i minutes" }
for (i in 1.rangeTo(executionDuration.toSeconds())) {
Thread.sleep(Duration.ofSeconds(1).toMillis())
if ((i % 60) == 0L) {
logger.info { "Executed: ${i / 60} minutes" }
}
}
}
}
......@@ -12,7 +12,7 @@ data class PromData(
data class PromResult(
var metric: PromMetric? = null,
var values: List<Object>? = null
var values: List<Any>? = null
)
data class PromMetric(
......
......@@ -12,7 +12,7 @@ slos:
- sloType: "slo type"
threshold: 1000
prometheusUrl: "http://localhost:32656"
externalSloUrl: "http://127.0.0.1:8000/evaluate-slope"
externalSloUrl: "http://localhost:80/evaluate-slope"
offset: 0
warmup: 0
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