Skip to content

Commit

Permalink
PMM-13486 Add new metrics for Mongodb 8 (#1640) (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
YashSartanpara1 authored Dec 6, 2024
1 parent d14f128 commit 114690f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions dashboards/MongoDB/MongoDB_Oplog_Details.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 114690f

Please sign in to comment.