diff --git a/dashboards/MongoDB/MongoDB_Oplog_Details.json b/dashboards/MongoDB/MongoDB_Oplog_Details.json index 463e5c0924..d015db85f5 100644 --- a/dashboards/MongoDB/MongoDB_Oplog_Details.json +++ b/dashboards/MongoDB/MongoDB_Oplog_Details.json @@ -388,10 +388,12 @@ "targets": [ { "datasource": "Metrics", - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by (service_name) (mongodb_ss_metrics_repl_buffer_apply_count{service_name=~\"$service_name\"}) or avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{service_name}}", + "range": true, "refId": "A", "step": 300 } @@ -770,19 +772,23 @@ "targets": [ { "datasource": "Metrics", - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by (service_name) (mongodb_ss_metrics_repl_buffer_apply_sizeBytes{service_name=~\"$service_name\"}) or avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})", "interval": "$interval", "intervalFactor": 1, "legendFormat": "Used", + "range": true, "refId": "A", "step": 300 }, { "datasource": "Metrics", - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by (service_name) (mongodb_ss_metrics_repl_buffer_apply_maxSizeBytes{service_name=~\"$service_name\"}) or avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})", "interval": "$interval", "intervalFactor": 1, "legendFormat": "Max", + "range": true, "refId": "B", "step": 300 }