From 56273eddaa413f702daaf7c48535f558e9e40ffc Mon Sep 17 00:00:00 2001 From: "nikita.smirnov" Date: Mon, 13 Nov 2023 15:36:28 +0400 Subject: [PATCH] Added 'session.enabled' and 'node.enabled' into application.conf --- src/main/resources/application.conf | 55 +++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf index cd64a058..d52e1c79 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,56 @@ ################################################################################ datastax-java-driver { - advanced.protocol { - compression = lz4 + advanced { + protocol.compression = lz4 + metrics { + factory.class = MicrometerMetricsFactory + + session.enabled = [ + bytes-sent, + bytes-received + connected-nodes, + cql-requests, + cql-client-timeouts, + cql-prepared-cache-size, + throttling.delay, + throttling.queue-size, + throttling.errors, + continuous-cql-requests, + graph-requests, + graph-client-timeouts + ] + 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, + graph-messages + ] + } } } \ No newline at end of file