Example alert setup scenario for slow queries

About this task

Follow these guidelines to configure latency alerts for monitoring slow queries. Any alerts triggered for read and write latencies appear in the Slow Queries Alerts panel within the Slow Queries performance page. Some suggested basic alerts to configure include:

  • Write Request Latency - above 50 ms/op for more than one minute; also for more than 5 minutes

  • Read Request Latency - above 50 ms/op for more than one minute; also for more than 5 minutes

  • Local Write Latency - above 50 ms/op for more than one minute; also for more than 5 minutes

Local latency alerts are available from Advanced > Tables. Configure the pertinent latency alerts of interest with thresholds appropriate for your environment.

Procedure

  1. Click the Alerts menu.

  2. In the Active Alerts dialog, click Manage Alerts.

    The Add Alert dialog appears.

  3. In the Notify me when menu, choose a r/w latency metric name.

    Click Advanced > Tables to set up table latency alerts.

  4. Select the alert notification criteria:

    • Select the nodes to monitor for cluster-level alerts.

    • Select the table for local latency alerts. opscPSslowQueryAlertExample

  5. Click Save Alert.

    The alert displays in the Manage Alert Rules list. Repeat these steps for each additional alert.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com