-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CASSANDRASC-117 Record existing and additional metrics with dropwizard #111
Conversation
1ac085b
to
06d6c16
Compare
src/main/java/org/apache/cassandra/sidecar/metrics/instance/InstanceHealthMetrics.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a complete review, but submit what I have so far.
src/main/java/org/apache/cassandra/sidecar/metrics/instance/InstanceRestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/RestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/RestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/RestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/SchemaMetrics.java
Outdated
Show resolved
Hide resolved
src/test/java/org/apache/cassandra/sidecar/concurrent/ExecutorPoolsTest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/concurrent/ExecutorPools.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/ResourceMetrics.java
Outdated
Show resolved
Hide resolved
e9beb62
to
bb32b9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left a few comments, but I think we need to address the SSTable Component metrics, because it seems they are not really SSTable Component per se, but rather based on the extension. So either the metric will need to be extension based metric, or we need to correctly determine the SSTable Component
workerExecutor.executeBlocking(promise -> { | ||
long startTime = System.nanoTime(); | ||
handler.handle(id); | ||
recordTimeTaken(System.nanoTime() - startTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to the PR, but do we need to complete the promise
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is wrong w/o fulfilling the promise. I have a feedback commit (to be pushed) to address it.
src/main/java/org/apache/cassandra/sidecar/metrics/instance/InstanceRestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/InstanceRestoreMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/SSTableImportMetrics.java
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/concurrent/TaskExecutorPool.java
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/utils/SSTableImporter.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/SSTableImportMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/routes/sstableuploads/SSTableUploadHandler.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/UploadSSTableMetrics.java
Outdated
Show resolved
Hide resolved
Thanks @frankgh for the review. Addressed them. Modified to using SSTable component name instead of extension while tagging metrics |
99a1824
to
4518dc8
Compare
0afa958
to
7ec2b57
Compare
…ics.java Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
…stanceRestoreMetrics.java Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
…utorPool.java Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
8b43a37
to
ff1acd4
Compare
ff1acd4
to
5123b43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comments and the feedback commit at yifan-c@b12517b
src/main/java/org/apache/cassandra/sidecar/metrics/instance/SSTableImportMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/routes/sstableuploads/SSTableImportHandler.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/UploadSSTableMetrics.java
Outdated
Show resolved
Hide resolved
src/main/java/org/apache/cassandra/sidecar/metrics/instance/StreamSSTableMetrics.java
Outdated
Show resolved
Hide resolved
da3e0ed
to
d9f4855
Compare
d9f4855
to
8bbc0c2
Compare
Thanks @yifan-c for the feedback, addressed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 thanks for addressing all the comments!
22fa4da
to
b18e07a
Compare
b18e07a
to
43b911e
Compare
No description provided.