Skip to content

Conversation

@robsunday
Copy link
Contributor

This PR adds support for Cassandra NoSQL DB JMX metrics. The goal of this PR is to port jmx-metrics functionality to jmx-scraper.
JMX Insights has no yaml file for Cassandra and cassandra.yaml file in this PR is created based on cassandra.groovy file from jmx-metrics.
Assertions are copied from jmx-metrics.
Cassandra version is updated from 3.11 used in jmx-scraper to 5.0.2 (the most recent one), however I verified that metrics are correctly gathered on 3.* and 4.* versions. In the future we may consider using multiple versions of tested target system, so we can easily make sure that all of them are supported by single yaml config.
Also jmx-scraper base container image is updated to the most recent java8 version that also supports arm64 arch (for Macs)


public JmxScraperContainer(String otlpEndpoint) {
super("openjdk:8u272-jre-slim");
super("openjdk:8u342-jre-slim");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

[for reviewer] Updated to most recent version of Java8 and to support arm64 arch

@robsunday robsunday marked this pull request as ready for review October 22, 2024 10:29
@robsunday robsunday requested a review from a team October 22, 2024 10:29
metric ->
assertGauge(
metric,
"cassandra.client.request.range_slice.latency.50p",
Copy link
Contributor

Choose a reason for hiding this comment

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

Bummer that cassandra doesn't provide a histogram. :)

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

LGTM!

@trask trask merged commit 2251a88 into open-telemetry:main Oct 23, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants