STAR-865 Refactor and port metrics code from cndb#247
Conversation
and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com>
CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com>
mfleming
left a comment
There was a problem hiding this comment.
Nice! This looks good to me, Dan. There's only one comment about using CassandraRelevantProperties in a couple of places.
| .column(RECENT_REQUEST_RATE_PER_SECOND, metrics.requestsFifteenMinuteRate()) | ||
| .column(RECENT_HIT_RATE_PER_SECOND, metrics.hitsFifteenMinuteRate()); | ||
| } | ||
|
|
There was a problem hiding this comment.
Wanted to point out that this differs from the original; there the CacheMetrics constructor is explicitly calling CachesSystemView.addRowData to register cache metrics into the system view.
In this code ChunkCache instance metrics are added by CachesTable.data() using ChunkCache.instance.metrics, which is ChunkCacheMetrics interface; so by having addRow taking that type we will get metrics for any implementing class.
I added ChunkCacheMetrics.requestsFifteenMinuteRate and hitsFifteenMinuteRate for that; only CodahaleChunkCacheMetrics provides those values. MicrometerChunkCacheMetrics will return zeros.
| long requestsFifteenMinuteRate(); | ||
|
|
||
| long hitsFifteenMinuteRate(); |
There was a problem hiding this comment.
As mentioned in CachesTable, these were added in addition to the ported code.
|
@mfleming I applied the changes from your review and also added some comments to point out a couple areas where the ported code differs from the original. Thanks! |
|
Kudos, SonarCloud Quality Gate passed! |
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db6a5697baaf71d46d661c0ac1c908bc33e and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)
* STAR-865: Porting metrics from cndb-884, riptano/bdp@03b23db and riptano/bdp/#19515 Co-authored-by: Zhao Yang <jasonstack.zhao@gmail.com> Co-authored-by: Jake Luciani <tjake@users.noreply.github.com> * STAR-865: Porting MicrometerChunkCacheMetrics from: CNDB-161 Add MicrometerMetrics class CNDB-780 Add Micrometer metrics for the chunk cache Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com> (cherry picked from commit 5e0d889) fix ConcurrencyFactorTest the metrics require reset if we want to measure, especially the max values (cherry picked from commit 3f89514) (cherry picked from commit c51b4c4) (cherry picked from commit bc8b4ed) (cherry picked from commit d45d8e2) (cherry picked from commit 022df3a) STAR-865 Rebase compile fixes: * Add dependencies for micrometer-core and LatencyUtils * Delete ClientRequestsMetricsHolder and replace usages with ClientRequestsMetricsProvider STAR-865 Fix FailedBootstrapTest (Rebase of commit f0f3e3a)









Changes are mainly around:
ClientRequestMetricsand subclasses from cndb-884 and riptano/bdp#19515and
MicrometerChunkCacheMetricsfrom CNDB-780 - Add Micrometer metrics for the chunk cacheSome differences from bdp/cndb are mention in code comments.