Get metrics from Cassandra service in real time to:
- Visualize and monitor Cassandra states
- Be notified about Cassandra failovers and events.
Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the Autodiscovery Integration Templates for guidance on applying these instructions.
The Cassandra check is included in the Datadog Agent package, so you don't need to install anything else on your Cassandra nodes.
We recommend the use of Oracle's JDK for this integration.
This check has a limit of 350 metrics per instance. The number of returned metrics is indicated in the info page. You can specify the metrics you are interested in by editing the configuration below. To learn how to customize the metrics to collect visit the JMX Checks documentation for more detailed instructions. If you need to monitor more metrics, contact Datadog support.
Edit the cassandra.d/conf.yaml file, in the conf.d/ folder at the root of your Agent's configuration directory to start collecting your Cassandra metrics and logs.
See the sample cassandra.d/conf.yaml for all available configuration options.
The default configuration of your cassandra.d/conf.yaml file activate the collection of your Cassandra metrics.
See the sample cassandra.d/conf.yaml for all available configuration options.
Available for Agent >6.0
-
Collecting logs is disabled by default in the Datadog Agent, enable it in your
datadog.yamlfile:logs_enabled: true
-
Add this configuration block to your
cassandra.d/conf.yamlfile to start collecting your Cassandra logs:logs: - type: file path: /var/log/cassandra/*.log source: cassandra sourcecategory: database service: myapplication
Change the
pathandserviceparameter values and configure them for your environment. See the sample cassandra.d/conf.yaml for all available configuration options.To make sure that stacktraces are properly aggregated as one single log, a multiline processing rule can be added.
Run the Agent's status subcommand and look for cassandra under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
The Cassandra check does not include any events.
cassandra.can_connect:
Returns CRITICAL if the Agent is unable to connect to and collect metrics from the monitored Cassandra instance, otherwise returns OK.
Need help? Contact Datadog support.
