Cassandra metrics

The Prometheus service collects and processes metrics (as described in Metrics collection) for Cassandra just as it does for other hybrid services.

The following table describes labels that Prometheus uses in the Cassandra metrics data. These labels are used in the metrics log entries.

Available metrics

The following table describes the available Cassandra metrics:

Metric name Resource type
Filter
Description
org_apache_cassandra_metrics_clientrequest_latency Kubernetes container
scope=Read
unit=OneMinuteRate
Number of read requests per minute
org_apache_cassandra_metrics_clientrequest_latency Kubernetes container
scope=Write
unit=OneMinuteRate
Number of write requests per minute
org_apache_cassandra_metrics_clientrequest_latency Kubernetes container
scope=Read
unit=75thPercentile
Read request latency in the 75th percentile range in microseconds
org_apache_cassandra_metrics_clientrequest_latency Kubernetes container
scope=Write
unit=75thPercentile
Write request latency in the 75th percentile range in microseconds
org_apache_cassandra_metrics_compaction_pendingtasks Kubernetes container
scope=Write
unit=75thPercentile
Pending compactions
jvm_memory_bytes_used Kubernetes container
N/A
JVM heap usage

Dashboard example

To create a Stackdriver dashboard for Cassandra metrics data:
  1. Open the Stackdriver Metrics Explorer in a browser. Alternatively, if you're already in the Stackdriver console, select Resources > Metrics Explorer.
  2. Select Dashboards > Create Dashboard.
  3. Click Add Chart.
  4. Give the chart a title. For example: Cassandra Request Latency
  5. In Find resource type and metric, locate and select the Kubernetes Container resource type.
  6. Select the metric you want to examine. Choose one of the metrics listed in Available metrics. For example: org_apache_cassandra_metrics_clientrequest_latency.

    alt_text

  7. Apply filters. Filter choices for each metric are listed in Available metrics. For example, for the org_apache_cassandra_metrics_clientrequest_latency metric, filter choices are: scope=Read and unit=OneMinuteRate.
  8. Stackdriver displays data for the selected metric.

    alt_text

  9. Click Save.

For more information, see Using dashboards.