Add Apache Cassandra Database
You can add Apache Cassandra Database entities using the Add Entity UI or using the cloud agent command line interface (omcli
) with the appropriate JSON files.
Step 1: Prepare Apache Cassandra Database for monitoring.
Prerequisites |
---|
The default settings for Cassandra make JMX accessible only from the local host. If you want to enable remote JMX connections, change the
LOCAL_JMX setting in cassandra-env.sh and enable authentication and/or SSL . To do this, perform the following procedure:
|
Step 2: Decide how you want to add the Apache Cassandra Database.
You can add Apache Cassandra Database entities using one of two ways:
- Add them from UI
- Use the agent's
omcli add_entity
command with the appropriate JSON files
Adding Entities from the UI
- From the Management Cloud main menu, select Administration, Discovery, and then Add Entity. The Add Entity page displays.
- Select the Apache Cassandra Database Entity Type.
- Enter the following UI properties.
Apache Cassandra DB UI Fields - Entity Name: Name of this entity displayed in the Oracle Management Cloud console.
- Host Name: Fully-qualified Host Name where Cassandra database is installed.
- Port: Apache Cassandra Database port.
- Cloud Agent: Cloud agent monitoring the host where the Apache Cassandra DB is installed.
Monitoring Credentials (Cassandra JMX Credentials)
- Username: Cassandra DB username.
- Password: Password used for authentication.
See Add Entities from the Console for detailed instructions on using the Add Entity UI.
Using omcli
and the Appropriate JSON Files
- Download and extract the required JSON file(s) from the master JSON zip file. See the table below for the specific JSON files you'll need.
- Edit the file(s) and specify the requisite properties shown below.
Apache Cassandra DB JSON Files and Properties Definition File: omc_cassandra_db.json
- displayName: This is Apache Cassandra Database Entity Display Name which is displayed in the Oracle Infrastructure Monitoring UI
- timezoneRegion: Time Zone Example: PDT, GMT
- omc_url: connection url to connect to the installed Apache Cassandra database; host:port
- host_name : Fully-qualified Host Name where Cassandra database is installed.
- omc_port : Apache Cassandra Database port.
- cassandra_home: Location of the Cassandra Installation directory.
Credential File: omc_cassandra_db_creds.json
- DBUserName: Cassandra DB username.
- DBPassword: Cassandra DB user password.
- Add the entity using
omcli
.omcli add_entity agent DEFINITION_FILE [-credential_file CREDENTIAL_FILE [-encryption_method_gpg]]
- Verify the status of the newly added entity.
omcli status_entity agent DEFINITION_FILE
See step 4. Adding Entities to Your Service of Add Entities Using JSON Files for more information.
Step 3: (Optional but recommended) Set up alerts.
To enable lights-out monitoring, you can set up alert rules to generate alerts and send notifications if your entities have performance issues.
See Set Up Alert Rules and Set Up Alert Thresholds and Notifications.Troubleshooting
If you run into any issues regarding discovery or monitoring of Apache Cassandra Database, see the following: