Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.33 KB

File metadata and controls

50 lines (34 loc) · 2.33 KB

Cassandra Health plugin

Cassandra Health plugin provides you with an overview performance visualization of your server. Predefined dashboard currently displays:

  • Memory usage
  • CPU performance usage
  • Disk space usage
  • Amount of CDR's generated

Screenshots

image of import

Plugins

Cassandra Health plugin uses 2 existing plugins. Usage over time are displayed in Graph by Grafana Labs while current value of data displays in D3 Gauge by Brian Gann

Modifications

D3 Gauge plugin only supports to define maximum value statically. When displaying disk space where the total disk space differs from server to server defining the maximum value of the gauge static is not an option. We modified the ctrl.js file so when 2 metrics are defined the last metric are the maximum value of the gauge.

Example using two metrics:

  • server->disk->usage
  • server->disk->total - Will represent maximum value of gauge.

When only one metric is defined the gauge will automatically set the value 100 as it's maximum value. This is used when displaying CPU usage where the maximum value of a CPU is 100%.

Installation

Metrics

To get the plugin working, a data source is required. This is done by setting up a data source. The data source is needed to fetch server status values and display in a representative way. The dashboard does only support a Graphite data source, other data sources may need to be configured.

Example when using metric to deliver CPU usage: cassandra.cpu.usage

Dashboard

We have exported an default dashboard into cassandraHealthDashboard.json, the file provides you with an existing dashboard.

Follow these steps to import cassandraHealthDashboard.json into Grafana:

  1. Clone cassandraHealthDashboard.json

  2. Import cassandraHealthDashboard.json

    image of import

  3. Define you custom metrics for each panel.

Resource script

To reach and push data dynamically every second to Grafana we have created a script resourceUsageCassandra.sh. The script pushes data into Cassandra.

Follow these steps to run resourceUsageCassandra.sh

  1. Clone resourceUsageCassandra.sh
  2. Run script bash resourceUsageCassandra.sh