Skip to content

Commit

Permalink
[Th2 5124] Added java-driver-metrics-micrometer (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro authored Nov 20, 2023
1 parent 1e29815 commit 3a47735
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 7 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ dependencies {
}

tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
compilerOptions {
freeCompilerArgs.add('-opt-in=kotlin.RequiresOptIn')
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

kotlin.code.style=official

release_version=5.9.2
release_version=5.9.3

docker_image_name=
72 changes: 69 additions & 3 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
}
}
}
}
}

0 comments on commit 3a47735

Please sign in to comment.