Skip to content

Apache Cassandra — Prerequisites

Prerequisites for monitoring Apache Cassandra with HEAL.

1 min read Updated SS

Prerequisites to complete before adding this component in the HEAL Control Center.

Cassandra v3.11#

To monitor a Cassandra database, adhere to the following prerequisites:

  1. Java Environment: Install a compatible Java Runtime Environment (JRE) on the server where HEAL software will run, necessary for JMX-based monitoring.
  2. JMX Port Configuration: Determine the JMX port Cassandra uses to enable connections for JMX metrics collection.
  3. Access Credentials: Obtain a username and password with adequate permissions for accessing and querying the Cassandra database.
  4. Network Configuration: Ensure HEAL and Cassandra nodes can communicate, checking firewall and security settings to allow traffic on necessary ports, such as 9042 (CQL) and the JMX port.
  5. Cassandra Cluster Info: Document cluster name, key spaces, and replication strategies for advanced monitoring setup.
  6. Command Access:
    • nodetool status: Access is required to view cluster health.
    • nodetool cfstats: Access needed for detailed table performance statistics.
  7. User creation:Follow the below steps for creating a user for Cassandra Monitoring:

    1. Create the monitoring user as below:

      CREATE USER DBP_Monitoring_user WITH PASSWORD 'xxxxx';
      

      BP_Monitoring_user: ALL MBEANS to mbean_admin and password = xxxxx.

    2. Create the Role for MBean administration:

      CREATE ROLE mbean_admin;
      
    3. Grant permissions to the role:

      GRANT ALL PERMISSIONS ON ALL MBEANS TO mbean_admin;
      
    4. Assign the role to the monitoring user:

      GRANT mbean_admin TO "DBP_Monitoring_user";
      

See also: Apache Cassandra (what HEAL monitors)