diff --git a/mongo/assets/monitors/high_queued_readers.json b/mongo/assets/monitors/high_queued_readers.json new file mode 100644 index 0000000000000..a5c7b9926e5f6 --- /dev/null +++ b/mongo/assets/monitors/high_queued_readers.json @@ -0,0 +1,34 @@ +{ + "version": 2, + "created_at": "2024-10-16", + "last_updated_at": "2024-10-16", + "title": "High queued readers", + "tags": [ + "integration:mongodb" + ], + "description": "This monitor tracks the number of read operations that are currently queued and waiting for the read lock on a MongoDB cluster to alert when it is high.", + "definition": { + "message": "MongoDB Cluster {{clustername.name}} has a high number of read operations that are currently queued and waiting for the read lock. The number of read operations that are currently queued is {{value}}.", + "name": "[MongoDB] High number of read operations that are currently queued", + "options": { + "escalation_message": "", + "include_tags": true, + "locked": false, + "new_host_delay": 300, + "no_data_timeframe": null, + "notify_audit": false, + "notify_no_data": false, + "renotify_interval": "0", + "require_full_window": true, + "thresholds": { + "critical": 100 + }, + "timeout_h": 0 + }, + "query": "max(last_5m):avg:mongodb.globallock.currentqueue.readers{*} by {clustername} > 100", + "tags": [ + "integration:mongodb" + ], + "type": "query alert" + } + } \ No newline at end of file diff --git a/mongo/assets/monitors/high_queued_writers.json b/mongo/assets/monitors/high_queued_writers.json new file mode 100644 index 0000000000000..bb20dc0d45b20 --- /dev/null +++ b/mongo/assets/monitors/high_queued_writers.json @@ -0,0 +1,34 @@ +{ + "version": 2, + "created_at": "2024-10-16", + "last_updated_at": "2024-10-16", + "title": "High queued writers", + "tags": [ + "integration:mongodb" + ], + "description": "This monitor tracks the number of write operations that are currently queued and waiting for the write lock on a MongoDB cluster to alert when it is high.", + "definition": { + "message": "MongoDB Cluster {{clustername.name}} has a high number of write operations that are currently queued and waiting for the write lock. The number of write operations that are currently queued is {{value}}.", + "name": "[MongoDB] High number of write operations that are currently queued", + "options": { + "escalation_message": "", + "include_tags": true, + "locked": false, + "new_host_delay": 300, + "no_data_timeframe": null, + "notify_audit": false, + "notify_no_data": false, + "renotify_interval": "0", + "require_full_window": true, + "thresholds": { + "critical": 100 + }, + "timeout_h": 0 + }, + "query": "max(last_5m):avg:mongodb.globallock.currentqueue.writers{*} by {clustername} > 100", + "tags": [ + "integration:mongodb" + ], + "type": "query alert" + } + } \ No newline at end of file diff --git a/mongo/manifest.json b/mongo/manifest.json index 1cd6af62dd959..3999ce31438ed 100644 --- a/mongo/manifest.json +++ b/mongo/manifest.json @@ -64,6 +64,8 @@ }, "monitors": { "Connection pool is reaching saturation": "assets/monitors/high_connections.json", + "High queued readers": "assets/monitors/high_queued_readers.json", + "High queued writers": "assets/monitors/high_queued_writers.json", "High replication lag": "assets/monitors/high_replication_lag.json", "Low oplog window": "assets/monitors/low_oplog_window.json", "Unhealthy replica set member": "assets/monitors/unhealthy_repliset_member.json",