Skip to content

Conversation

@JonathanWamsley
Copy link
Contributor

Description:
Update Cassandra metrics latency counter units to better reflect what is being collected.

Testing:
Updated Cassandra Integration Test

Documentation:
Updated Cassandra Docs

otel.instrument(clientRequestRangeSliceLatency,
"cassandra.client.request.range_slice.latency.count",
"Total token range read request latency", "µs", "Count",
"Total token range read request latency", "1", "Count",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a good time to update the description too? Seems to not be accurate - I'd expect "total latency" to be temporal since it's still latency

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, description names should be updated too.

@rmfitzpatrick
Copy link
Contributor

@JonathanWamsley, where in the cassandra documentation are you seeing this? The 3.11 monitoring docs say latency is in microseconds: http://cassandra.apache.org/doc/3.11.3/operating/metrics.html#metric-types

@djaglowski
Copy link
Member

@rmfitzpatrick From where you linked, if you click through Dropwizard Metrics => About Metrics => Javadoc => Timer, you can see that the timer maintains a count of events, which I believe corresponds to the metrics in question.

This article has an image that shows that the "Latency" timer has a "Count" inside of it. Separately, the "TotalLatency" counter would be needed to collect the total latency measured in microseconds.

For additional confidence, other monitoring solutions have also reached this conclusion as well.

@rmfitzpatrick
Copy link
Contributor

For additional confidence, other monitoring solutions have also reached this conclusion as well.

This is a legacy solution this offering is intending to replace, and I appreciate you pointing this out! My oversight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants