diff --git a/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/MongoDB/MongoDB_Cluster_Summary.json index cdae8309ac..545d2f2d0a 100644 --- a/dashboards/MongoDB/MongoDB_Cluster_Summary.json +++ b/dashboards/MongoDB/MongoDB_Cluster_Summary.json @@ -1359,88 +1359,41 @@ } }, { - "description": "", "fieldConfig": { "defaults": { - "color": { - "mode": "thresholds" - }, "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false + "align": "left", + "cellOptions": { + "type": "auto", + "wrapText": true + }, + "inspect": false, + "filterable": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green" + "color": "green", + "value": null } ] + }, + "color": { + "mode": "thresholds" } }, "overrides": [ { "matcher": { "id": "byName", - "options": "Time" + "options": "Service Name" }, "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "service_name" - }, - "properties": [ - { - "id": "displayName", - "value": "Service Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "links", - "value": [] - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mongodb" - }, - "properties": [ - { - "id": "displayName", - "value": "Version" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, { "id": "custom.align", - "value": "auto" + "value": "left" }, { "id": "custom.width" @@ -1450,23 +1403,12 @@ { "matcher": { "id": "byName", - "options": "Value" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "service_name" + "options": "Version" }, "properties": [ { - "id": "custom.width" + "id": "custom.width", + "value": 200 } ] } @@ -1480,50 +1422,107 @@ }, "hideTimeOverride": true, "id": 1289, - "links": [], "options": { + "showHeader": true, + "cellHeight": "sm", "footer": { - "enablePagination": true, - "fields": "", + "show": false, "reducer": [ "sum" ], - "show": false + "countRows": false, + "fields": "", + "enablePagination": true }, - "showHeader": true, - "sortBy": [] + "sortBy": [], + "frameIndex": 0 }, - "pluginVersion": "9.2.20", + "pluginVersion": "11.1.8", "targets": [ { "editorMode": "code", "exemplar": false, - "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"}) or (avg by (service_name,mongodb) (mongodb_version_info)) * on (service_name) group_right (mongodb) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}))", - "format": "table", + "expr": "min by (service_name,mongodb) ((mongodb_mongos_sharding_shards_total) * on (service_name) group_left (mongodb) (mongodb_version_info))", + "format": "time_series", "instant": true, - "interval": "5m", - "legendFormat": "{{mongodb}}", - "refId": "B" + "interval": "$interval", + "legendFormat": "__auto", + "refId": "C", + "hide": false, + "range": false + }, + { + "editorMode": "code", + "exemplar": false, + "expr": "min by (member_idx,mongodb) ((mongodb_rs_members_configVersion) * on (service_name) group_left (mongodb) (mongodb_version_info))", + "format": "time_series", + "instant": true, + "interval": "$interval", + "legendFormat": "__auto", + "refId": "D", + "hide": false, + "range": false } ], "timeFrom": "1m", "title": "MongoDB Versions", "transformations": [ + { + "id": "seriesToRows", + "options": {} + }, + { + "id": "extractFields", + "options": { + "source": "Metric", + "replace": false, + "keepTime": false, + "format": "kvp" + } + }, + { + "id": "calculateField", + "options": { + "mode": "reduceRow", + "reduce": { + "reducer": "lastNotNull", + "include": [ + "service_name", + "member_idx" + ] + }, + "alias": "Service Name", + "replaceFields": false + } + }, { "id": "organize", "options": { - "excludeByName": {}, + "excludeByName": { + "Time": true, + "Metric": true, + "Value": true, + "service_name": true, + "member_idx": true + }, "indexByName": { - "Time": 1, - "Value": 3, - "mongodb": 2, - "service_name": 0 + "Time": 0, + "Metric": 1, + "Value": 2, + "Service Name": 3, + "mongodb": 4, + "service_name": 5, + "member_idx": 6 + }, + "renameByName": { + "mongodb": "Version" }, - "renameByName": {} + "includeByName": {} } } ], - "type": "table" + "type": "table", + "description": "" }, { "collapsed": false, @@ -1555,7 +1554,8 @@ "options": { "0": { "index": 11, - "text": "STARTUP" + "text": "STARTUP", + "color": "semi-dark-red" }, "1": { "color": "rgb(107, 152, 102)", @@ -1569,15 +1569,18 @@ }, "3": { "index": 10, - "text": "RECOVERING" + "text": "RECOVERING", + "color": "semi-dark-red" }, "5": { "index": 9, - "text": "STARTUP2" + "text": "STARTUP2", + "color": "semi-dark-red" }, "6": { "index": 8, - "text": "UNKNOWN" + "text": "UNKNOWN", + "color": "semi-dark-red" }, "7": { "color": "#8B8000", @@ -1586,15 +1589,18 @@ }, "8": { "index": 7, - "text": "DOWN" + "text": "DOWN", + "color": "semi-dark-red" }, "9": { "index": 6, - "text": "ROLLBACK" + "text": "ROLLBACK", + "color": "semi-dark-red" }, "10": { "index": 5, - "text": "REMOVED" + "text": "REMOVED", + "color": "semi-dark-red" }, "null": { "color": "#FF7383", @@ -1658,7 +1664,7 @@ "targets": [ { "editorMode": "code", - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})", + "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$set\",service_name=~\"$service_name\"})", "hide": false, "interval": "$interval", "legendFormat": "{{service_name}}", @@ -2812,6 +2818,113 @@ "yaxis": { "align": false } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Shows the average hourly oplog data written to cache by the Primary server.", + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 103 + }, + "hiddenSeries": false, + "id": 1299, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": true, + "expr": "sum(increase(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{service_name=~\"$service_name\"}[1h]))", + "interval": "1h", + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog GB/Hour - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } } ], "refresh": false, diff --git a/dashboards/MongoDB/MongoDB_Oplog_Details.json b/dashboards/MongoDB/MongoDB_Oplog_Details.json index d015db85f5..a755f8fd39 100644 --- a/dashboards/MongoDB/MongoDB_Oplog_Details.json +++ b/dashboards/MongoDB/MongoDB_Oplog_Details.json @@ -1052,7 +1052,7 @@ "datasource": "Metrics", "editorMode": "code", "exemplar": true, - "expr": "avg by (service_name) (rate(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{rs_state=\"1\",service_name=~\"$service_name\"})[$interval])", + "expr": "sum(increase(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{service_name=~\"$service_name\"}[1h]))", "interval": "$interval", "legendFormat": "{{service_name}}", "range": true, diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json index 3c9351e0c1..723870859c 100644 --- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json +++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json @@ -1021,7 +1021,8 @@ "options": { "0": { "index": 11, - "text": "STARTUP" + "text": "STARTUP", + "color": "semi-dark-red" }, "1": { "color": "rgb(107, 152, 102)", @@ -1035,15 +1036,18 @@ }, "3": { "index": 10, - "text": "RECOVERING" + "text": "RECOVERING", + "color": "semi-dark-red" }, "5": { "index": 9, - "text": "STARTUP2" + "text": "STARTUP2", + "color": "semi-dark-red" }, "6": { "index": 8, - "text": "UNKNOWN" + "text": "UNKNOWN", + "color": "semi-dark-red" }, "7": { "color": "#8B8000", @@ -1052,15 +1056,18 @@ }, "8": { "index": 7, - "text": "DOWN" + "text": "DOWN", + "color": "semi-dark-red" }, "9": { "index": 6, - "text": "ROLLBACK" + "text": "ROLLBACK", + "color": "semi-dark-red" }, "10": { "index": 5, - "text": "REMOVED" + "text": "REMOVED", + "color": "semi-dark-red" }, "null": { "color": "#FF7383", @@ -1125,7 +1132,7 @@ "targets": [ { "editorMode": "code", - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", + "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\", service_name=~\"$service_name\"})", "interval": "$interval", "legendFormat": "{{set}}", "range": true, @@ -2063,8 +2070,7 @@ "mode": "absolute", "steps": [ { - "color": "red", - "value": null + "color": "red" } ] }, @@ -2221,8 +2227,7 @@ "mode": "absolute", "steps": [ { - "color": "red", - "value": null + "color": "red" } ] } @@ -2608,6 +2613,119 @@ "yaxis": { "align": false } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Shows the average hourly oplog data written to cache by the Primary server.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "unit": "bytes" + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 64 + }, + "hiddenSeries": false, + "id": 1614, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": true, + "expr": "sum(increase(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{service_name=~\"$service_name\"}[1h]))", + "interval": "1h", + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog GB/Hour - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } } ], "title": "Replication",