Go to All Forums

Cassandra monitoring script in python

Can you provide a sample plugin in python script to monitor Cassandra.

Like (3) Reply
Replies (3)

Hi Divya,

Please find attached the plugin script to monitor Cassandra. This is a Java plugin invoked from a Shell script. 

By default, we have added metrics to monitor Cassandra cache. You can modify the metrics.txt file to include the list of JMX queries that you wish to monitor. To get started,

  1. Create a folder in the Site24x7 Linux installation directory (/opt/site24x7/monagent/plugins/<cassandra>)
  2. Please set JAVA_HOME and PLUGIN_FOLDER (Cassandra) variables. Also, configure Cassandra server host and JMX port.
  3. To monitor more Cassandra metrics, include the JMX MBean definition and the labels in the metrics.txt file.  

Refer to know more about configuring JMX in  Cassandra.

For further queries, if any, please comment in the below thread. Happy Monitoring!

Attachments
cassandra.zip
Size: 3.31 KB
Like (0) Reply

Hi Anita, we are currently running a POC with Site24x7 and Cassandra monitoring is one of our requirements.  Can I ask why this plugin has a limit of 25 items that can be added to the metrics.txt file?  Is there an overhead if you go over 25 and just out of interest, is this plugin being used in production environments?

Thanks

Regards, 

 

Paul (SiboSystems)

Like (0) Reply

Hi Paul,
We have a limit of upto 25 attributes for each plugin monitor added. To monitor more metrics, you can add them as new plugin monitors. As an alternative, you can also pick up the important 25 metrics in a single monitor and add it for monitoring. For more assistance, please drop in a mail to support@site24x7.com

Yes, the Cassandra plugin is actively used in production environments. Hope this clarifies your questions.

Happy Monitoring!

Like (0) Reply

Was this post helpful?