Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mongo] add queued read and write operations monitors #18942

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions mongo/assets/monitors/high_queued_readers.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
34 changes: 34 additions & 0 deletions mongo/assets/monitors/high_queued_writers.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 2 additions & 0 deletions mongo/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading