fix(mongodb): fix query for MongodbReplicationHeadroom rule

This commit is contained in:
Samuel Berthe 2021-10-10 20:10:14 +02:00
parent 2d9e4ae431
commit 58ba66e74c
No known key found for this signature in database
GPG key ID: 64863511FFBD0E3C

View file

@ -737,7 +737,7 @@ groups:
severity: critical
- name: MongoDB replication headroom
description: MongoDB replication headroom is <= 0
query: '(avg(mongodb_mongod_replset_oplog_tail_timestamp - mongodb_mongod_replset_oplog_head_timestamp) - (avg(mongodb_mongod_replset_member_optime_date{state="PRIMARY"}) - avg(mongodb_mongod_replset_member_optime_date{state="SECONDARY"}))) <= 0'
query: '(avg(mongodb_mongod_replset_oplog_head_timestamp - mongodb_mongod_replset_oplog_tail_timestamp) - (avg(mongodb_mongod_replset_member_optime_date{state="PRIMARY"}) - avg(mongodb_mongod_replset_member_optime_date{state="SECONDARY"}))) <= 0'
severity: critical
- name: MongoDB number cursors open
description: Too many cursors opened by MongoDB for clients (> 10k)