Apache Cassandra — Prerequisites
Prerequisites for monitoring Apache Cassandra with HEAL.
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:
- Java Environment: Install a compatible Java Runtime Environment (JRE) on the server where HEAL software will run, necessary for JMX-based monitoring.
- JMX Port Configuration: Determine the JMX port Cassandra uses to enable connections for JMX metrics collection.
- Access Credentials: Obtain a username and password with adequate permissions for accessing and querying the Cassandra database.
- 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. - Cassandra Cluster Info: Document cluster name, key spaces, and replication strategies for advanced monitoring setup.
- Command Access:
nodetool status: Access is required to view cluster health.nodetool cfstats: Access needed for detailed table performance statistics.
-
User creation:Follow the below steps for creating a user for Cassandra Monitoring:
-
Create the monitoring user as below:
CREATE USER DBP_Monitoring_user WITH PASSWORD 'xxxxx';BP_Monitoring_user: ALL MBEANS to
mbean_adminand password =xxxxx. -
Create the Role for MBean administration:
CREATE ROLE mbean_admin; -
Grant permissions to the role:
GRANT ALL PERMISSIONS ON ALL MBEANS TO mbean_admin; -
Assign the role to the monitoring user:
GRANT mbean_admin TO "DBP_Monitoring_user";
-
See also: Apache Cassandra (what HEAL monitors)