-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mongo] add mongo recommended cluster monitors (#18858)
* add mongo recommended monitors * fix typo
- Loading branch information
1 parent
2eb2e02
commit 9772e77
Showing
6 changed files
with
147 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": 2, | ||
"created_at": "2024-10-16", | ||
"last_updated_at": "2024-10-16", | ||
"title": "Used file system storage is reaching capacity", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"description": "This monitor tracks the used file system storage on a MongoDB server to alert when it is reaching capacity.", | ||
"definition": { | ||
"message": "The used file system storage is reaching capacity for database host {{database_instance.name}} on MongoDB Cluster {{clustername.name}}. {{value}} % of the total storage has been used.", | ||
"name": "[MongoDB] High file system storage usage", | ||
"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": 80, | ||
"warning": 70 | ||
}, | ||
"timeout_h": 0 | ||
}, | ||
"query": "avg(last_60m):100 * avg:mongodb.stats.fsusedsize{*} by {clustername,database_instance} / avg:mongodb.stats.fstotalsize{*} by {clustername,database_instance} > 80", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"type": "query alert" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": 2, | ||
"created_at": "2024-10-16", | ||
"last_updated_at": "2024-10-16", | ||
"title": "High replication lag", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"description": "This monitor tracks the replication lag on a MongoDB replica set to alert when it is high.", | ||
"definition": { | ||
"message": "MongoDB Cluster {{clustername.name}} member {{member.name}} replication lag is high. The replication lag is {{value}} seconds.", | ||
"name": "[MongoDB] High replication lag", | ||
"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": 120, | ||
"warning": 60 | ||
}, | ||
"timeout_h": 0 | ||
}, | ||
"query": "avg(last_5m):100 * avg:mongodb.replset.optime_lag{*} by {clustername,member} > 120", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"type": "query alert" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"version": 2, | ||
"created_at": "2024-10-16", | ||
"last_updated_at": "2024-10-16", | ||
"title": "Low oplog window", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"description": "This monitor tracks the oplog window on a MongoDB replica set to alert when it is insufficient.", | ||
"definition": { | ||
"message": "Oplog window for database host {{database_instance.name}} on MongoDB Cluster {{clustername.name}} is below the threshold. The oplog window is {{value}} seconds.", | ||
"name": "[MongoDB] Low oplog window", | ||
"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": 3600, | ||
"warning": 7200 | ||
}, | ||
"timeout_h": 0 | ||
}, | ||
"query": "avg(last_60m):100 * avg:mongodb.oplog.timediff{*} by {clustername,database_instance} < 3600", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"type": "query alert" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "Unhealthy replica set member", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"description": "This monitor tracks the health of a MongoDB replica set member to alert when it is unhealthy.", | ||
"definition": { | ||
"message": "MongoDB Cluster {{clustername.name}} replica set member {{database_instance.name}} is unhealthy.", | ||
"name": "[MongoDB] Unhealthy replica set member", | ||
"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": 1 | ||
}, | ||
"timeout_h": 0 | ||
}, | ||
"query": "max(last_5m):avg:mongodb.replset.health{*} by {clustername,database_instance} != 1", | ||
"tags": [ | ||
"integration:mongodb" | ||
], | ||
"type": "query alert" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters