diff --git a/README.md b/README.md index 078e3a44..9536297a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Report data provider (5.9.2) +# Report data provider (5.9.3) # Overview This component serves as a backend for rpt-viewer. It will connect to the cassandra database via cradle api and expose the data stored in there as REST resources. @@ -295,6 +295,9 @@ spec: # Release notes +## 5.9.3 ++ Enabled [Cassandra driver metrics](https://docs.datastax.com/en/developer/java-driver/4.10/manual/core/metrics/) + ## 5.9.2 + Fix problem with accumulating all batches in memory when provider loads messages by group diff --git a/build.gradle b/build.gradle index de6d504d..30c3bd44 100644 --- a/build.gradle +++ b/build.gradle @@ -80,8 +80,8 @@ dependencies { } tasks.withType(KotlinCompile).configureEach { - kotlinOptions { - freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" + compilerOptions { + freeCompilerArgs.add('-opt-in=kotlin.RequiresOptIn') } } diff --git a/gradle.properties b/gradle.properties index ff7784db..667afe2f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,6 +16,6 @@ kotlin.code.style=official -release_version=5.9.2 +release_version=5.9.3 docker_image_name= \ No newline at end of file diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index cd64a058..829ea8f5 100644 --- a/src/main/resources/application.conf +++ b/src/main/resources/application.conf @@ -1,5 +1,5 @@ ################################################################################ -# Copyright 2021-2021 Exactpro (Exactpro Systems Limited) +# Copyright 2021-2023 Exactpro (Exactpro Systems Limited) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -15,7 +15,73 @@ ################################################################################ datastax-java-driver { - advanced.protocol { - compression = lz4 + advanced { + protocol.compression = lz4 + metrics { + factory.class = DropwizardMetricsFactory + + session { + enabled = [ + bytes-sent, + bytes-received, + connected-nodes, + cql-requests, + cql-client-timeouts, + cql-prepared-cache-size, + throttling.delay, + throttling.queue-size, + throttling.errors + ] + cql-requests { + highest-latency = 3 seconds + significant-digits = 3 + refresh-interval = 5 minutes + } + throttling.delay { + highest-latency = 3 seconds + significant-digits = 3 + refresh-interval = 5 minutes + } + } + + node { + enabled = [ + pool.open-connections, + pool.available-streams, + pool.in-flight, + pool.orphaned-streams, + bytes-sent, + bytes-received, + cql-messages, + errors.request.unsent, + errors.request.aborted, + errors.request.write-timeouts, + errors.request.read-timeouts, + errors.request.unavailables, + errors.request.others, + retries.total, + retries.aborted, + retries.read-timeout, + retries.write-timeout, + retries.unavailable, + retries.other, + ignores.total, + ignores.aborted, + ignores.read-timeout, + ignores.write-timeout, + ignores.unavailable, + ignores.other, + speculative-executions, + errors.connection.init, + errors.connection.auth + ] + + cql-messages { + highest-latency = 3 seconds + significant-digits = 3 + refresh-interval = 5 minutes + } + } + } } } \ No newline at end of file