diff --git a/dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json index a567b175ce..f2a3844bca 100644 --- a/dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json +++ b/dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json @@ -1,4507 +1,4684 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "#e0752d", - "limit": 100, - "matchAny": true, - "name": "PMM Annotations", - "showIn": 0, - "tags": [ - "pmm_annotation" - ], - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "pmm_annotation" - ], - "type": "tags" - }, - "type": "tags" - }, - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "#6ed0e0", - "limit": 100, - "name": "Annotations & Alerts", - "showIn": 0, - "tags": [], - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": null, - "links": [], - "liveNow": false, - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 1325, - "panels": [ - { - "description": "Config servers store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "1": { - "text": "PRIMARY" - } - }, - "type": "value" - }, - { - "options": { - "2": { - "text": "SECONDARY" - } - }, - "type": "value" - }, - { - "options": { - "7": { - "text": "ARBITER" - } - }, - "type": "value" - }, - { - "options": { - "8": { - "text": "DOWN" - } - }, - "type": "value" - }, - { - "options": { - "match": "null", - "result": { - "text": "Exporter is not connected" - } - }, - "type": "special" - }, - { - "options": { - "3": { - "text": "RECOVERING" - } - }, - "type": "value" + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" }, - { - "options": { - "5": { - "text": "STARTUP2" - } - }, - "type": "value" + "enable": true, + "hide": false, + "iconColor": "#e0752d", + "limit": 100, + "matchAny": true, + "name": "PMM Annotations", + "showIn": 0, + "tags": [ + "pmm_annotation" + ], + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "pmm_annotation" + ], + "type": "tags" }, - { - "options": { - "6": { - "text": "UNKNOWN" - } - }, - "type": "value" + "type": "tags" + }, + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" }, - { - "options": { - "9": { - "text": "ROLLBACK" - } - }, - "type": "value" + "enable": true, + "hide": true, + "iconColor": "#6ed0e0", + "limit": 100, + "name": "Annotations & Alerts", + "showIn": 0, + "tags": [], + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" }, + "type": "dashboard" + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1325, + "panels": [ { - "options": { - "10": { - "text": "REMOVED" - } - }, - "type": "value" + "description": "Config servers store the metadata for a sharded cluster. The metadata reflects state and organization for all data and components within the sharded cluster. The metadata includes the list of chunks on every shard and the ranges that define the chunks.", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "1": { + "text": "PRIMARY" + } + }, + "type": "value" + }, + { + "options": { + "2": { + "text": "SECONDARY" + } + }, + "type": "value" + }, + { + "options": { + "7": { + "text": "ARBITER" + } + }, + "type": "value" + }, + { + "options": { + "8": { + "text": "DOWN" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "Exporter is not connected" + } + }, + "type": "special" + }, + { + "options": { + "3": { + "text": "RECOVERING" + } + }, + "type": "value" + }, + { + "options": { + "5": { + "text": "STARTUP2" + } + }, + "type": "value" + }, + { + "options": { + "6": { + "text": "UNKNOWN" + } + }, + "type": "value" + }, + { + "options": { + "9": { + "text": "ROLLBACK" + } + }, + "type": "value" + }, + { + "options": { + "10": { + "text": "REMOVED" + } + }, + "type": "value" + }, + { + "options": { + "0": { + "text": "STARTUP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 41 + }, + "id": 1306, + "options": { + "autoSizeColumns": true, + "autoSizePolygons": true, + "autoSizeRows": true, + "compositeConfig": { + "animationSpeed": "2500", + "composites": [], + "enabled": true + }, + "compositeGlobalAliasingEnabled": false, + "ellipseCharacters": 18, + "ellipseEnabled": true, + "globalAutoScaleFonts": false, + "globalClickthrough": "", + "globalClickthroughCustomTarget": "", + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughSanitizedEnabled": false, + "globalCompositeValueFontSize": 14, + "globalDecimals": 2, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalFillColor": "#0a55a1", + "globalGradientsEnabled": true, + "globalLabelFontSize": 12, + "globalOperator": "last", + "globalPolygonBorderColor": "#000000", + "globalPolygonBorderSize": 2, + "globalPolygonSize": 50, + "globalRegexPattern": "", + "globalShape": "hexagon_pointed_top", + "globalShowTimestampEnabled": false, + "globalShowTimestampFontSize": 12, + "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", + "globalShowTimestampPosition": "below_value", + "globalShowTimestampYOffset": 0, + "globalShowTooltipColumnHeadersEnabled": true, + "globalShowValueEnabled": true, + "globalTextFontAutoColor": "#000000", + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "globalTextFontFamily": "Inter", + "globalThresholdsConfig": [ + { + "color": "#299c46", + "state": 0, + "value": 1 + }, + { + "color": "#E0B400", + "state": 0, + "value": 2 + }, + { + "color": "#FA6400", + "state": 0, + "value": 7 + }, + { + "color": "#d44a3a", + "state": 2, + "value": 8 + } + ], + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalTooltipsShowValueEnabled": true, + "globalUnitFormat": "short", + "globalValueFontSize": 14, + "layoutDisplayLimit": 100, + "layoutNumColumns": 8, + "layoutNumRows": 8, + "overrideConfig": { + "overrides": [] + }, + "panelId": 0, + "radius": 100, + "sortByDirection": 1, + "sortByField": "name", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipPrimarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "tooltipSecondarySortDirection": 2 + }, + "pluginVersion": "2.1.15", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set!~\"$shard\",set!='',service_name=~\"$service_name\"})", + "hide": true, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + }, + { + "editorMode": "code", + "exemplar": false, + "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm!~\"$shard\"})", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "B" + } + ], + "title": "Config Servers", + "type": "grafana-polystat-panel" }, { - "options": { - "0": { - "text": "STARTUP" - } - }, - "type": "value" + "description": "Mongos is a routing service for MongoDB shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "0": { + "text": "DOWN" + } + }, + "type": "value" + }, + { + "options": { + "1": { + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 41 + }, + "id": 1308, + "options": { + "autoSizeColumns": true, + "autoSizePolygons": true, + "autoSizeRows": true, + "compositeConfig": { + "animationSpeed": "2500", + "composites": [], + "enabled": true + }, + "compositeGlobalAliasingEnabled": false, + "ellipseCharacters": 18, + "ellipseEnabled": true, + "globalAutoScaleFonts": false, + "globalClickthrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "globalClickthroughCustomTarget": "", + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughNewTabEnabled": true, + "globalClickthroughSanitizedEnabled": true, + "globalCompositeValueFontSize": 14, + "globalDecimals": 2, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalFillColor": "#8AB8FF", + "globalGradientsEnabled": true, + "globalLabelFontSize": 12, + "globalOperator": "last", + "globalPolygonBorderColor": "black", + "globalPolygonBorderSize": 2, + "globalPolygonSize": 50, + "globalRegexPattern": "", + "globalShape": "hexagon_pointed_top", + "globalShowTimestampEnabled": false, + "globalShowTimestampFontSize": 12, + "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", + "globalShowTimestampPosition": "below_value", + "globalShowTimestampYOffset": 0, + "globalShowTooltipColumnHeadersEnabled": true, + "globalShowValueEnabled": true, + "globalTextFontAutoColor": "#000000", + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "globalTextFontFamily": "Inter", + "globalThresholdsConfig": [ + { + "color": "#d44a3a", + "state": 2, + "value": 0 + }, + { + "color": "#299c46", + "state": 0, + "value": 1 + } + ], + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalTooltipsShowValueEnabled": true, + "globalUnitFormat": "ops", + "globalValueFontSize": 14, + "layoutDisplayLimit": 100, + "layoutNumColumns": 8, + "layoutNumRows": 8, + "overrideConfig": { + "overrides": [] + }, + "panelId": 0, + "radius": 100, + "sortByDirection": 1, + "sortByField": "name", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipPrimarySortDirection": 2, + "tooltipSecondarySortByField": "name", + "tooltipSecondarySortDirection": 2 + }, + "pluginVersion": "2.1.15", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (service_name) (mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name_mongos\"})", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "B" + } + ], + "title": "Mongos Routers", + "type": "grafana-polystat-panel" }, { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "1": { + "text": "PRIMARY" + } + }, + "type": "value" + }, + { + "options": { + "2": { + "text": "SECONDARY" + } + }, + "type": "value" + }, + { + "options": { + "7": { + "text": "ARBITER" + } + }, + "type": "value" + }, + { + "options": { + "8": { + "text": "DOWN" + } + }, + "type": "value" + }, + { + "options": { + "6": { + "text": "UNKNOWN" + } + }, + "type": "value" + }, + { + "options": { + "10": { + "text": "REMOVED" + } + }, + "type": "value" + }, + { + "options": { + "9": { + "text": "ROLLBACK" + } + }, + "type": "value" + }, + { + "options": { + "5": { + "text": "STARTUP2" + } + }, + "type": "value" + }, + { + "options": { + "3": { + "text": "RECOVERING" + } + }, + "type": "value" + }, + { + "options": { + "0": { + "text": "STARTUP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "Exporter is not connected" + } + }, + "type": "special" + }, + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 11, + "x": 7, + "y": 92 + }, + "id": 1310, + "options": { + "autoSizeColumns": true, + "autoSizePolygons": true, + "autoSizeRows": true, + "compositeConfig": { + "animationSpeed": "2500", + "composites": [], + "enabled": true + }, + "compositeGlobalAliasingEnabled": false, + "ellipseCharacters": 18, + "ellipseEnabled": true, + "globalAutoScaleFonts": false, + "globalClickthrough": "", + "globalClickthroughCustomTarget": "", + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughSanitizedEnabled": false, + "globalDecimals": 2, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalFillColor": "#0a55a1", + "globalFontSize": 12, + "globalGradientsEnabled": true, + "globalOperator": "last", + "globalPolygonBorderColor": "#000000", + "globalPolygonBorderSize": 2, + "globalPolygonSize": 50, + "globalRegexPattern": "", + "globalShape": "hexagon_pointed_top", + "globalShowTooltipColumnHeadersEnabled": true, + "globalShowValueEnabled": true, + "globalTextFontAutoColor": "#000000", + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "globalTextFontFamily": "Inter", + "globalThresholdsConfig": [ + { + "color": "#37872D", + "state": 0, + "value": 1 + }, + { + "color": "#E0B400", + "state": 0, + "value": 2 + }, + { + "color": "#8b8000", + "state": 0, + "value": 7 + }, + { + "color": "#d44a3a", + "state": 2, + "value": 8 + } + ], + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalUnitFormat": "short", + "layoutDisplayLimit": 100, + "layoutNumColumns": 8, + "layoutNumRows": 8, + "overrideConfig": { + "overrides": [] + }, + "panelId": 0, + "radius": 100, + "sortByDirection": 3, + "sortByField": "value", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipPrimarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "tooltipSecondarySortDirection": 2 + }, + "pluginVersion": "2.1.5", + "repeat": "shard", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$shard\"})", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" + } + ], + "title": "Shard - $shard", + "type": "grafana-polystat-panel" } - ] - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 1 - }, - "id": 1306, - "options": { - "autoSizeColumns": true, - "autoSizePolygons": true, - "autoSizeRows": true, - "compositeConfig": { - "animationSpeed": "2500", - "composites": [], - "enabled": true - }, - "compositeGlobalAliasingEnabled": false, - "ellipseCharacters": 18, - "ellipseEnabled": true, - "globalAutoScaleFonts": false, - "globalClickthrough": "", - "globalClickthroughCustomTarget": "", - "globalClickthroughCustomTargetEnabled": false, - "globalClickthroughNewTabEnabled": false, - "globalClickthroughSanitizedEnabled": false, - "globalCompositeValueFontSize": 14, - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalFillColor": "#0a55a1", - "globalGradientsEnabled": true, - "globalLabelFontSize": 12, - "globalOperator": "last", - "globalPolygonBorderColor": "#000000", - "globalPolygonBorderSize": 2, - "globalPolygonSize": 50, - "globalRegexPattern": "", - "globalShape": "hexagon_pointed_top", - "globalShowTimestampEnabled": false, - "globalShowTimestampFontSize": 12, - "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", - "globalShowTimestampPosition": "below_value", - "globalShowTimestampYOffset": 0, - "globalShowTooltipColumnHeadersEnabled": true, - "globalShowValueEnabled": true, - "globalTextFontAutoColor": "#000000", - "globalTextFontAutoColorEnabled": false, - "globalTextFontColor": "#000000", - "globalTextFontFamily": "Inter", - "globalThresholdsConfig": [ - { - "color": "#299c46", - "state": 0, - "value": 1 - }, - { - "color": "#E0B400", - "state": 0, - "value": 2 - }, - { - "color": "#FA6400", - "state": 0, - "value": 7 - }, - { - "color": "#d44a3a", - "state": 2, - "value": 8 - } ], - "globalTooltipsEnabled": true, - "globalTooltipsFontFamily": "Inter", - "globalTooltipsShowTimestampEnabled": true, - "globalTooltipsShowValueEnabled": true, - "globalUnitFormat": "short", - "globalValueFontSize": 14, - "layoutDisplayLimit": 100, - "layoutNumColumns": 8, - "layoutNumRows": 8, - "overrideConfig": { - "overrides": [] - }, - "panelId": 0, - "radius": 100, - "sortByDirection": 1, - "sortByField": "name", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipPrimarySortByField": "thresholdLevel", - "tooltipPrimarySortDirection": 2, - "tooltipSecondarySortByField": "value", - "tooltipSecondarySortDirection": 2 - }, - "pluginVersion": "2.1.15", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set!~\"$shard\",set!='',service_name=~\"$service_name\"})", - "hide": true, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "A" + "title": "Current Topology", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 }, - { - "editorMode": "code", - "exemplar": false, - "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm!~\"$shard\"})", - "hide": false, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "B" - } - ], - "title": "Config Servers", - "type": "grafana-polystat-panel" + "id": 1069, + "panels": [], + "title": "Overview", + "type": "row" }, { - "description": "Mongos is a routing service for MongoDB shard configurations that processes queries from the application layer, and determines the location of this data in the sharded cluster, in order to complete these operations. From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "0": { - "text": "DOWN" - } - }, - "type": "value" + "description": "Queries per second of all shards + config server replica set", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 0, + "links": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__field.labels.rs_nm}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 1227, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.6.4", + "targets": [ { - "options": { - "1": { - "text": "UP" - } - }, - "type": "value" + "editorMode": "code", + "exemplar": false, + "expr": "sum by (rs_nm) (rate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[$interval]) or irate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[5s]))", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{rs_nm}} ", + "range": false, + "refId": "B" }, { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "editorMode": "code", + "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))", + "hide": true, + "legendFormat": "mongos", + "range": true, + "refId": "A" } - ] - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 1 - }, - "id": 1308, - "options": { - "autoSizeColumns": true, - "autoSizePolygons": true, - "autoSizeRows": true, - "compositeConfig": { - "animationSpeed": "2500", - "composites": [], - "enabled": true - }, - "compositeGlobalAliasingEnabled": false, - "ellipseCharacters": 18, - "ellipseEnabled": true, - "globalAutoScaleFonts": false, - "globalClickthrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "globalClickthroughCustomTarget": "", - "globalClickthroughCustomTargetEnabled": false, - "globalClickthroughNewTabEnabled": true, - "globalClickthroughSanitizedEnabled": true, - "globalCompositeValueFontSize": 14, - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalFillColor": "#8AB8FF", - "globalGradientsEnabled": true, - "globalLabelFontSize": 12, - "globalOperator": "last", - "globalPolygonBorderColor": "black", - "globalPolygonBorderSize": 2, - "globalPolygonSize": 50, - "globalRegexPattern": "", - "globalShape": "hexagon_pointed_top", - "globalShowTimestampEnabled": false, - "globalShowTimestampFontSize": 12, - "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", - "globalShowTimestampPosition": "below_value", - "globalShowTimestampYOffset": 0, - "globalShowTooltipColumnHeadersEnabled": true, - "globalShowValueEnabled": true, - "globalTextFontAutoColor": "#000000", - "globalTextFontAutoColorEnabled": false, - "globalTextFontColor": "#000000", - "globalTextFontFamily": "Inter", - "globalThresholdsConfig": [ - { - "color": "#d44a3a", - "state": 2, - "value": 0 - }, - { - "color": "#299c46", - "state": 0, - "value": 1 - } ], - "globalTooltipsEnabled": true, - "globalTooltipsFontFamily": "Inter", - "globalTooltipsShowTimestampEnabled": true, - "globalTooltipsShowValueEnabled": true, - "globalUnitFormat": "ops", - "globalValueFontSize": 14, - "layoutDisplayLimit": 100, - "layoutNumColumns": 8, - "layoutNumRows": 8, - "overrideConfig": { - "overrides": [] - }, - "panelId": 0, - "radius": 100, - "sortByDirection": 1, - "sortByField": "name", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipPrimarySortByField": "thresholdLevel", - "tooltipPrimarySortDirection": 2, - "tooltipSecondarySortByField": "name", - "tooltipSecondarySortDirection": 2 - }, - "pluginVersion": "2.1.15", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (service_name) (mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name_mongos\"})", - "hide": false, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "B" - } - ], - "title": "Mongos Routers", - "type": "grafana-polystat-panel" + "title": "QPS of Services", + "type": "gauge" }, { - "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "1": { - "text": "PRIMARY" - } - }, - "type": "value" - }, - { - "options": { - "2": { - "text": "SECONDARY" - } - }, - "type": "value" - }, - { - "options": { - "7": { - "text": "ARBITER" - } - }, - "type": "value" - }, - { - "options": { - "8": { - "text": "DOWN" - } - }, - "type": "value" - }, - { - "options": { - "6": { - "text": "UNKNOWN" - } - }, - "type": "value" - }, - { - "options": { - "10": { - "text": "REMOVED" - } - }, - "type": "value" - }, - { - "options": { - "9": { - "text": "ROLLBACK" - } - }, - "type": "value" - }, - { - "options": { - "5": { - "text": "STARTUP2" - } - }, - "type": "value" - }, - { - "options": { - "3": { - "text": "RECOVERING" - } - }, - "type": "value" + "description": "Controls the compatibility version of MongoDB data files. Enabling newer version-specific features may cause datafile format to become incompatible with earlier versions of MongoDB.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" }, - { - "options": { - "0": { - "text": "STARTUP" - } - }, - "type": "value" + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 7 + }, + "id": 1302, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - { - "options": { - "match": "null", - "result": { - "text": "Exporter is not connected" - } - }, - "type": "special" + "showPercentChange": false, + "text": { + "valueSize": 20 }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "editorMode": "code", + "expr": "min by (cluster) (mongodb_fcv_feature_compatibility_version{environment=~\"$environment\", cluster=~\"$cluster\"})", + "instant": false, + "interval": "5m", + "legendFormat": "FCV", + "range": true, + "refId": "A" } - ] - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 11, - "x": 7, - "y": 6 - }, - "id": 1310, - "options": { - "autoSizeColumns": true, - "autoSizePolygons": true, - "autoSizeRows": true, - "compositeConfig": { - "animationSpeed": "2500", - "composites": [], - "enabled": true - }, - "compositeGlobalAliasingEnabled": false, - "ellipseCharacters": 18, - "ellipseEnabled": true, - "globalAutoScaleFonts": false, - "globalClickthrough": "", - "globalClickthroughCustomTarget": "", - "globalClickthroughCustomTargetEnabled": false, - "globalClickthroughNewTabEnabled": false, - "globalClickthroughSanitizedEnabled": false, - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalFillColor": "#0a55a1", - "globalFontSize": 12, - "globalGradientsEnabled": true, - "globalOperator": "last", - "globalPolygonBorderColor": "#000000", - "globalPolygonBorderSize": 2, - "globalPolygonSize": 50, - "globalRegexPattern": "", - "globalShape": "hexagon_pointed_top", - "globalShowTooltipColumnHeadersEnabled": true, - "globalShowValueEnabled": true, - "globalTextFontAutoColor": "#000000", - "globalTextFontAutoColorEnabled": false, - "globalTextFontColor": "#000000", - "globalTextFontFamily": "Inter", - "globalThresholdsConfig": [ - { - "color": "#37872D", - "state": 0, - "value": 1 - }, - { - "color": "#E0B400", - "state": 0, - "value": 2 - }, - { - "color": "#8b8000", - "state": 0, - "value": 7 - }, - { - "color": "#d44a3a", - "state": 2, - "value": 8 - } ], - "globalTooltipsEnabled": true, - "globalTooltipsFontFamily": "Inter", - "globalTooltipsShowTimestampEnabled": true, - "globalUnitFormat": "short", - "layoutDisplayLimit": 100, - "layoutNumColumns": 8, - "layoutNumRows": 8, - "overrideConfig": { - "overrides": [] - }, - "panelId": 0, - "radius": 100, - "sortByDirection": 3, - "sortByField": "value", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipPrimarySortByField": "thresholdLevel", - "tooltipPrimarySortDirection": 2, - "tooltipSecondarySortByField": "value", - "tooltipSecondarySortDirection": 2 - }, - "pluginVersion": "2.1.5", - "repeat": "shard", - "repeatDirection": "v", - "targets": [ - { - "editorMode": "code", - "expr": "min by (member_idx) (mongodb_rs_members_state{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$shard\"})", - "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "B" - } - ], - "title": "Shard - $shard", - "type": "grafana-polystat-panel" - } - ], - "title": "Current Topology", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1069, - "panels": [], - "title": "Overview", - "type": "row" - }, - { - "description": "Queries per second of all shards + config server replica set", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 0, - "links": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__field.labels.rs_nm}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 1227, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "title": "Feature Compatibility Version", + "type": "stat" }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.6.4", - "targets": [ { - "editorMode": "code", - "exemplar": false, - "expr": "sum by (rs_nm) (rate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[$interval]) or irate(mongodb_op_counters_total{environment=~\"$environment\",cluster=~\"$cluster\",type!=\"command\",rs_nm!~\"\"}[5s]))", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{rs_nm}} ", - "range": false, - "refId": "B" - }, - { - "editorMode": "code", - "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"})))", - "hide": true, - "legendFormat": "mongos", - "range": true, - "refId": "A" - } - ], - "title": "QPS of Services", - "type": "gauge" - }, - { - "description": "Controls the compatibility version of MongoDB data files. Enabling newer version-specific features may cause datafile format to become incompatible with earlier versions of MongoDB.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 7 - }, - "id": 1302, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "min by (cluster) (mongodb_fcv_feature_compatibility_version{environment=~\"$environment\", cluster=~\"$cluster\"})", - "instant": false, - "interval": "5m", - "legendFormat": "FCV", - "range": true, - "refId": "A" - } - ], - "title": "Feature Compatibility Version", - "type": "stat" - }, - { - "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 3, - "y": 7 - }, - "hideTimeOverride": true, - "id": 36, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Shards", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Shards", - "type": "stat" - }, - { - "description": "Number of mongos routers registered as part of the cluster", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 6, - "y": 7 - }, - "hideTimeOverride": true, - "id": 1298, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "__auto", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Mongos", - "type": "stat" - }, - { - "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard’s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 9, - "y": 7 - }, - "hideTimeOverride": true, - "id": 1028, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Draining Total", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Draining Shards", - "type": "stat" - }, - { - "description": "Total number of user-created databases", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 12, - "y": 7 - }, - "hideTimeOverride": true, - "id": 35, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Shards", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "DBs", - "type": "stat" - }, - { - "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "0": { - "text": "NO" + "description": "A shard contains a subset of sharded data for a sharded cluster. Together, the cluster’s shards hold the entire data set for the cluster.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" }, - "1": { - "text": "YES" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)" - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 15, - "y": 7 - }, - "hideTimeOverride": true, - "id": 5, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max(mongodb_mongos_sharding_balancer_enabled{environment=~\"$environment\",cluster=~\"$cluster\"})", - "format": "time_series", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Cluster Balanced", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Balancer Enabled", - "type": "stat" - }, - { - "description": "A chunk consists of a subset of sharded data.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 18, - "y": 7 - }, - "hideTimeOverride": true, - "id": 11, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum(mongodb_mongos_sharding_chunks_total{environment=~\"$environment\",cluster=~\"$cluster\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Chunks", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Chunks", - "type": "stat" - }, - { - "description": "Time since the most recent election of any member of the cluster", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 21, - "y": 7 - }, - "id": 1293, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Last Election", - "type": "stat" - }, - { - "description": "Show the data distribution between all the shards involved (only user-created collections)", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 10 - }, - "id": 1312, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 10, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum by(shard) (mongodb_collstats_storageStats_totalSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_state=\"1\"})", - "hide": false, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "B" - } - ], - "title": "Data distribution", - "type": "bargauge" - }, - { - "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "overrides": [] }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 7 }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/repl.*/" + "hideTimeOverride": true, + "id": 36, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "right" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 1269, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcountersRepl{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\",legacy_op_type!~\"(command|query|getmore)\"}[$interval]))", - "format": "time_series", - "hide": true, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "repl_{{legacy_op_type}}", - "range": true, - "refId": "A", - "step": 300 - }, - { - "editorMode": "code", - "expr": "sum by (environment, cluster) (rate(mongodb_ss_metrics_ttl_deletedDocuments{environment=~\"$environment\", rs_nm=~\"$set\",service_name=~\"$service_name\",cluster=~\"$cluster\"}[$interval]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "ttl_delete", - "range": true, - "refId": "B", - "step": 300 - }, - { - "editorMode": "code", - "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcounters{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\",service_name=~\"$service_name\",legacy_op_type!=\"command\"}[$interval]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{legacy_op_type}}", - "range": true, - "refId": "C", - "step": 300 - } - ], - "title": "Command Operations", - "type": "timeseries" - }, - { - "description": "Show the 5 collections that are most frequently read.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 1271, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 10, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "sizing": "auto", - "text": {}, - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5,sum by (environment, cluster,database,collection) (irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}[5s]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]))", - "hide": true, - "instant": true, - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "B" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Shards", + "type": "stat" }, { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5,sum by (environment, cluster,database,collection) ((rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5s]))", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "A" - } - ], - "title": "Top Hottest Collections by Read", - "type": "bargauge" - }, - { - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Number of mongos routers registered as part of the cluster", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 3, + "x": 6, + "y": 7 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "hideTimeOverride": true, + "id": 1298, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 25 - }, - "id": 1297, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\",service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[5m]) > 0))", - "interval": "$interval", - "legendFormat": "{{op_type}}", - "range": true, - "refId": "A" - } - ], - "title": "Operation Latencies", - "type": "timeseries" - }, - { - "description": "Show the 5 collections that are most frequently written to.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 25 - }, - "id": 1273, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 10, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5,sum by (environment,cluster,database,collection) (irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))", - "hide": true, - "instant": true, - "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "A" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Mongos", + "type": "stat" }, { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5,sum by (environment,cluster,database,collection) ((rate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))", - "hide": false, - "instant": true, - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "B" - } - ], - "title": "Top Hottest Collections by Write", - "type": "bargauge" - }, - { - "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "When you run removeShard, MongoDB drains the shard by using the balancer to move the shard’s chunks to other shards in the cluster. Once the shard is drained, MongoDB removes the shard from the cluster.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 3, + "x": 9, + "y": 7 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" + "hideTimeOverride": true, + "id": 1028, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ - { - "targetBlank": true, - "title": "MongoDB ReplSet Summary - ${__series.name}", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" - } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 33 - }, - "id": 30, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max(mongodb_mongos_sharding_shards_draining_total{environment=~\"$environment\",cluster=~\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Draining Total", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Draining Shards", + "type": "stat" }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ { - "editorMode": "code", - "expr": "sum(sum(rate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"} / mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}) by (set)", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Operations Per Shard", - "type": "timeseries" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto", - "wrapText": true - }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Service Name" + "description": "Total number of user-created databases", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "properties": [ - { - "id": "custom.align", - "value": "left" - }, - { - "id": "custom.width" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Version" + "gridPos": { + "h": 3, + "w": 3, + "x": 12, + "y": 7 }, - "properties": [ - { - "id": "custom.width", - "value": 200 - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 33 - }, - "hideTimeOverride": true, - "id": 1289, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "min by (service_name,mongodb) ((mongodb_mongos_sharding_shards_total) * on (service_name) group_left (mongodb) (mongodb_version_info))", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "__auto", - "range": false, - "refId": "C" - }, - { - "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", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "__auto", - "range": false, - "refId": "D" - } - ], - "timeFrom": "1m", - "title": "MongoDB Versions", - "transformations": [ - { - "id": "seriesToRows", - "options": {} - }, - { - "id": "extractFields", - "options": { - "format": "kvp", - "keepTime": false, - "replace": false, - "source": "Metric" - } - }, - { - "id": "calculateField", - "options": { - "alias": "Service Name", - "mode": "reduceRow", - "reduce": { - "include": [ - "service_name", - "member_idx" - ], - "reducer": "lastNotNull" + "hideTimeOverride": true, + "id": 35, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true }, - "replaceFields": false - } + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "sum(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "DBs", + "type": "stat" }, { - "id": "organize", - "options": { - "excludeByName": { - "Metric": true, - "Time": true, - "Value": true, - "member_idx": true, - "service_name": true + "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "0": { + "text": "NO" + }, + "1": { + "text": "YES" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 1 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "includeByName": {}, - "indexByName": { - "Metric": 1, - "Service Name": 3, - "Time": 0, - "Value": 2, - "member_idx": 6, - "mongodb": 4, - "service_name": 5 + "gridPos": { + "h": 3, + "w": 3, + "x": 15, + "y": 7 }, - "renameByName": { - "mongodb": "Version" - } - } - } - ], - "type": "table" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 1285, - "panels": [ - { - "description": "ReplSet statuses during the select time range.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "fillOpacity": 100, - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "hideTimeOverride": true, + "id": 5, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "insertNulls": false, - "lineWidth": 0, - "spanNulls": true - }, - "mappings": [ + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ { - "options": { - "0": { - "color": "semi-dark-red", - "index": 11, - "text": "STARTUP" - }, - "1": { - "color": "rgb(107, 152, 102)", - "index": 4, - "text": "PRIMARY" - }, - "2": { - "color": "rgb(193, 159, 20)", - "index": 3, - "text": "SECONDARY" - }, - "3": { - "color": "semi-dark-red", - "index": 10, - "text": "RECOVERING" - }, - "5": { - "color": "semi-dark-red", - "index": 9, - "text": "STARTUP2" - }, - "6": { - "color": "semi-dark-red", - "index": 8, - "text": "UNKNOWN" - }, - "7": { - "color": "#8B8000", - "index": 1, - "text": "ARBITER" - }, - "8": { - "color": "semi-dark-red", - "index": 7, - "text": "DOWN" - }, - "9": { - "color": "semi-dark-red", - "index": 6, - "text": "ROLLBACK" + "editorMode": "code", + "expr": "max(mongodb_mongos_sharding_balancer_enabled{environment=~\"$environment\",cluster=~\"$cluster\"})", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Cluster Balanced", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Balancer Enabled", + "type": "stat" + }, + { + "description": "A chunk consists of a subset of sharded data.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "10": { - "color": "semi-dark-red", - "index": 5, - "text": "REMOVED" + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] }, - "null": { - "color": "#FF7383", - "index": 2, - "text": "Exporter is not connected" - } - }, - "type": "value" + "unit": "none" }, - { - "options": { - "result": { - "index": 0, - "text": "N/A" - } - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 1281, - "options": { - "alignValue": "right", - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "gridPos": { + "h": 3, + "w": 3, + "x": 18, + "y": 7 }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "auto", - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "6.5.1", - "repeat": "set", - "repeatDirection": "h", - "targets": [ - { - "editorMode": "code", - "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}}", - "range": true, - "refId": "A" - } - ], - "title": "$set Node States", - "type": "state-timeline" - } - ], - "title": "Node States", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 81, - "panels": [ - { - "description": "TCP connections (Incoming) in mongod processes.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "hideTimeOverride": true, + "id": 11, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" + "showPercentChange": false, + "text": { + "valueSize": 20 }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ { - "targetBlank": true, - "title": "MongoDB ReplSet Summary - ${__series.name}", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + "editorMode": "code", + "expr": "sum(mongodb_mongos_sharding_chunks_total{environment=~\"$environment\",cluster=~\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Chunks", + "range": true, + "refId": "A", + "step": 300 } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Total" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#C4162A", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 43 - }, - "id": 37, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg by (rs_nm) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"current\", rs_nm!=\"\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{rs_nm}}", - "range": true, - "refId": "B", - "step": 300 - } - ], - "title": "Current Connections Per Shard", - "type": "timeseries" + ], + "timeFrom": "1m", + "title": "Chunks", + "type": "stat" }, { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" + "description": "Time since the most recent election of any member of the cluster", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" }, - "thresholdsStyle": { - "mode": "line" - } - }, - "decimals": 2, - "fieldMinMax": false, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 0 - } - ] - }, - "unit": "short" + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 154 - }, - "id": 1177, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 7 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"available\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", - "hide": false, - "interval": "", - "legendFormat": "{{service_name}}", - "range": true, - "refId": "A" - } - ], - "title": "Available Connections", - "type": "timeseries" - } - ], - "title": "Connections", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 43 - }, - "id": 1279, - "panels": [ - { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" + "id": 1293, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "filterable": false, - "inspect": false - }, - "mappings": [ + "showPercentChange": false, + "text": { + "valueSize": 20 + }, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ { - "options": { - "0": { - "color": "dark-blue", - "index": 0 - } - }, - "type": "value" + "editorMode": "code", + "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 } - ], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - } + ], + "title": "Last Election", + "type": "stat" + }, + { + "description": "Show the data distribution between all the shards involved (only user-created collections)", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "bytes" + }, + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 169 - }, - "id": 1043, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": true + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 10 }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (rs_nm, database) (mongodb_mongod_db_collections_total{environment=~\"$environment\",cluster=\"$cluster\",database!~\"admin|config|system|local\",rs_nm=~\"$set\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{rs_nm}} | Collections", - "range": false, - "refId": "C" - } - ], - "title": "Number of Collections in Shards", - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "rs_nm", - "rowField": "database", - "valueField": "Value" - } + "id": 1312, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "database\\rs_nm": "DB Name", - "shard0": "" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "sum by(shard) (mongodb_collstats_storageStats_totalSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_state=\"1\"})", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "B" } - } - } - ], - "type": "table" + ], + "title": "Data distribution", + "type": "bargauge" }, { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" - }, - "filterable": true, - "inspect": true - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - }, - "type": "value" - } - ], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Collection Name" + "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "auto" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/repl.*/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + } + ] } - } ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 177 - }, - "id": 1030, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": true }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})", - "format": "table", - "hide": true, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "A" + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 }, - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "B" - } - ], - "title": "Size of Collections in Shards", - "transformations": [ - { - "id": "calculateField", - "options": { - "binary": { - "left": "collection", - "reducer": "sum", - "right": "database" - }, - "mode": "reduceRow", - "reduce": { - "include": [ - "database", - "collection" - ], - "reducer": "allValues" + "id": 1269, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "replaceFields": false - } - }, - { - "id": "groupingToMatrix", - "options": { - "columnField": "rs_nm", - "rowField": "All values", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "All values\\rs_nm": "All values", - "collection\\rs_nm": "Collection Name", - "db\\shard": "DB Name", - "rs1": "" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" } - } - }, - { - "id": "extractFields", - "options": { - "source": "All values" - } }, - { - "id": "organize", - "options": { - "excludeByName": { - "All values": true + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcountersRepl{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\",legacy_op_type!~\"(command|query|getmore)\"}[$interval]))", + "format": "time_series", + "hide": true, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "repl_{{legacy_op_type}}", + "range": true, + "refId": "A", + "step": 300 }, - "indexByName": { - "0": 1, - "1": 0, - "All values": 2, - "s1": 3, - "s2": 4 + { + "editorMode": "code", + "expr": "sum by (environment, cluster) (rate(mongodb_ss_metrics_ttl_deletedDocuments{environment=~\"$environment\", rs_nm=~\"$set\",service_name=~\"$service_name\",cluster=~\"$cluster\"}[$interval]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "ttl_delete", + "range": true, + "refId": "B", + "step": 300 }, - "renameByName": { - "0": "Collection Name", - "1": "DB Name" + { + "editorMode": "code", + "expr": "sum by (environment, cluster, legacy_op_type) (rate(mongodb_ss_opcounters{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\",service_name=~\"$service_name\",legacy_op_type!=\"command\"}[$interval]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{legacy_op_type}}", + "range": true, + "refId": "C", + "step": 300 } - } - } - ], - "type": "table" + ], + "title": "Command Operations", + "type": "timeseries" }, { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" - }, - "filterable": true, - "inspect": true - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - }, - "type": "value" - } - ], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - }, - "unit": "none" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Collection Name" + "description": "Show the 5 collections that are most frequently read.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "type": "auto" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 185 - }, - "id": 1305, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": true + "overrides": [] }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})", - "format": "table", - "hide": true, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "A" + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 }, - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "B" - } - ], - "title": "Count of Documents in Shards", - "transformations": [ - { - "id": "calculateField", - "options": { - "binary": { - "left": "collection", - "reducer": "sum", - "right": "database" + "id": 1271, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "mode": "reduceRow", - "reduce": { - "include": [ - "database", - "collection" - ], - "reducer": "allValues" + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "replaceFields": false - } + "showUnfilled": true, + "sizing": "auto", + "text": {}, + "valueMode": "color" }, - { - "id": "groupingToMatrix", - "options": { - "columnField": "rs_nm", - "rowField": "All values", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "All values\\rs_nm": "All values", - "collection\\rs_nm": "Collection Name", - "db\\shard": "DB Name", - "rs1": "" - } - } - }, - { - "id": "extractFields", - "options": { - "source": "All values" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "All values": true - }, - "indexByName": { - "0": 1, - "1": 0, - "All values": 2, - "s1": 3, - "s2": 4 + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "topk (5,sum by (environment, cluster,database,collection) (irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}[5s]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]))", + "hide": true, + "instant": true, + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "B" }, - "renameByName": { - "0": "Collection Name", - "1": "DB Name" + { + "editorMode": "code", + "exemplar": false, + "expr": "topk (5,sum by (environment, cluster,database,collection) ((rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5s]))", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "A" } - } - } - ], - "type": "table" - } - ], - "title": "Collection Details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 44 - }, - "id": 1199, - "panels": [ + ], + "title": "Top Hottest Collections by Read", + "type": "bargauge" + }, { - "description": "Show the chunk distribution between all the shards involved", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "percentunit" + "description": "Average latency of operations (classified by read, write, or (other) command)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "µs" + }, + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 194 - }, - "id": 1313, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 25 }, - "maxVizHeight": 300, - "minVizHeight": 10, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "id": 1297, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (shard) (last_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[1m])) / sum(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"})", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{shard}} ", - "range": false, - "refId": "A" - } - ], - "title": "Chunk distribution", - "type": "bargauge" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by (op_type) (rate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{environment=~\"$environment\", cluster=~\"$cluster\",service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"}[5m]) > 0))", + "interval": "$interval", + "legendFormat": "{{op_type}}", + "range": true, + "refId": "A" + } + ], + "title": "Operation Latencies", + "type": "timeseries" }, { - "description": "A chunk consists of a subset of sharded data.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" + "description": "Show the 5 collections that are most frequently written to.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" }, - "filterable": false, - "inspect": false - }, - "mappings": [], - "noValue": "-", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - } + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 25 }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Shard Name" + "id": 1273, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__value.text}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 201 - }, - "id": 1200, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, - "showHeader": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{shard}} | Chunks", - "range": false, - "refId": "A" - } - ], - "title": "Amount of Chunks in Shards", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "topk (5,sum by (environment,cluster,database,collection) (irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))", + "hide": true, + "instant": true, + "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "A" }, - "indexByName": {}, - "renameByName": { - "Value": "Chunks", - "shard": "Shard Name" + { + "editorMode": "code", + "exemplar": false, + "expr": "topk (5,sum by (environment,cluster,database,collection) ((rate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[$interval]) or irate(mongodb_top_insert_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_remove_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"}+mongodb_top_update_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\"})[5m]))", + "hide": false, + "instant": true, + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "B" } - } - } - ], - "type": "table" + ], + "title": "Top Hottest Collections by Write", + "type": "bargauge" }, { - "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary - ${__series.name}", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 33 + }, + "id": 30, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" } - }, - "decimals": 2, - "links": [ + }, + "pluginVersion": "11.6.4", + "targets": [ { - "targetBlank": true, - "title": "MongoDB ReplSet Summary", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + "editorMode": "code", + "expr": "sum(sum(rate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"} / mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}) by (set)", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{set}}", + "range": true, + "refId": "A", + "step": 300 } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "cps" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 18, - "x": 6, - "y": 201 - }, - "id": 1201, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "exemplar": true, - "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{shard}}", - "refId": "A" - } - ], - "title": "Dynamic of Chunks", - "type": "timeseries" + ], + "title": "Operations Per Shard", + "type": "timeseries" }, { - "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto", + "wrapText": true + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Service Name" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + }, + { + "id": "custom.width" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Version" + }, + "properties": [ + { + "id": "custom.width", + "value": 200 + } + ] + } ] - }, - "unit": "short" }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 209 - }, - "id": 1216, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "exemplar": true, - "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{event}}", - "refId": "A" - } - ], - "title": "Chunks Move Events", - "type": "timeseries" - }, - { - "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "hideTimeOverride": true, + "id": 1289, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "min by (service_name,mongodb) ((mongodb_mongos_sharding_shards_total) * on (service_name) group_left (mongodb) (mongodb_version_info))", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "__auto", + "range": false, + "refId": "C" }, - "thresholdsStyle": { - "mode": "off" + { + "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", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "__auto", + "range": false, + "refId": "D" } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 216 - }, - "id": 1212, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "exemplar": true, - "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{event}}", - "refId": "A" - } - ], - "title": "Chunks Split Events", - "type": "timeseries" - } - ], - "title": "Chunks in Shards", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 45 - }, - "id": 97, - "panels": [ - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + ], + "timeFrom": "1m", + "title": "MongoDB Versions", + "transformations": [ + { + "id": "seriesToRows", + "options": {} }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + { + "id": "extractFields", + "options": { + "format": "kvp", + "keepTime": false, + "replace": false, + "source": "Metric" + } }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + { + "id": "calculateField", + "options": { + "alias": "Service Name", + "mode": "reduceRow", + "reduce": { + "include": [ + "service_name", + "member_idx" + ], + "reducer": "lastNotNull" + }, + "replaceFields": false + } }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ { - "targetBlank": true, - "title": "MongoDB ReplSet Summary - ${__series.name}", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + "id": "organize", + "options": { + "excludeByName": { + "Metric": true, + "Time": true, + "Value": true, + "member_idx": true, + "service_name": true + }, + "includeByName": {}, + "indexByName": { + "Metric": 1, + "Service Name": 3, + "Time": 0, + "Value": 2, + "member_idx": 6, + "mongodb": 4, + "service_name": 5 + }, + "renameByName": { + "mongodb": "Version" + } + } } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" + ], + "type": "table" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 41 }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 46 - }, - "id": 14, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "id": 1285, + "panels": [ + { + "description": "ReplSet statuses during the select time range.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "fillOpacity": 100, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": true + }, + "mappings": [ + { + "options": { + "0": { + "color": "semi-dark-red", + "index": 11, + "text": "STARTUP" + }, + "1": { + "color": "rgb(107, 152, 102)", + "index": 4, + "text": "PRIMARY" + }, + "10": { + "color": "semi-dark-red", + "index": 5, + "text": "REMOVED" + }, + "2": { + "color": "rgb(193, 159, 20)", + "index": 3, + "text": "SECONDARY" + }, + "3": { + "color": "semi-dark-red", + "index": 10, + "text": "RECOVERING" + }, + "5": { + "color": "semi-dark-red", + "index": 9, + "text": "STARTUP2" + }, + "6": { + "color": "semi-dark-red", + "index": 8, + "text": "UNKNOWN" + }, + "7": { + "color": "#8B8000", + "index": 1, + "text": "ARBITER" + }, + "8": { + "color": "semi-dark-red", + "index": 7, + "text": "DOWN" + }, + "9": { + "color": "semi-dark-red", + "index": 6, + "text": "ROLLBACK" + }, + "null": { + "color": "#FF7383", + "index": 2, + "text": "Exporter is not connected" + } + }, + "type": "value" + }, + { + "options": { + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 42 + }, + "id": 1281, + "options": { + "alignValue": "right", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "6.5.1", + "repeat": "set", + "repeatDirection": "h", + "targets": [ + { + "editorMode": "code", + "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}}", + "range": true, + "refId": "A" + } + ], + "title": "$set Node States", + "type": "state-timeline" + } + ], + "title": "Node States", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 42 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval])) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m])) by (service_name,set))", - "hide": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Replication Lag by Shard", - "type": "timeseries" + "id": 81, + "panels": [ + { + "description": "TCP connections (Incoming) in mongod processes.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary - ${__series.name}", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#C4162A", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 43 + }, + "id": 37, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by (rs_nm) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"current\", rs_nm!=\"\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{rs_nm}}", + "range": true, + "refId": "B", + "step": 300 + } + ], + "title": "Current Connections Per Shard", + "type": "timeseries" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "line" + } + }, + "decimals": 2, + "fieldMinMax": false, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 0 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 82 + }, + "id": 1177, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$set\", service_name=~\"$service_name\", state=\"available\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$set\", service_name=~\"$service_name\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", + "hide": false, + "interval": "", + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Available Connections", + "type": "timeseries" + } + ], + "title": "Connections", + "type": "row" }, { - "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 43 + }, + "id": 1279, + "panels": [ + { + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0 + } + }, + "type": "value" + } + ], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 1043, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" + } + ] + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (rs_nm, database) (mongodb_mongod_db_collections_total{environment=~\"$environment\",cluster=\"$cluster\",database!~\"admin|config|system|local\",rs_nm=~\"$set\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{rs_nm}} | Collections", + "range": false, + "refId": "C" + } + ], + "title": "Number of Collections in Shards", + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "rs_nm", + "rowField": "database", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "database\\rs_nm": "DB Name", + "shard0": "" + } + } + } + ], + "type": "table" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + { + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": true + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + }, + "type": "value" + } + ], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Collection Name" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "auto" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 52 + }, + "id": 1030, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})", + "format": "table", + "hide": true, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "range": false, + "refId": "A" + }, + { + "editorMode": "code", + "exemplar": false, + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "range": false, + "refId": "B" + } + ], + "title": "Size of Collections in Shards", + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "collection", + "reducer": "sum", + "right": "database" + }, + "mode": "reduceRow", + "reduce": { + "include": [ + "database", + "collection" + ], + "reducer": "allValues" + }, + "replaceFields": false + } + }, + { + "id": "groupingToMatrix", + "options": { + "columnField": "rs_nm", + "rowField": "All values", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "All values\\rs_nm": "All values", + "collection\\rs_nm": "Collection Name", + "db\\shard": "DB Name", + "rs1": "" + } + } + }, + { + "id": "extractFields", + "options": { + "source": "All values" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "All values": true + }, + "indexByName": { + "0": 1, + "1": 0, + "All values": 2, + "s1": 3, + "s2": 4 + }, + "renameByName": { + "0": "Collection Name", + "1": "DB Name" + } + } + } + ], + "type": "table" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + { + "description": "Collections become fragmented over time when there are multiple insert/delete operations", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 60 + }, + "id": 1327, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": true, + "displayName": "Fragmentation (estimated)" + } + ] + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_freeStorageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$shard\", service_name=~\"$service_name\", db !~\"admin|config\"} /\nmongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$shard\", service_name=~\"$service_name\", db !~\"admin|config\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{collection}}", + "range": false, + "refId": "A" + } + ], + "title": "Fragmentation Analysis", + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": true, + "rs_nm": false + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 1, + "collection": 3, + "database": 2, + "environment": 7, + "rs_nm": 4, + "service_name": 5 + }, + "renameByName": { + "Value": "Fragmentation (estimated)", + "collection": "Collection Name", + "database": "DB Name", + "db\\shard": "DB Name", + "rs1": "", + "rs_nm": "Shard", + "service_name": "Node" + } + } + }, + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Fragmentation (estimated)" + } + ] + } + }, + { + "id": "limit", + "options": { + "limitField": "100" + } + } + ], + "type": "table" }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [ { - "targetBlank": true, - "title": "MongoDB ReplSet Summary - ${__series.name}", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": true + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + }, + "type": "value" + } + ], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "none" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Collection Name" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "type": "auto" + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 68 + }, + "id": 1305, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": true + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [] + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$shard\"})", + "format": "table", + "hide": true, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "range": false, + "refId": "A" + }, + { + "editorMode": "code", + "exemplar": false, + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "range": false, + "refId": "B" + } + ], + "title": "Count of Documents in Shards", + "transformations": [ + { + "id": "calculateField", + "options": { + "binary": { + "left": "collection", + "reducer": "sum", + "right": "database" + }, + "mode": "reduceRow", + "reduce": { + "include": [ + "database", + "collection" + ], + "reducer": "allValues" + }, + "replaceFields": false + } + }, + { + "id": "groupingToMatrix", + "options": { + "columnField": "rs_nm", + "rowField": "All values", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "All values\\rs_nm": "All values", + "collection\\rs_nm": "Collection Name", + "db\\shard": "DB Name", + "rs1": "" + } + } + }, + { + "id": "extractFields", + "options": { + "source": "All values" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "All values": true + }, + "indexByName": { + "0": 1, + "1": 0, + "All values": 2, + "s1": 3, + "s2": 4 + }, + "renameByName": { + "0": "Collection Name", + "1": "DB Name" + } + } + } + ], + "type": "table" } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 8, - "y": 46 - }, - "id": 27, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "expr": "max(max(mongodb_mongod_replset_oplog_head_timestamp{cluster=\"$cluster\"}-mongodb_mongod_replset_oplog_tail_timestamp{cluster=\"$cluster\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "refId": "A", - "step": 300 - } - ], - "title": "Oplog Range by Shard", - "type": "timeseries" + ], + "title": "Collection Details", + "type": "row" }, { - "description": "Flow control count and time", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 76 + }, + "id": 1199, + "panels": [ + { + "description": "Show the chunk distribution between all the shards involved", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 112 + }, + "id": 1313, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (shard) (last_over_time(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[1m])) / sum(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"})", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{shard}} ", + "range": false, + "refId": "A" + } + ], + "title": "Chunk distribution", + "type": "bargauge" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + { + "description": "A chunk consists of a subset of sharded data.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false + }, + "mappings": [], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Shard Name" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?${cluster:queryparam}&var-rs_nm=${__value.text}&${interval:queryparam}&${__url_time_range}&${environment:queryparam}" + } + ] + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 6, + "x": 0, + "y": 119 + }, + "id": 1200, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{shard}} | Chunks", + "range": false, + "refId": "A" + } + ], + "title": "Amount of Chunks in Shards", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": { + "Value": "Chunks", + "shard": "Shard Name" + } + } + } + ], + "type": "table" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + { + "description": "The sharding operation creates the initial chunk(s) to cover the entire range of the shard key values. The number of chunks created depends on the configured chunk size. After the initial chunk creation, the balancer migrates these initial chunks across the shards as appropriate as well as manages the chunk distribution going forward.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "cps" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 18, + "x": 6, + "y": 119 + }, + "id": 1201, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "exemplar": true, + "expr": "avg by (shard) (rate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[$interval]) or irate(mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{shard}}", + "refId": "A" + } + ], + "title": "Dynamic of Chunks", + "type": "timeseries" }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "µs" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/fc_count.*/" + { + "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 127 + }, + "id": 1216, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "exemplar": true, + "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*moveChunk.*\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{event}}", + "refId": "A" + } + ], + "title": "Chunks Move Events", + "type": "timeseries" }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.axisPlacement", - "value": "right" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 8, - "x": 16, - "y": 46 - }, - "id": 1324, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", - "interval": "$interval", - "legendFormat": "fc_count", - "range": true, - "refId": "A" - }, - { - "editorMode": "code", - "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", - "hide": false, - "interval": "$interval", - "legendFormat": "fc_time", - "range": true, - "refId": "B" - } - ], - "title": "Flow Control", - "type": "timeseries" + { + "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 134 + }, + "id": 1212, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "exemplar": true, + "expr": "avg by (event) (rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*split.*\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{event}}", + "refId": "A" + } + ], + "title": "Chunks Split Events", + "type": "timeseries" + } + ], + "title": "Chunks in Shards", + "type": "row" }, { - "datasource": { - "type": "prometheus" - }, - "description": "Shows the average hourly oplog data written to cache by the Primary server.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 77 + }, + "id": 97, + "panels": [ + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary - ${__series.name}", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 113 + }, + "id": 14, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval])) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m])) by (service_name,set))", + "hide": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Replication Lag by Shard", + "type": "timeseries" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + { + "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary - ${__series.name}", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 8, + "y": 113 + }, + "id": 27, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "expr": "max(max(mongodb_mongod_replset_oplog_head_timestamp{cluster=\"$cluster\"}-mongodb_mongod_replset_oplog_tail_timestamp{cluster=\"$cluster\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{set}}", + "refId": "A", + "step": 300 + } + ], + "title": "Oplog Range by Shard", + "type": "timeseries" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + { + "description": "Flow control count and time", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/fc_count.*/" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 16, + "y": 113 + }, + "id": 1324, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", + "interval": "$interval", + "legendFormat": "fc_count", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", + "hide": false, + "interval": "$interval", + "legendFormat": "fc_time", + "range": true, + "refId": "B" + } + ], + "title": "Flow Control", + "type": "timeseries" }, - "thresholdsStyle": { - "mode": "off" + { + "datasource": { + "type": "prometheus" + }, + "description": "Shows the average hourly oplog data written to cache by the Primary server.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 121 + }, + "id": 1299, + "maxPerRow": 3, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "service_name", + "repeatDirection": "h", + "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" + } + ], + "title": "Oplog GB/Hour - $service_name", + "type": "timeseries" } - }, - "decimals": 2, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 54 - }, - "id": 1299, - "maxPerRow": 3, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + ], + "title": "Replication", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 78 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "service_name", - "repeatDirection": "h", - "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" - } - ], - "title": "Oplog GB/Hour - $service_name", - "type": "timeseries" + "id": 1326, + "panels": [ + { + "datasource": "Metrics", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false, + "width": 100 + }, + "decimals": 2, + "mappings": [ + { + "options": { + "-": { + "index": 1, + "text": "No Data" + }, + "0": { + "color": "#8b0000", + "index": 0, + "text": "No Data" + } + }, + "type": "value" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + }, + { + "color": "orange", + "value": 10 + }, + { + "color": "green", + "value": 20 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "node_name" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + }, + { + "id": "custom.width" + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #D" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #F" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "unit", + "value": "percent" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #G" + }, + "properties": [ + { + "id": "unit", + "value": "percent" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 170 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #E" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 114 + }, + "id": 1309, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (node_name) (time() - container_start_time_seconds{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) ((node_time_seconds{node_name=~\"$node_name\"} - node_boot_time_seconds{node_name=~\"$node_name\"}) or (time() - node_boot_time_seconds{node_name=~\"$node_name\"}))", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Uptime", + "refId": "A" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Load", + "range": false, + "refId": "B" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "clamp_max(avg by (node_name) (container_memory_usage_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"} * 100 / container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"}),100) or avg by (node_name) ((node_memory_MemAvailable_bytes{node_name=~\"$node_name\"} or (node_memory_MemFree_bytes{node_name=~\"$node_name\"} + node_memory_Buffers_bytes{node_name=~\"$node_name\"} + node_memory_Cached_bytes{node_name=~\"$node_name\"})) / node_memory_MemTotal_bytes{node_name=~\"$node_name\"} * 100)", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Memory", + "range": false, + "refId": "C" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | RAM", + "range": false, + "refId": "D" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Virtual", + "refId": "E" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Disk", + "refId": "F" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "min by (node_name) (node_filesystem_free_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"}/node_filesystem_size_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"})*100", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Min Space", + "refId": "G" + } + ], + "title": "Nodes Overview", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "agent_id": true, + "agent_type": true, + "environment": true, + "instance": true, + "job": true, + "machine_id": true, + "node_id": true, + "node_name": false, + "node_type": true, + "service_name": false + }, + "indexByName": { + "Time": 0, + "Value #A": 3, + "Value #B": 5, + "Value #C": 6, + "Value #D": 2, + "Value #E": 8, + "Value #F": 4, + "Value #G": 7, + "node_name": 1 + }, + "renameByName": { + "Value #A": "Uptime", + "Value #B": "Load Average", + "Value #C": "Memory Available", + "Value #D": "RAM", + "Value #E": "Virtual Memory", + "Value #F": "Disk Space", + "Value #G": "Min Space Available", + "node_name": "Node Name", + "service_name": "Service Name" + } + } + } + ], + "type": "table" + } + ], + "title": "Nodes Summary", + "type": "row" } - ], - "title": "Replication", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 46 - }, - "id": 1326, - "panels": [ - { - "datasource": "Metrics", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" + ], + "preload": false, + "refresh": false, + "schemaVersion": 41, + "tags": [ + "MongoDB_HA", + "Percona" + ], + "templating": { + "list": [ + { + "auto": true, + "auto_count": 200, + "auto_min": "1s", + "current": { + "text": "$__auto", + "value": "$__auto" }, - "filterable": false, - "inspect": false, - "width": 100 - }, - "decimals": 2, - "mappings": [ - { - "options": { - "0": { - "color": "#8b0000", - "index": 0, - "text": "No Data" + "label": "Interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "1s", + "value": "1s" + }, + { + "selected": false, + "text": "5s", + "value": "5s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" }, - "-": { - "index": 1, - "text": "No Data" + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" } - }, - "type": "value" - } - ], - "noValue": "-", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "orange", - "value": 10 - }, - { - "color": "green", - "value": 20 - } - ] - } + ], + "query": "1s,5s,1m,5m,1h,6h,1d", + "refresh": 2, + "type": "interval" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "node_name" - }, - "properties": [ - { - "id": "custom.align", - "value": "left" - }, - { - "id": "custom.width" - }, - { - "id": "links", + { + "current": { + "text": "All", "value": [ - { - "title": "", - "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}" - } + "$__all" ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #A" }, - "properties": [ - { - "id": "unit", - "value": "s" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #D" - }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #F" - }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #C" - }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #G" + "definition": "label_values({__name__=~\"mongodb_up\"}, environment)", + "includeAll": true, + "label": "Environment", + "multi": true, + "name": "environment", + "options": [], + "query": { + "query": "label_values({__name__=~\"mongodb_up\"}, environment)", + "refId": "Metrics-environment-Variable-Query" }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 170 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #E" - }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - }, - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #B" - }, - "properties": [ - { - "id": "custom.width", - "value": 120 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 262 - }, - "id": 1309, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, - "showHeader": true - }, - "pluginVersion": "11.6.4", - "targets": [ { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "avg by (node_name) (time() - container_start_time_seconds{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) ((node_time_seconds{node_name=~\"$node_name\"} - node_boot_time_seconds{node_name=~\"$node_name\"}) or (time() - node_boot_time_seconds{node_name=~\"$node_name\"}))", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Uptime", - "refId": "A" + "allowCustomValue": false, + "current": { + "text": "", + "value": "" + }, + "definition": "label_values(mongodb_rs_members_state{environment=~\"$environment\", cl_role=\"configsvr\"},cluster)", + "includeAll": false, + "label": "Cluster", + "name": "cluster", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(mongodb_rs_members_state{environment=~\"$environment\", cl_role=\"configsvr\"},cluster)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Load", - "range": false, - "refId": "B" + "current": { + "text": "All", + "value": "$__all" + }, + "definition": "label_values(mongodb_mongos_db_collections_total{environment=~\"$environment\", cluster=~\"$cluster\"},shard)", + "hide": 2, + "includeAll": true, + "label": "Shard Name", + "multi": true, + "name": "shard", + "options": [], + "query": { + "qryType": 1, + "query": "label_values(mongodb_mongos_db_collections_total{environment=~\"$environment\", cluster=~\"$cluster\"},shard)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "clamp_max(avg by (node_name) (container_memory_usage_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"} * 100 / container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"}),100) or avg by (node_name) ((node_memory_MemAvailable_bytes{node_name=~\"$node_name\"} or (node_memory_MemFree_bytes{node_name=~\"$node_name\"} + node_memory_Buffers_bytes{node_name=~\"$node_name\"} + node_memory_Cached_bytes{node_name=~\"$node_name\"})) / node_memory_MemTotal_bytes{node_name=~\"$node_name\"} * 100)", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Memory", - "range": false, - "refId": "C" + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "includeAll": true, + "label": "Replica Set", + "multi": true, + "name": "set", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | RAM", - "range": false, - "refId": "D" + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", + "hide": 2, + "includeAll": true, + "label": "Node", + "multi": true, + "name": "service_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Virtual", - "refId": "E" + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "definition": "label_values(mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"},node_name)", + "hide": 2, + "includeAll": true, + "label": "Node Name", + "multi": true, + "name": "node_name", + "options": [], + "query": { + "qryType": 5, + "query": "label_values(mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"},node_name)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Disk", - "refId": "F" + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}==1)", + "hide": 2, + "includeAll": true, + "multi": true, + "name": "primary", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}==1)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/.*service_name=\"(.*)\",service_type.*/", + "type": "query" }, { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "min by (node_name) (node_filesystem_free_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"}/node_filesystem_size_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"})*100", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Min Space", - "refId": "G" - } - ], - "title": "Nodes Overview", - "transformations": [ - { - "id": "merge", - "options": {} + "current": { + "text": "All", + "value": "$__all" + }, + "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", + "hide": 2, + "includeAll": true, + "label": "Node", + "multi": true, + "name": "service_name_mongos", + "options": [], + "query": { + "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "type": "query" }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "agent_id": true, - "agent_type": true, - "environment": true, - "instance": true, - "job": true, - "machine_id": true, - "node_id": true, - "node_name": false, - "node_type": true, - "service_name": false + "current": { + "text": "", + "value": "" }, - "indexByName": { - "Time": 0, - "Value #A": 3, - "Value #B": 5, - "Value #C": 6, - "Value #D": 2, - "Value #E": 8, - "Value #F": 4, - "Value #G": 7, - "node_name": 1 + "definition": "label_values(mongodb_up, cluster_role)", + "hide": 2, + "includeAll": false, + "name": "cluster_role", + "options": [], + "query": { + "query": "label_values(mongodb_up, cluster_role)", + "refId": "StandardVariableQuery" }, - "renameByName": { - "Value #A": "Uptime", - "Value #B": "Load Average", - "Value #C": "Memory Available", - "Value #D": "RAM", - "Value #E": "Virtual Memory", - "Value #F": "Disk Space", - "Value #G": "Min Space Available", - "node_name": "Node Name", - "service_name": "Service Name" - } - } + "refresh": 1, + "regex": "", + "type": "query" } - ], - "type": "table" - } - ], - "title": "Nodes Summary", - "type": "row" - } - ], - "preload": false, - "refresh": false, - "schemaVersion": 41, - "tags": [ - "MongoDB_HA", - "Percona" - ], - "templating": { - "list": [ - { - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "text": "$__auto", - "value": "$__auto" - }, - "label": "Interval", - "name": "interval", - "options": [ - { - "selected": false, - "text": "1s", - "value": "1s" - }, - { - "selected": false, - "text": "5s", - "value": "5s" - }, - { - "selected": false, - "text": "1m", - "value": "1m" - }, - { - "selected": false, - "text": "5m", - "value": "5m" - }, - { - "selected": false, - "text": "1h", - "value": "1h" - }, - { - "selected": false, - "text": "6h", - "value": "6h" - }, - { - "selected": false, - "text": "1d", - "value": "1d" - } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": { + "hidden": false, + "now": true, + "refresh_intervals": [ + "5s", + "1m", + "5m", + "1h", + "6h", + "1d" ], - "query": "1s,5s,1m,5m,1h,6h,1d", - "refresh": 2, - "type": "interval" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"mongodb_up\"}, environment)", - "includeAll": true, - "label": "Environment", - "multi": true, - "name": "environment", - "options": [], - "query": { - "query": "label_values({__name__=~\"mongodb_up\"}, environment)", - "refId": "Metrics-environment-Variable-Query" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "sharded", - "value": "sharded" - }, - "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\"},cluster)", - "includeAll": false, - "label": "Cluster", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\"},cluster)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mongodb_mongos_db_collections_total{environment=~\"$environment\", cluster=~\"$cluster\"},shard)", - "hide": 2, - "includeAll": true, - "label": "Shard Name", - "multi": true, - "name": "shard", - "options": [], - "query": { - "qryType": 1, - "query": "label_values(mongodb_mongos_db_collections_total{environment=~\"$environment\", cluster=~\"$cluster\"},shard)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "includeAll": true, - "label": "Replica Set", - "multi": true, - "name": "set", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", - "hide": 2, - "includeAll": true, - "label": "Node", - "multi": true, - "name": "service_name", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"},node_name)", - "hide": 2, - "includeAll": true, - "label": "Node Name", - "multi": true, - "name": "node_name", - "options": [], - "query": { - "qryType": 5, - "query": "label_values(mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"},node_name)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}==1)", - "hide": 2, - "includeAll": true, - "multi": true, - "name": "primary", - "options": [], - "query": { - "qryType": 3, - "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}==1)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "/.*service_name=\"(.*)\",service_type.*/", - "type": "query" - }, - { - "current": { - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", - "hide": 2, - "includeAll": true, - "label": "Node", - "multi": true, - "name": "service_name_mongos", - "options": [], - "query": { - "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "type": "query" - }, - { - "current": { - "text": "", - "value": "" - }, - "definition": "label_values(mongodb_up, cluster_role)", - "hide": 2, - "includeAll": false, - "name": "cluster_role", - "options": [], - "query": { - "query": "label_values(mongodb_up, cluster_role)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - } - ] - }, - "time": { - "from": "now-12h", - "to": "now" - }, - "timepicker": - { - "hidden": false, - "now": true, - "refresh_intervals": - [ - "1s", - "5s", - "1m", - "5m", - "1h", - "6h", - "1d" - ], - "time_options": - [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "MongoDB Sharded Cluster Summary", - "uid": "mongodb-cluster-summary", - "version": 1 + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "MongoDB Sharded Cluster Summary", + "uid": "mongodb-cluster-summary", + "version": 1 } + diff --git a/dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json index 4d1db1f2e0..e59d864e92 100644 --- a/dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json +++ b/dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json @@ -1,5093 +1,5267 @@ { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": false, - "iconColor": "#e0752d", - "limit": 100, - "matchAny": true, - "name": "PMM Annotations", - "showIn": 0, - "tags": [ - "pmm_annotation", - "$service_name" - ], - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "pmm_annotation", - "$service_name" - ], - "type": "tags" - }, - "type": "tags" - }, - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "#6ed0e0", - "limit": 100, - "name": "Annotations & Alerts", - "showIn": 0, - "tags": [], - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": null, - "links": [], - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 1673, - "panels": [ - { - "description": "", - "fieldConfig": { - "defaults": { - "mappings": [ - { - "options": { - "1": { - "text": "PRIMARY" - } - }, - "type": "value" - }, - { - "options": { - "2": { - "text": "SECONDARY" - } - }, - "type": "value" - }, - { - "options": { - "7": { - "text": "ARBITER" - } - }, - "type": "value" - }, - { - "options": { - "8": { - "text": "DOWN" - } - }, - "type": "value" - }, - { - "options": { - "match": "null", - "result": { - "text": "Exporter is not connected" - } - }, - "type": "special" - }, - { - "options": { - "3": { - "text": "RECOVERING" - } - }, - "type": "value" - }, - { - "options": { - "5": { - "text": "STARTUP2" - } - }, - "type": "value" - }, - { - "options": { - "6": { - "text": "UNKNOWN" - } - }, - "type": "value" + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" }, - { - "options": { - "9": { - "text": "ROLLBACK" - } - }, - "type": "value" + "enable": true, + "hide": false, + "iconColor": "#e0752d", + "limit": 100, + "matchAny": true, + "name": "PMM Annotations", + "showIn": 0, + "tags": [ + "pmm_annotation", + "$service_name" + ], + "target": { + "limit": 100, + "matchAny": true, + "tags": [ + "pmm_annotation", + "$service_name" + ], + "type": "tags" }, - { - "options": { - "10": { - "text": "REMOVED" - } - }, - "type": "value" - }, - { - "options": { - "0": { - "text": "STARTUP" - } - }, - "type": "value" - }, - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ] - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1674, - "options": { - "autoSizeColumns": true, - "autoSizePolygons": true, - "autoSizeRows": true, - "compositeConfig": { - "animationSpeed": "2500", - "composites": [], - "enabled": true + "type": "tags" }, - "compositeGlobalAliasingEnabled": false, - "ellipseCharacters": 18, - "ellipseEnabled": true, - "globalAutoScaleFonts": false, - "globalClickthrough": "", - "globalClickthroughCustomTarget": "", - "globalClickthroughCustomTargetEnabled": false, - "globalClickthroughNewTabEnabled": false, - "globalClickthroughSanitizedEnabled": false, - "globalCompositeValueFontSize": 14, - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalFillColor": "#0a55a1", - "globalGradientsEnabled": true, - "globalLabelFontSize": 12, - "globalOperator": "last", - "globalPolygonBorderColor": "#000000", - "globalPolygonBorderSize": 2, - "globalPolygonSize": 50, - "globalRegexPattern": "", - "globalShape": "hexagon_pointed_top", - "globalShowTimestampEnabled": false, - "globalShowTimestampFontSize": 12, - "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", - "globalShowTimestampPosition": "below_value", - "globalShowTimestampYOffset": 0, - "globalShowTooltipColumnHeadersEnabled": true, - "globalShowValueEnabled": true, - "globalTextFontAutoColor": "#000000", - "globalTextFontAutoColorEnabled": false, - "globalTextFontColor": "#000000", - "globalTextFontFamily": "Inter", - "globalThresholdsConfig": [ - { - "color": "#56A64B", - "state": 0, - "value": 1 - }, - { - "color": "#E0B400", - "state": 0, - "value": 2 - }, - { - "color": "#FA6400", - "state": 0, - "value": 7 - }, - { - "color": "#d44a3a", - "state": 2, - "value": 8 - } - ], - "globalTooltipsEnabled": true, - "globalTooltipsFontFamily": "Inter", - "globalTooltipsShowTimestampEnabled": true, - "globalTooltipsShowValueEnabled": true, - "globalUnitFormat": "short", - "globalValueFontSize": 14, - "layoutDisplayLimit": 100, - "layoutNumColumns": 8, - "layoutNumRows": 8, - "overrideConfig": { - "overrides": [] - }, - "panelId": 0, - "radius": 100, - "sortByDirection": 1, - "sortByField": "name", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipPrimarySortByField": "thresholdLevel", - "tooltipPrimarySortDirection": 2, - "tooltipSecondarySortByField": "value", - "tooltipSecondarySortDirection": 2 - }, - "pluginVersion": "2.1.15", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"})", - "hide": false, - "instant": true, - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "title": "Members", - "type": "grafana-polystat-panel" - } - ], - "title": "Current Topology", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1645, - "panels": [], - "title": "Overview", - "type": "row" - }, - { - "description": "Controls the compatibility version of MongoDB data files. Enabling newer version-specific features may cause datafile format to become incompatible with earlier versions of MongoDB.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "fixed" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 0, - "y": 2 - }, - "id": 1615, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 28 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "min(mongodb_fcv_feature_compatibility_version{environment=~\"$environment\", service_name=~\"$service_name\"})", - "instant": false, - "interval": "5m", - "legendFormat": "FCV", - "range": true, - "refId": "A" - } - ], - "title": "Feature Compatibility Version", - "type": "stat" - }, - { - "description": "Number of replica set members", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 6, - "y": 2 - }, - "hideTimeOverride": true, - "id": 1644, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 28 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "count(mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Nodes", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Members", - "type": "stat" - }, - { - "description": "Total number of user-created databases", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 12, - "y": 2 - }, - "hideTimeOverride": true, - "id": 1643, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 28 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max(count by(database)(mongodb_dbstats_collections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\"}))", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Shards", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "DBs", - "type": "stat" - }, - { - "description": "Time since the most recent election in the replica set", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 6, - "x": 18, - "y": 2 - }, - "id": 1642, - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 28 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Last Election", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 5 - }, - "id": 1030, - "panels": [], - "repeat": "service_name", - "title": "Overview - $service_name", - "type": "row" - }, - { - "description": "Read more about [Replica Set Member States](https://per.co.na/mongo-repstate).", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "mappings": [ { - "options": { - "0": { - "index": 11, - "text": "STARTUP" - }, - "1": { - "color": "rgb(107, 152, 102)", - "index": 4, - "text": "PRIMARY" - }, - "2": { - "color": "rgb(193, 159, 20)", - "index": 3, - "text": "SECONDARY" - }, - "3": { - "index": 10, - "text": "RECOVERING" - }, - "5": { - "index": 9, - "text": "STARTUP2" + "builtIn": 1, + "datasource": { + "type": "datasource", + "uid": "grafana" }, - "6": { - "index": 8, - "text": "UNKNOWN" + "enable": true, + "hide": true, + "iconColor": "#6ed0e0", + "limit": 100, + "name": "Annotations & Alerts", + "showIn": 0, + "tags": [], + "target": { + "limit": 100, + "matchAny": false, + "tags": [], + "type": "dashboard" }, - "7": { - "color": "#8B8000", - "index": 1, - "text": "ARBITER" - }, - "8": { - "index": 7, - "text": "DOWN" - }, - "9": { - "index": 6, - "text": "ROLLBACK" - }, - "10": { - "index": 5, - "text": "REMOVED" - }, - "null": { - "color": "#FF7383", - "index": 2, - "text": "Exporter is not connected" - } - }, - "type": "value" + "type": "dashboard" } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 0, - "y": 6 - }, - "id": 1586, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "center", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "value", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", - "instant": true, - "interval": "$interval", - "legendFormat": "{{set}}", - "range": false, - "refId": "A" - } - ], - "title": "State", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "#EAB839", - "value": 80 - }, - { - "color": "red", - "value": 90 - } - ] - }, - "unit": "percent" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Max Core Utilization" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#bf1b00", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "idle" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#806EB7", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iowait" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E24D42", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "nice" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#1F78C1", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "softirq" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#FFFFFF", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "steal" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#8F3BB8", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "system" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#EAB839", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "user" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#508642", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "steal" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#FFEE52", - "mode": "fixed" - } - } - ] - } ] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 2, - "y": 6 - }, - "id": 1071, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (100 - (avg by(node_id) (rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) * 100))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ mode }}", - "range": true, - "refId": "B" - } - ], - "title": "CPU Usage", - "type": "gauge" }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 5, - "y": 6 - }, - "id": 1060, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (1 - avg by(node_id)(node_memory_MemAvailable_bytes)/ avg by (node_id) (node_memory_MemTotal_bytes))", - "hide": false, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Used", - "type": "gauge" - }, - { - "description": "The percentage of elapsed time the disk device was busy servicing I/O requests (reads or writes).\n\nA value approaching or at 100% over sustained periods means the disk is likely saturated. If the storage device supports parallelism (e.g. SSDs, NVMe, RAID), even high values may not always imply performance issues. \n\nAlways consider complementing this metric with I/O latency, queue length, and throughput to get the full picture.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 8, - "y": 6 - }, - "id": 1073, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_disk_io_time_seconds_total[$interval])) or (sum by (node_id) (irate(node_disk_io_time_seconds_total[5m]))))", - "interval": "$interval", - "legendFormat": "{{ node_name }}", - "range": true, - "refId": "B" - } - ], - "title": "Disk IO Utilization", - "type": "gauge" - }, - { - "description": "Shows information about the disk space usage of the filesystem where MongoDB stores data", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "links": [], - "mappings": [], - "max": 1, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "#EAB839", - "value": 0.8 - }, - { - "color": "red", - "value": 0.9 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 11, - "y": 6 - }, - "id": 1062, - "options": { - "minVizHeight": 75, - "minVizWidth": 75, - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})/ avg (mongodb_dbstats_fsTotalSize{service_name=~\"$service_name\"})", - "hide": false, - "interval": "$interval", - "legendFormat": "Total Size", - "range": true, - "refId": "A" - }, - { - "editorMode": "code", - "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})", - "hide": true, - "interval": "$interval", - "legendFormat": "Usage", - "range": true, - "refId": "C" - } - ], - "title": "Disk Space Utilization", - "type": "gauge" - }, - { - "description": "Shows amount of physical IOs (reads and writes) different devices are serving. Spikes in number of IOs served often corresponds to performance problems due to IO subsystem overload.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 14, - "y": 6 - }, - "id": 1076, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by (node_id)(\n(rate(node_disk_reads_completed_total[$interval]) or \nirate(node_disk_reads_completed_total[5s]))\n)))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Read", - "metric": "", - "range": true, - "refId": "A", - "step": 300, - "target": "" - }, - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by(node_id)(\n(rate(node_disk_writes_completed_total[$interval]) or \nirate(node_disk_writes_completed_total[5s])) \n)))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Write", - "metric": "", - "range": true, - "refId": "B", - "step": 300, - "target": "" - } - ], - "title": "Disk IOPS", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "green", - "mode": "fixed" - }, - "decimals": 0, - "links": [ - { - "targetBlank": true, - "title": "Network Details - ${__field.labels.node_name}", - "url": "/graph/d/node-network/network-details?var-node_name=${__field.labels.node_name}&$__url_time_range" - } - ], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 17, - "y": 6 - }, - "id": 1052, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "calculatedInterval": "2s", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_receive_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_receive_bytes_total{device!=\"lo\"}[5m])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[5m])))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Inbound", - "metric": "", - "range": true, - "refId": "B", - "step": 300, - "target": "" - }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [], + "panels": [ { - "calculatedInterval": "2s", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_transmit_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_transmit_bytes_total{device!=\"lo\"}[5m])) or\nsum by (node_id) (max_over_time(rdsosmetrics_network_tx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_tx[5m])))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Outbound", - "metric": "", - "range": true, - "refId": "A", - "step": 300, - "target": "" - } - ], - "title": "Network Traffic", - "type": "stat" - }, - { - "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)" - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 300 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 3600 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 20, - "y": 6 - }, - "id": 321, - "interval": "$interval", - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "text": {}, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "exemplar": true, - "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (time() - container_start_time_seconds{id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_id) ((node_time_seconds - node_boot_time_seconds) or (time() - node_boot_time_seconds)))", - "format": "time_series", - "hide": false, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Uptime", - "type": "stat" - }, - { - "description": "MongoDB version", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "string" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 6 - }, - "id": 1039, - "interval": "$interval", - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^mongodb$/", - "values": false - }, - "showPercentChange": false, - "text": { - "valueSize": 20 - }, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "exemplar": false, - "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{mongodb}}", - "metric": "", - "range": false, - "refId": "A", - "step": 300 - } - ], - "title": "Version", - "type": "stat" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 20 - }, - "id": 1170, - "panels": [], - "title": "Details", - "type": "row" - }, - { - "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/repl.*/" - }, - "properties": [ - { - "id": "custom.axisPlacement", - "value": "right" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 21 - }, - "id": 15, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg by (legacy_op_type, service_name) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "repl_{{legacy_op_type}} - {{service_name}}", - "range": true, - "refId": "A", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by (service_name) (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "ttl_delete - {{service_name}}", - "range": true, - "refId": "B", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by (legacy_op_type, service_name) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{legacy_op_type}} - {{service_name}}", - "range": true, - "refId": "C", - "step": 300 - } - ], - "title": "Command Operations", - "type": "timeseries" - }, - { - "description": "Show the collections that are most frequently read.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "noValue": "0", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 21 - }, - "id": 1024, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 9, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "id": 1673, + "panels": [ + { + "description": "", + "fieldConfig": { + "defaults": { + "mappings": [ + { + "options": { + "1": { + "text": "PRIMARY" + } + }, + "type": "value" + }, + { + "options": { + "2": { + "text": "SECONDARY" + } + }, + "type": "value" + }, + { + "options": { + "7": { + "text": "ARBITER" + } + }, + "type": "value" + }, + { + "options": { + "8": { + "text": "DOWN" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "Exporter is not connected" + } + }, + "type": "special" + }, + { + "options": { + "3": { + "text": "RECOVERING" + } + }, + "type": "value" + }, + { + "options": { + "5": { + "text": "STARTUP2" + } + }, + "type": "value" + }, + { + "options": { + "6": { + "text": "UNKNOWN" + } + }, + "type": "value" + }, + { + "options": { + "9": { + "text": "ROLLBACK" + } + }, + "type": "value" + }, + { + "options": { + "10": { + "text": "REMOVED" + } + }, + "type": "value" + }, + { + "options": { + "0": { + "text": "STARTUP" + } + }, + "type": "value" + }, + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ] + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1674, + "options": { + "autoSizeColumns": true, + "autoSizePolygons": true, + "autoSizeRows": true, + "compositeConfig": { + "animationSpeed": "2500", + "composites": [], + "enabled": true + }, + "compositeGlobalAliasingEnabled": false, + "ellipseCharacters": 18, + "ellipseEnabled": true, + "globalAutoScaleFonts": false, + "globalClickthrough": "", + "globalClickthroughCustomTarget": "", + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughSanitizedEnabled": false, + "globalCompositeValueFontSize": 14, + "globalDecimals": 2, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalFillColor": "#0a55a1", + "globalGradientsEnabled": true, + "globalLabelFontSize": 12, + "globalOperator": "last", + "globalPolygonBorderColor": "#000000", + "globalPolygonBorderSize": 2, + "globalPolygonSize": 50, + "globalRegexPattern": "", + "globalShape": "hexagon_pointed_top", + "globalShowTimestampEnabled": false, + "globalShowTimestampFontSize": 12, + "globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss", + "globalShowTimestampPosition": "below_value", + "globalShowTimestampYOffset": 0, + "globalShowTooltipColumnHeadersEnabled": true, + "globalShowValueEnabled": true, + "globalTextFontAutoColor": "#000000", + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "globalTextFontFamily": "Inter", + "globalThresholdsConfig": [ + { + "color": "#56A64B", + "state": 0, + "value": 1 + }, + { + "color": "#E0B400", + "state": 0, + "value": 2 + }, + { + "color": "#FA6400", + "state": 0, + "value": 7 + }, + { + "color": "#d44a3a", + "state": 2, + "value": 8 + } + ], + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalTooltipsShowValueEnabled": true, + "globalUnitFormat": "short", + "globalValueFontSize": 14, + "layoutDisplayLimit": 100, + "layoutNumColumns": 8, + "layoutNumRows": 8, + "overrideConfig": { + "overrides": [] + }, + "panelId": 0, + "radius": 100, + "sortByDirection": 1, + "sortByField": "name", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipPrimarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "tooltipSecondarySortDirection": 2 + }, + "pluginVersion": "2.1.15", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"})", + "hide": false, + "instant": true, + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Members", + "type": "grafana-polystat-panel" + } + ], + "title": "Current Topology", + "type": "row" }, - "showUnfilled": true, - "sizing": "auto", - "text": {}, - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5, sum by (database,collection) (rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[$interval] or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[5s]))", - "hide": false, - "instant": true, - "interval": "", - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "B" - } - ], - "title": "Top Hottest Collections by Read", - "type": "bargauge" - }, - { - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "µs" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 29 - }, - "id": 1064, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "id": 1645, + "panels": [], + "title": "Overview", + "type": "row" }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ { - "editorMode": "code", - "expr": "avg by (op_type,service_name) (rate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[5m]) > 0))", - "interval": "$interval", - "legendFormat": "{{op_type}} - {{service_name}}", - "range": true, - "refId": "A" - } - ], - "title": "Operation Latencies", - "type": "timeseries" - }, - { - "description": "Show the collections that are most frequently written to.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 29 - }, - "id": 1028, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 10, - "minVizWidth": 0, - "namePlacement": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "topk (5,sum by (database,collection) ((rate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[$interval]) or (irate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[5s])))", - "instant": true, - "interval": "", - "legendFormat": "{{database}}.{{collection}}", - "range": false, - "refId": "A" - } - ], - "title": "Top Hottest Collections by Write", - "type": "bargauge" - }, - { - "description": "Ratio of Documents (or Index entries) scanned / documents returned. A value of 1 means all documents returned exactly match query criteria for the sample period. A value of 100 means on average for the sample period, a query scans 100 documents to find one that is returned.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Controls the compatibility version of MongoDB data files. Enabling newer version-specific features may cause datafile format to become incompatible with earlier versions of MongoDB.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 6, + "x": 0, + "y": 2 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "id": 1615, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 28 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 37 - }, - "id": 1066, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "(sum by (service_name)(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by (service_name)(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Scanned objects / returned - {{service_name}}", - "range": true, - "refId": "J", - "step": 300 + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "min(mongodb_fcv_feature_compatibility_version{environment=~\"$environment\", service_name=~\"$service_name\"})", + "instant": false, + "interval": "5m", + "legendFormat": "FCV", + "range": true, + "refId": "A" + } + ], + "title": "Feature Compatibility Version", + "type": "stat" }, { - "editorMode": "code", - "expr": "(sum by (service_name)(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by (service_name)(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Scanned idx / returned - {{service_name}}", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Query Efficiency", - "type": "timeseries" - }, - { - "description": "Operations queued due to a lock.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Number of replica set members", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 6, + "x": 6, + "y": 2 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "hideTimeOverride": true, + "id": 1644, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 28 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "line+area" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent" - }, - { - "color": "red", - "value": 0 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 37 - }, - "id": 1036, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "count(mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Nodes", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Members", + "type": "stat" }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ { - "editorMode": "code", - "expr": "max by (type,service_name) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{type}} - {{service_name}}", - "range": true, - "refId": "J", - "step": 300 - } - ], - "title": "Queued Operations", - "type": "timeseries" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Total number of user-created databases", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 6, + "x": 12, + "y": 2 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "hideTimeOverride": true, + "id": 1643, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 28 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 45 - }, - "id": 1067, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Active Readers - {{service_name}}", - "range": true, - "refId": "J", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Active Writers - {{service_name}}", - "range": true, - "refId": "A", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"})", - "hide": false, - "legendFormat": "Queued Readers - {{service_name}}", - "range": true, - "refId": "B" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max(count by(database)(mongodb_dbstats_collections{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\"}))", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "range": true, + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "DBs", + "type": "stat" }, { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"})", - "hide": false, - "interval": "", - "legendFormat": "Queued Writers - {{service_name}}", - "range": true, - "refId": "C" - } - ], - "title": "Reads & Writes", - "type": "timeseries" - }, - { - "description": "MongoDB Connections", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "Time since the most recent election in the replica set", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "gridPos": { + "h": 3, + "w": 6, + "x": 18, + "y": 2 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "id": 1642, + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "text": { + "valueSize": 28 + }, + "textMode": "auto", + "wideLayout": true }, - "thresholdsStyle": { - "mode": "off" - } - }, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 45 - }, - "id": 1074, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name) (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Current - {{service_name}}", - "range": true, - "refId": "J", - "step": 300 + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "time() - max(mongodb_mongod_replset_member_election_date{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Last Election", + "type": "stat" }, { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Available - {{service_name}}", - "range": true, - "refId": "A", - "step": 300 + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 5 + }, + "id": 1030, + "panels": [], + "repeat": "service_name", + "title": "Overview - $service_name", + "type": "row" }, { - "editorMode": "code", - "expr": "avg by(service_name) (mongodb_ss_connections{conn_type=~\"current\", service_name=~\"$service_name\"}) - avg by(service_name) (mongodb_ss_connections{conn_type=~\"active\", service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Idle - {{service_name}}", - "range": true, - "refId": "B", - "step": 300 - } - ], - "title": "Average Connections", - "type": "timeseries" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 53 - }, - "id": 1056, - "panels": [], - "title": "Collection Details", - "type": "row" - }, - { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "transparent", - "mode": "fixed" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" + "description": "Read more about [Replica Set Member States](https://per.co.na/mongo-repstate).", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [ + { + "options": { + "0": { + "index": 11, + "text": "STARTUP" + }, + "1": { + "color": "rgb(107, 152, 102)", + "index": 4, + "text": "PRIMARY" + }, + "10": { + "index": 5, + "text": "REMOVED" + }, + "2": { + "color": "rgb(193, 159, 20)", + "index": 3, + "text": "SECONDARY" + }, + "3": { + "index": 10, + "text": "RECOVERING" + }, + "5": { + "index": 9, + "text": "STARTUP2" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "7": { + "color": "#8B8000", + "index": 1, + "text": "ARBITER" + }, + "8": { + "index": 7, + "text": "DOWN" + }, + "9": { + "index": 6, + "text": "ROLLBACK" + }, + "null": { + "color": "#FF7383", + "index": 2, + "text": "Exporter is not connected" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] }, - "filterable": true, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0 - } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" + "gridPos": { + "h": 4, + "w": 2, + "x": 0, + "y": 6 }, - "properties": [ - { - "id": "custom.cellOptions", - "value": { - "mode": "basic", - "type": "color-background" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Node" + "id": 1586, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 54 - }, - "id": 1045, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", + "instant": true, + "interval": "$interval", + "legendFormat": "{{set}}", + "range": false, + "refId": "A" + } + ], + "title": "State", + "type": "stat" }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (environment,cluster,rs_nm,database,service_name) (mongodb_mongod_db_collections_total{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\",service_name=~\"$service_name\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "title": "Number of Collections", - "transformations": [ { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "cluster": true, - "environment": true, - "rs_nm": true - }, - "includeByName": {}, - "indexByName": { - "Time": 0, - "Value": 6, - "cluster": 2, - "database": 3, - "environment": 1, - "rs_nm": 5, - "service_name": 4 - }, - "renameByName": { - "1710776522937": "", - "Value": "Collections", - "database": "DB Name", - "environment": "Environment", - "service_name": "Node" - } - } - } - ], - "type": "table" - }, - { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 80 + }, + { + "color": "red", + "value": 90 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Core Utilization" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#bf1b00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#806EB7", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iowait" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nice" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#1F78C1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "softirq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FFFFFF", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "steal" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#8F3BB8", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "system" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#EAB839", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "user" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#508642", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "steal" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FFEE52", + "mode": "fixed" + } + } + ] + } + ] }, - "filterable": true, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" + "gridPos": { + "h": 4, + "w": 3, + "x": 2, + "y": 6 }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Node" + "id": 1071, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 1043, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$rs_nm\", service_name=~\"$service_name\", db !~\"admin|config\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{collection}}", - "range": false, - "refId": "A" - } - ], - "title": "Size of Collections", - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (100 - (avg by(node_id) (rate(node_cpu_seconds_total{mode=\"idle\"}[1m])) * 100))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{ mode }}", + "range": true, + "refId": "B" + } + ], + "title": "CPU Usage", + "type": "gauge" }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "cluster": true, - "environment": true, - "rs_nm": true + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] }, - "includeByName": {}, - "indexByName": { - "Time": 0, - "Value": 6, - "cluster": 1, - "collection": 3, - "database": 2, - "environment": 7, - "rs_nm": 5, - "service_name": 4 + "gridPos": { + "h": 4, + "w": 3, + "x": 5, + "y": 6 }, - "renameByName": { - "Value": "Size", - "collection": "Collection Name", - "database": "DB Name", - "db\\shard": "DB Name", - "rs1": "", - "service_name": "Node" - } - } - } - ], - "type": "table" - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "transparent", - "mode": "fixed" - }, - "custom": { - "align": "left", - "cellOptions": { - "type": "auto" + "id": 1060, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, - "filterable": true, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": 0 + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (1 - avg by(node_id)(node_memory_MemAvailable_bytes)/ avg by (node_id) (node_memory_MemTotal_bytes))", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - } - ] - }, - "unit": "none" + ], + "title": "Memory Used", + "type": "gauge" }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" + { + "description": "The percentage of elapsed time the disk device was busy servicing I/O requests (reads or writes).\n\nA value approaching or at 100% over sustained periods means the disk is likely saturated. If the storage device supports parallelism (e.g. SSDs, NVMe, RAID), even high values may not always imply performance issues. \n\nAlways consider complementing this metric with I/O latency, queue length, and throughput to get the full picture.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Node" + "gridPos": { + "h": 4, + "w": 3, + "x": 8, + "y": 6 }, - "properties": [ - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 70 - }, - "id": 1672, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(environment, cluster, rs_nm, collection, database, service_name) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$rs_nm\", service_name=~\"$service_name\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "__auto", - "range": false, - "refId": "A" - } - ], - "title": "Count of Documents", - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "rs_nm", - "rowField": "db", - "valueField": "Value" - } + "id": 1073, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_disk_io_time_seconds_total[$interval])) or (sum by (node_id) (irate(node_disk_io_time_seconds_total[5m]))))", + "interval": "$interval", + "legendFormat": "{{ node_name }}", + "range": true, + "refId": "B" + } + ], + "title": "Disk IO Utilization", + "type": "gauge" }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "cluster": true, - "environment": true, - "rs_nm": true + "description": "Shows information about the disk space usage of the filesystem where MongoDB stores data", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "links": [], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "#EAB839", + "value": 0.8 + }, + { + "color": "red", + "value": 0.9 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] }, - "includeByName": {}, - "indexByName": { - "Time": 0, - "Value": 6, - "cluster": 1, - "collection": 3, - "database": 2, - "environment": 7, - "rs_nm": 5, - "service_name": 4 + "gridPos": { + "h": 4, + "w": 3, + "x": 11, + "y": 6 }, - "renameByName": { - "Value": "Documents", - "collection": "Collection Name", - "database": "DB Name", - "db\\shard": "DB Name", - "rs1": "", - "service_name": "Node" - } - } - } - ], - "type": "table" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 78 - }, - "id": 1049, - "panels": [ - { - "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "id": 1062, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})/ avg (mongodb_dbstats_fsTotalSize{service_name=~\"$service_name\"})", + "hide": false, + "interval": "$interval", + "legendFormat": "Total Size", + "range": true, + "refId": "A" }, - "thresholdsStyle": { - "mode": "line" - } - }, - "decimals": 2, - "links": [ { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__series.name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range" + "editorMode": "code", + "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})", + "hide": true, + "interval": "$interval", + "legendFormat": "Usage", + "range": true, + "refId": "C" } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "transparent" - }, - { - "color": "red", - "value": 10 - } - ] - }, - "unit": "s" + ], + "title": "Disk Space Utilization", + "type": "gauge" + }, + { + "description": "Shows amount of physical IOs (reads and writes) different devices are serving. Spikes in number of IOs served often corresponds to performance problems due to IO subsystem overload.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } + }, + "overrides": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Avg" + "gridPos": { + "h": 4, + "w": 3, + "x": 14, + "y": 6 + }, + "id": 1076, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#C4162A", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 99 - }, - "id": 1038, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0 ", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Replication Lag", - "type": "timeseries" + "pluginVersion": "11.6.4", + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by (node_id)(\n(rate(node_disk_reads_completed_total[$interval]) or \nirate(node_disk_reads_completed_total[5s]))\n)))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Read", + "metric": "", + "range": true, + "refId": "A", + "step": 300, + "target": "" + }, + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (sum by(node_id)(\n(rate(node_disk_writes_completed_total[$interval]) or \nirate(node_disk_writes_completed_total[5s])) \n)))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Write", + "metric": "", + "range": true, + "refId": "B", + "step": 300, + "target": "" + } + ], + "title": "Disk IOPS", + "type": "stat" }, { - "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + }, + "decimals": 0, + "links": [ + { + "targetBlank": true, + "title": "Network Details - ${__field.labels.node_name}", + "url": "/graph/d/node-network/network-details?var-node_name=${__field.labels.node_name}&$__url_time_range" + } + ], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "Bps" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 17, + "y": 6 + }, + "id": 1052, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "calculatedInterval": "2s", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_receive_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_receive_bytes_total{device!=\"lo\"}[5m])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_rx[5m])))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Inbound", + "metric": "", + "range": true, + "refId": "B", + "step": 300, + "target": "" }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [ { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__series.name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range" + "calculatedInterval": "2s", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (sum by (node_id) (rate(node_network_transmit_bytes_total{device!=\"lo\"}[$interval])) or sum by (node_id) (irate(node_network_transmit_bytes_total{device!=\"lo\"}[5m])) or\nsum by (node_id) (max_over_time(rdsosmetrics_network_tx[$interval])) or sum by (node_id) (max_over_time(rdsosmetrics_network_tx[5m])))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Outbound", + "metric": "", + "range": true, + "refId": "A", + "step": 300, + "target": "" } - ], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" + ], + "title": "Network Traffic", + "type": "stat" + }, + { + "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)" + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 300 + }, + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 3600 + } + ] + }, + "unit": "s" + }, + "overrides": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Avg" + "gridPos": { + "h": 4, + "w": 2, + "x": 20, + "y": 6 + }, + "id": 321, + "interval": "$interval", + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#C4162A", - "mode": "fixed" - } - }, - { - "id": "custom.fillOpacity", - "value": 0 - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" - } - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 99 - }, - "id": 1025, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "showPercentChange": false, + "text": {}, + "textMode": "auto", + "wideLayout": true }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"}", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ service_name }}", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Oplog Recovery Window", - "type": "timeseries" + "pluginVersion": "11.6.4", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "exemplar": true, + "expr": "mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}[1m]*0 + on(node_id) group_left(node_id) (avg by (node_id) (time() - container_start_time_seconds{id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_id) ((node_time_seconds - node_boot_time_seconds) or (time() - node_boot_time_seconds)))", + "format": "time_series", + "hide": false, + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Uptime", + "type": "stat" }, { - "description": "Number of flow control events and extra latency introduced due to them", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "description": "MongoDB version", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "string" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 22, + "y": 6 + }, + "id": 1039, + "interval": "$interval", + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^mongodb$/", + "values": false }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "showPercentChange": false, + "text": { + "valueSize": 20 }, - "thresholdsStyle": { - "mode": "off" + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "exemplar": false, + "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "{{mongodb}}", + "metric": "", + "range": false, + "refId": "A", + "step": 300 } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "µs" + ], + "title": "Version", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 20 }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "/fc_count.*/" + "id": 1170, + "panels": [], + "title": "Details", + "type": "row" + }, + { + "description": "Ops or Replicated Ops/sec classified by legacy wire protocol type (query, insert, update, delete, getmore). And (from the internal TTL threads) the docs deletes/sec by TTL indexes.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ops" }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "custom.axisPlacement", - "value": "right" - } + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/repl.*/" + }, + "properties": [ + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 99 - }, - "id": 1020, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "desc" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", - "interval": "$interval", - "legendFormat": "fc_count", - "range": true, - "refId": "A" + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 21 }, - { - "editorMode": "code", - "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", - "hide": false, - "interval": "$interval", - "legendFormat": "fc_time", - "range": true, - "refId": "B" - } - ], - "title": "Flow Control", - "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus" - }, - "description": "Shows the average hourly oplog data written to cache by the Primary server.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "bars", - "fillOpacity": 100, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "id": 15, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by (legacy_op_type, service_name) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "repl_{{legacy_op_type}} - {{service_name}}", + "range": true, + "refId": "A", + "step": 300 }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + { + "editorMode": "code", + "expr": "avg by (service_name) (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "ttl_delete - {{service_name}}", + "range": true, + "refId": "B", + "step": 300 }, - "thresholdsStyle": { - "mode": "off" + { + "editorMode": "code", + "expr": "avg by (legacy_op_type, service_name) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{legacy_op_type}} - {{service_name}}", + "range": true, + "refId": "C", + "step": 300 } - }, - "decimals": 2, - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" + ], + "title": "Command Operations", + "type": "timeseries" + }, + { + "description": "Show the collections that are most frequently read.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" + }, + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 106 - }, - "id": 1680, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 21 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "service_name", - "repeatDirection": "h", - "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" - } - ], - "title": "Oplog GB/Hour - $service_name", - "type": "timeseries" - } - ], - "title": "Replication", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 79 - }, - "id": 1150, - "panels": [ - { - "description": "ReplSet statuses during the selected time range.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "blue", - "mode": "palette-classic" - }, - "custom": { - "axisPlacement": "auto", - "fillOpacity": 100, - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "id": 1024, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "insertNulls": false, - "lineWidth": 0, - "spanNulls": false - }, - "mappings": [ + "maxVizHeight": 300, + "minVizHeight": 9, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "text": {}, + "valueMode": "color" + }, + "pluginVersion": "11.6.4", + "targets": [ { - "options": { - "0": { - "color": "semi-dark-red", - "index": 11, - "text": "STARTUP" - }, - "1": { - "color": "rgb(107, 152, 102)", - "index": 4, - "text": "PRIMARY" - }, - "2": { - "color": "rgb(193, 159, 20)", - "index": 3, - "text": "SECONDARY" - }, - "3": { - "color": "semi-dark-red", - "index": 10, - "text": "RECOVERING" - }, - "5": { - "color": "semi-dark-red", - "index": 9, - "text": "STARTUP2" - }, - "6": { - "color": "semi-dark-red", - "index": 8, - "text": "UNKNOWN" - }, - "7": { - "color": "#8B8000", - "index": 1, - "text": "ARBITER" - }, - "8": { - "color": "semi-dark-red", - "index": 7, - "text": "DOWN" + "editorMode": "code", + "exemplar": false, + "expr": "topk (5, sum by (database,collection) (rate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[$interval] or irate(mongodb_top_queries_count{environment=~\"$environment\", cluster=~\"$cluster\", rs_nm=~\"$rs_nm\",service_name=~\"$service_name\"})[5s]))", + "hide": false, + "instant": true, + "interval": "", + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "B" + } + ], + "title": "Top Hottest Collections by Read", + "type": "bargauge" + }, + { + "description": "Average latency of operations (classified by read, write, or (other) command)", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "9": { - "color": "semi-dark-red", - "index": 6, - "text": "ROLLBACK" + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, - "10": { - "color": "semi-dark-red", - "index": 5, - "text": "REMOVED" + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] }, - "null": { - "color": "#FF7383", - "index": 2, - "text": "Exporter is not connected" - } - }, - "type": "value" + "unit": "µs" }, - { - "options": { - "from": 0, - "result": { - "index": 0, - "text": "N/A" - }, - "to": 1 - }, - "type": "range" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 6 - } - ] - }, - "unit": "short" + "overrides": [] }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 127 - }, - "id": 1587, - "options": { - "alignValue": "right", - "legend": { - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 29 }, - "mergeValues": true, - "rowHeight": 0.9, - "showValue": "auto", - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "editorMode": "code", - "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, - "refId": "A" - } - ], - "title": "Member States", - "type": "state-timeline" - } - ], - "title": "States - $rs_nm", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 80 - }, - "id": 1403, - "panels": [ - { - "datasource": "Metrics", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "center", - "cellOptions": { - "type": "auto" + "id": 1064, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "filterable": false, - "inspect": false, - "width": 100 - }, - "decimals": 2, - "mappings": [ - { - "options": { - "0": { - "color": "#8b0000", - "index": 0, - "text": "No Data" - }, - "-": { - "index": 1, - "text": "No Data" - } - }, - "type": "value" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" } - ], - "noValue": "-", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "orange", - "value": 10 - }, - { - "color": "green", - "value": 20 - } - ] - } }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "node_name" - }, - "properties": [ - { - "id": "custom.align", - "value": "left" - }, - { - "id": "custom.width" - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}" - } - ] - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #A" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by (op_type,service_name) (rate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_ss_opLatencies_latency{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_ss_opLatencies_ops{service_name=~\"$service_name\"}[5m]) > 0))", + "interval": "$interval", + "legendFormat": "{{op_type}} - {{service_name}}", + "range": true, + "refId": "A" + } + ], + "title": "Operation Latencies", + "type": "timeseries" + }, + { + "description": "Show the collections that are most frequently written to.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 1, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" }, - "properties": [ - { - "id": "unit", - "value": "s" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #D" + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 29 + }, + "id": 1028, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #F" + "maxVizHeight": 300, + "minVizHeight": 10, + "minVizWidth": 0, + "namePlacement": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #C" + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "topk (5,sum by (database,collection) ((rate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[$interval]) or (irate(mongodb_top_insert_count{service_name=~\"$service_name\"}+mongodb_top_remove_count{service_name=~\"$service_name\"}+mongodb_top_update_count{service_name=~\"$service_name\"})[5s])))", + "instant": true, + "interval": "", + "legendFormat": "{{database}}.{{collection}}", + "range": false, + "refId": "A" + } + ], + "title": "Top Hottest Collections by Write", + "type": "bargauge" + }, + { + "description": "Ratio of Documents (or Index entries) scanned / documents returned. A value of 1 means all documents returned exactly match query criteria for the sample period. A value of 100 means on average for the sample period, a query scans 100 documents to find one that is returned.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "" }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #G" + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 37 + }, + "id": 1066, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "properties": [ - { - "id": "unit", - "value": "percent" - }, - { - "id": "custom.cellOptions", - "value": { - "type": "color-text" - } - }, - { - "id": "custom.width", - "value": 170 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #E" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "(sum by (service_name)(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by (service_name)(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Scanned objects / returned - {{service_name}}", + "range": true, + "refId": "J", + "step": 300 }, - "properties": [ - { - "id": "unit", - "value": "decbytes" - }, - { - "id": "custom.width", - "value": 160 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #B" + { + "editorMode": "code", + "expr": "(sum by (service_name)(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval])) /\nsum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))\nor\nsum by (service_name)(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[5m])) /\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[5m])))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Scanned idx / returned - {{service_name}}", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Query Efficiency", + "type": "timeseries" + }, + { + "description": "Operations queued due to a lock.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line+area" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent" + }, + { + "color": "red", + "value": 0 + } + ] + }, + "unit": "ops" }, - "properties": [ - { - "id": "custom.width", - "value": 120 - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 128 - }, - "id": 1675, - "options": { - "cellHeight": "sm", - "footer": { - "countRows": false, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "11.6.4", - "targets": [ - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "avg by (node_name) (time() - container_start_time_seconds{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) ((node_time_seconds{node_name=~\"$node_name\"} - node_boot_time_seconds{node_name=~\"$node_name\"}) or (time() - node_boot_time_seconds{node_name=~\"$node_name\"}))", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Uptime", - "refId": "A" + "overrides": [] }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Load", - "range": false, - "refId": "B" - }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "clamp_max(avg by (node_name) (container_memory_usage_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"} * 100 / container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"}),100) or avg by (node_name) ((node_memory_MemAvailable_bytes{node_name=~\"$node_name\"} or (node_memory_MemFree_bytes{node_name=~\"$node_name\"} + node_memory_Buffers_bytes{node_name=~\"$node_name\"} + node_memory_Cached_bytes{node_name=~\"$node_name\"})) / node_memory_MemTotal_bytes{node_name=~\"$node_name\"} * 100)", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Memory", - "range": false, - "refId": "C" + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 37 }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | RAM", - "range": false, - "refId": "D" + "id": 1036, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Virtual", - "refId": "E" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max by (type,service_name) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{type}} - {{service_name}}", + "range": true, + "refId": "J", + "step": 300 + } + ], + "title": "Queued Operations", + "type": "timeseries" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Disk", - "refId": "F" + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 45 }, - { - "datasource": "Metrics", - "editorMode": "code", - "exemplar": false, - "expr": "min by (node_name) (node_filesystem_free_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"}/node_filesystem_size_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"})*100", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{node_name}} | Min Space", - "refId": "G" - } - ], - "title": "Nodes Overview", - "transformations": [ - { - "id": "merge", - "options": {} + "id": 1067, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "agent_id": true, - "agent_type": true, - "environment": true, - "instance": true, - "job": true, - "machine_id": true, - "node_id": true, - "node_name": false, - "node_type": true, - "service_name": false + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Active Readers - {{service_name}}", + "range": true, + "refId": "J", + "step": 300 }, - "indexByName": { - "Time": 0, - "Value #A": 3, - "Value #B": 5, - "Value #C": 6, - "Value #D": 2, - "Value #E": 8, - "Value #F": 4, - "Value #G": 7, - "node_name": 1 + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Active Writers - {{service_name}}", + "range": true, + "refId": "A", + "step": 300 + }, + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"})", + "hide": false, + "legendFormat": "Queued Readers - {{service_name}}", + "range": true, + "refId": "B" }, - "renameByName": { - "Value #A": "Uptime", - "Value #B": "Load Average", - "Value #C": "Memory Available", - "Value #D": "RAM", - "Value #E": "Virtual Memory", - "Value #F": "Disk Space", - "Value #G": "Min Space Available", - "node_name": "Node Name", - "service_name": "Service Name" + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"})", + "hide": false, + "interval": "", + "legendFormat": "Queued Writers - {{service_name}}", + "range": true, + "refId": "C" } - } - } - ], - "type": "table" - } - ], - "title": "Nodes Summary", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 81 - }, - "id": 1569, - "panels": [ + ], + "title": "Reads & Writes", + "type": "timeseries" + }, { - "datasource": "Metrics", - "description": "The CPU time is measured in clock ticks or seconds. It is useful to measure CPU time as a percentage of the CPU's capacity, which is called the CPU usage.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 60, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "description": "MongoDB Connections", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 10, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "normal" + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 45 + }, + "id": 1074, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true }, - "thresholdsStyle": { - "mode": "off" + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" } - }, - "decimals": 2, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percent" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Max Core Utilization" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#bf1b00", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "idle" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "avg by (service_name) (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Current - {{service_name}}", + "range": true, + "refId": "J", + "step": 300 }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#806EB7", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "iowait" + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Available - {{service_name}}", + "range": true, + "refId": "A", + "step": 300 }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E24D42", - "mode": "fixed" + { + "editorMode": "code", + "expr": "avg by(service_name) (mongodb_ss_connections{conn_type=~\"current\", service_name=~\"$service_name\"}) - avg by(service_name) (mongodb_ss_connections{conn_type=~\"active\", service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Idle - {{service_name}}", + "range": true, + "refId": "B", + "step": 300 + } + ], + "title": "Average Connections", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 53 + }, + "id": 1056, + "panels": [], + "title": "Collection Details", + "type": "row" + }, + { + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "transparent", + "mode": "fixed" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0 + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "nice" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#1F78C1", - "mode": "fixed" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.cellOptions", + "value": { + "mode": "basic", + "type": "color-background" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" + } + ] + } + ] } - } ] - }, - { - "matcher": { - "id": "byName", - "options": "softirq" + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 54 + }, + "id": 1045, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#FFF899", - "mode": "fixed" + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" } - } ] - }, - { - "matcher": { - "id": "byName", - "options": "steal" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#8F3BB8", - "mode": "fixed" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,service_name) (mongodb_mongod_db_collections_total{environment=~\"$environment\",cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\",service_name=~\"$service_name\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Number of Collections", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": true, + "rs_nm": true + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 2, + "database": 3, + "environment": 1, + "rs_nm": 5, + "service_name": 4 + }, + "renameByName": { + "1710776522937": "", + "Value": "Collections", + "database": "DB Name", + "environment": "Environment", + "service_name": "Node" + } } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "system" + } + ], + "type": "table" + }, + { + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "bytes" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#EAB839", - "mode": "fixed" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" + } + ] + } + ] } - } ] - }, - { - "matcher": { - "id": "byName", - "options": "user" + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 1043, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#508642", - "mode": "fixed" + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" } - } ] - }, - { - "matcher": { - "id": "byName", - "options": "Max Core Utilization" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - }, - { - "id": "custom.showPoints", - "value": "always" - }, - { - "id": "custom.stacking", - "value": { - "group": "A", - "mode": "none" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$rs_nm\", service_name=~\"$service_name\", db !~\"admin|config\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{collection}}", + "range": false, + "refId": "A" + } + ], + "title": "Size of Collections", + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" } - } - ] - }, - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsZero", - "value": 0 - } }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": true, + "rs_nm": true + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 1, + "collection": 3, + "database": 2, + "environment": 7, + "rs_nm": 5, + "service_name": 4 + }, + "renameByName": { + "Value": "Size", + "collection": "Collection Name", + "database": "DB Name", + "db\\shard": "DB Name", + "rs1": "", + "service_name": "Node" + } } - } - ] - }, - { - "matcher": { - "id": "byValue", - "options": { - "op": "gte", - "reducer": "allIsNull", - "value": 0 - } + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "Collections become fragmented over time when there are multiple insert/delete operations", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "percentunit" }, - "properties": [ - { - "id": "custom.hideFrom", - "value": { - "legend": true, - "tooltip": true, - "viz": false + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" + } + ] + } + ] } - } ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 129 - }, - "id": 1676, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true - }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "node_name", - "repeatDirection": "h", - "targets": [ - { - "datasource": "Metrics", - "expr": "avg by (node_name,mode) (clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]))),100))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ mode }}", - "refId": "B" - }, - { - "datasource": "Metrics", - "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)", - "format": "time_series", - "hide": true, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Max Core Utilization", - "refId": "C" }, - { - "datasource": "Metrics", - "exemplar": true, - "expr": "clamp_max(avg(rate(container_cpu_system_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[5m]))),100)", - "hide": false, - "interval": "$interval", - "legendFormat": "system", - "refId": "A" + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 70 }, - { - "datasource": "Metrics", - "exemplar": true, - "expr": "clamp_max(avg(rate(container_cpu_user_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[5m]))),100)", - "hide": false, - "interval": "$interval", - "legendFormat": "user", - "refId": "D" - } - ], - "title": "CPU Usage - $node_name", - "type": "timeseries" - } - ], - "title": "CPU Usage", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 82 - }, - "id": 1571, - "panels": [ - { - "datasource": "Metrics", - "description": "When a system is running with maximum CPU utilization, the transmitting and receiving threads must all share the available CPU. This will cause data to be queued more frequently to cope with the lack of CPU. CPU Saturation may be measured as the length of a wait queue, or the time spent waiting on the queue.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "id": 1681, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" + "frameIndex": 0, + "showHeader": true, + "sortBy": [] }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Allocated" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#E0752D", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "CPU Load" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#64B0C8", - "mode": "fixed" - } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "IO Load " - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#EA6460", - "mode": "fixed" + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_freeStorageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$rs_nm\", service_name=~\"$service_name\", db !~\"admin|config\"} /\nmongodb_collstats_storageStats_storageSize{environment=~\"$environment\", cluster=~\"$cluster\",rs_nm=~\"$rs_nm\", service_name=~\"$service_name\", db !~\"admin|config\"}\n)", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{collection}}", + "range": false, + "refId": "A" + } + ], + "title": "Fragmentation Analysis", + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Limit" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#1F78C1", - "mode": "fixed" + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": true, + "rs_nm": true + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 1, + "collection": 3, + "database": 2, + "environment": 7, + "rs_nm": 5, + "service_name": 4 + }, + "renameByName": { + "Value": "Fragmentation (estimated)", + "collection": "Collection Name", + "database": "DB Name", + "db\\shard": "DB Name", + "rs1": "", + "rs_nm": "", + "service_name": "Node" + } } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Max CPU Core Utilization" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#bf1b00", - "mode": "fixed" + { + "id": "sortBy", + "options": { + "fields": {}, + "sort": [ + { + "desc": true, + "field": "Fragmentation (estimated)" + } + ] } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Max Core Usage" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#bf1b00", - "mode": "fixed" + { + "id": "limit", + "options": { + "limitField": "100" } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Normalized CPU Load" + } + ], + "type": "table" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "transparent", + "mode": "fixed" + }, + "custom": { + "align": "left", + "cellOptions": { + "type": "auto" + }, + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": 0 + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + }, + "unit": "none" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#6ED0E0", - "mode": "fixed" + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Node" + }, + "properties": [ + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?${__data.fields.Node}&${__url_time_range}&${interval:queryparam}&${cluster:queryparam}" + } + ] + } + ] } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Max CPU Core Utilization" - }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - }, - { - "id": "custom.pointSize", - "value": 4 - }, - { - "id": "custom.showPoints", - "value": "always" - }, - { - "id": "unit", - "value": "percentunit" - }, - { - "id": "max", - "value": 1 - }, - { - "id": "custom.axisPlacement", - "value": "right" - }, - { - "id": "custom.axisPlacement", - "value": "hidden" - } ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 163 - }, - "id": 1677, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "node_name", - "repeatDirection": "h", - "targets": [ - { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "((sum(avg_over_time(container_processes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]))-1) / avg by () (machine_cpu_cores)) or\navg by () ((avg_over_time(node_procs_running{node_name=~\"$node_name\"}[$interval])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})) or (avg_over_time(node_procs_running{node_name=~\"$node_name\"}[5m])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Normalized CPU Load", - "metric": "", - "refId": "B", - "step": 300, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Max CPU Core Utilization", - "metric": "", - "refId": "A", - "step": 300, - "target": "" - } - ], - "title": "CPU Saturation and Max Core Usage - $node_name", - "type": "timeseries" - } - ], - "title": "CPU Saturation", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 83 - }, - "id": 1585, - "panels": [ - { - "datasource": "Metrics", - "description": "Disk I/O includes read or write or input/output operations involving a physical disk. It is the speed with which the data transfer takes place between the hard disk drive and RAM.\n\nSwap Activity is memory management that involves swapping sections of memory to and from physical storage.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "Page Out (-) / Page In (+)", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 78 }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Swap In (Reads)" + "id": 1672, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#6ed0e0", - "mode": "fixed" + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" } - } ] - }, - { - "matcher": { - "id": "byName", - "options": "Swap Out (Writes)" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#ef843c", - "mode": "fixed" + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by(environment, cluster, rs_nm, collection, database, service_name) (mongodb_collstats_storageStats_count{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$rs_nm\", service_name=~\"$service_name\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "__auto", + "range": false, + "refId": "A" + } + ], + "title": "Count of Documents", + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "rs_nm", + "rowField": "db", + "valueField": "Value" } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total" }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#bf1b00", - "mode": "fixed" + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": true, + "rs_nm": true + }, + "includeByName": {}, + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 1, + "collection": 3, + "database": 2, + "environment": 7, + "rs_nm": 5, + "service_name": 4 + }, + "renameByName": { + "Value": "Documents", + "collection": "Collection Name", + "database": "DB Name", + "db\\shard": "DB Name", + "rs1": "", + "service_name": "Node" + } } - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Disk Writes (Page Out)" + } + ], + "type": "table" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 1049, + "panels": [ + { + "description": "MongoDB replication lag occurs when the secondary node cannot replicate data fast enough to keep up with the rate that data is being written to the primary node. It could be caused by something as simple as network latency, packet loss within your network, or a routing issue.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "line" + } + }, + "decimals": 2, + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__series.name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent" + }, + { + "color": "red", + "value": 10 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Avg" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#C4162A", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 136 + }, + "id": 1038, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0 ", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Replication Lag", + "type": "timeseries" }, - "properties": [ - { - "id": "custom.transform", - "value": "negative-Y" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Total" + { + "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__series.name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__series.name}$&$__url_time_range" + } + ], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Avg" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#C4162A", + "mode": "fixed" + } + }, + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 8, + "y": 136 + }, + "id": 1025, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"}", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{ service_name }}", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Oplog Recovery Window", + "type": "timeseries" }, - "properties": [ - { - "id": "custom.lineWidth", - "value": 0 - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Swap Out (Writes)" + { + "description": "Number of flow control events and extra latency introduced due to them", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "µs" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "/fc_count.*/" + }, + "properties": [ + { + "id": "unit", + "value": "short" + }, + { + "id": "custom.axisPlacement", + "value": "right" + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 8, + "x": 16, + "y": 136 + }, + "id": 1020, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "desc" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", + "interval": "$interval", + "legendFormat": "fc_count", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "max by ()(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", + "hide": false, + "interval": "$interval", + "legendFormat": "fc_time", + "range": true, + "refId": "B" + } + ], + "title": "Flow Control", + "type": "timeseries" }, - "properties": [ - { - "id": "custom.transform", - "value": "negative-Y" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 174 - }, - "id": 1678, - "links": [ - { - "targetBlank": true, - "title": "Disk Performance", - "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables" - } - ], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + { + "datasource": { + "type": "prometheus" + }, + "description": "Shows the average hourly oplog data written to cache by the Primary server.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 143 + }, + "id": 1680, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "service_name", + "repeatDirection": "h", + "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" + } + ], + "title": "Oplog GB/Hour - $service_name", + "type": "timeseries" + } + ], + "title": "Replication", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 87 }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "node_name", - "repeatDirection": "h", - "targets": [ - { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () (rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) * 1024)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Disk Reads (Page In)", - "metric": "", - "refId": "A", - "step": 300, - "target": "" + "id": 1150, + "panels": [ + { + "description": "ReplSet statuses during the selected time range.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "axisPlacement": "auto", + "fillOpacity": 100, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "semi-dark-red", + "index": 11, + "text": "STARTUP" + }, + "1": { + "color": "rgb(107, 152, 102)", + "index": 4, + "text": "PRIMARY" + }, + "10": { + "color": "semi-dark-red", + "index": 5, + "text": "REMOVED" + }, + "2": { + "color": "rgb(193, 159, 20)", + "index": 3, + "text": "SECONDARY" + }, + "3": { + "color": "semi-dark-red", + "index": 10, + "text": "RECOVERING" + }, + "5": { + "color": "semi-dark-red", + "index": 9, + "text": "STARTUP2" + }, + "6": { + "color": "semi-dark-red", + "index": 8, + "text": "UNKNOWN" + }, + "7": { + "color": "#8B8000", + "index": 1, + "text": "ARBITER" + }, + "8": { + "color": "semi-dark-red", + "index": 7, + "text": "DOWN" + }, + "9": { + "color": "semi-dark-red", + "index": 6, + "text": "ROLLBACK" + }, + "null": { + "color": "#FF7383", + "index": 2, + "text": "Exporter is not connected" + } + }, + "type": "value" + }, + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "N/A" + }, + "to": 1 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 6 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 164 + }, + "id": 1587, + "options": { + "alignValue": "right", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "editorMode": "code", + "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, + "refId": "A" + } + ], + "title": "Member States", + "type": "state-timeline" + } + ], + "title": "States - $rs_nm", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 88 + }, + "id": 1403, + "panels": [ + { + "datasource": "Metrics", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "center", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false, + "width": 100 + }, + "decimals": 2, + "mappings": [ + { + "options": { + "-": { + "index": 1, + "text": "No Data" + }, + "0": { + "color": "#8b0000", + "index": 0, + "text": "No Data" + } + }, + "type": "value" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + }, + { + "color": "orange", + "value": 10 + }, + { + "color": "green", + "value": 20 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "node_name" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + }, + { + "id": "custom.width" + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/node-instance-summary/node-summary?orgId=1&${interval:queryparam}&var-region=All&var-node_type=All&var-environment=All&var-node_name=${__value.text}&${__url_time_range}" + } + ] + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #D" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #F" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "unit", + "value": "percent" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #G" + }, + "properties": [ + { + "id": "unit", + "value": "percent" + }, + { + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } + }, + { + "id": "custom.width", + "value": 170 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #E" + }, + "properties": [ + { + "id": "unit", + "value": "decbytes" + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "custom.width", + "value": 120 + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 165 + }, + "id": 1675, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.6.4", + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (node_name) (time() - container_start_time_seconds{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) ((node_time_seconds{node_name=~\"$node_name\"} - node_boot_time_seconds{node_name=~\"$node_name\"}) or (time() - node_boot_time_seconds{node_name=~\"$node_name\"}))", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Uptime", + "refId": "A" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (avg_over_time(node_load1{node_name=~\"$node_name\"}[$interval]) or avg_over_time(node_load1{node_name=~\"$node_name\"}[5m]))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Load", + "range": false, + "refId": "B" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "clamp_max(avg by (node_name) (container_memory_usage_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"} * 100 / container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|backup-agent|\"}),100) or avg by (node_name) ((node_memory_MemAvailable_bytes{node_name=~\"$node_name\"} or (node_memory_MemFree_bytes{node_name=~\"$node_name\"} + node_memory_Buffers_bytes{node_name=~\"$node_name\"} + node_memory_Cached_bytes{node_name=~\"$node_name\"})) / node_memory_MemTotal_bytes{node_name=~\"$node_name\"} * 100)", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Memory", + "range": false, + "refId": "C" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | RAM", + "range": false, + "refId": "D" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (node_name) (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}+container_spec_memory_swap_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or avg by (node_name) (node_memory_MemTotal_bytes{node_name=~\"$node_name\"}+node_memory_SwapTotal_bytes{node_name=~\"$node_name\"})", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Virtual", + "refId": "E" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (node_name) (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Disk", + "refId": "F" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "min by (node_name) (node_filesystem_free_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"}/node_filesystem_size_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|shm|overlay|squashfs\"})*100", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{node_name}} | Min Space", + "refId": "G" + } + ], + "title": "Nodes Overview", + "transformations": [ + { + "id": "merge", + "options": {} + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "agent_id": true, + "agent_type": true, + "environment": true, + "instance": true, + "job": true, + "machine_id": true, + "node_id": true, + "node_name": false, + "node_type": true, + "service_name": false + }, + "indexByName": { + "Time": 0, + "Value #A": 3, + "Value #B": 5, + "Value #C": 6, + "Value #D": 2, + "Value #E": 8, + "Value #F": 4, + "Value #G": 7, + "node_name": 1 + }, + "renameByName": { + "Value #A": "Uptime", + "Value #B": "Load Average", + "Value #C": "Memory Available", + "Value #D": "RAM", + "Value #E": "Virtual Memory", + "Value #F": "Disk Space", + "Value #G": "Min Space Available", + "node_name": "Node Name", + "service_name": "Service Name" + } + } + } + ], + "type": "table" + } + ], + "title": "Nodes Summary", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 89 + }, + "id": 1569, + "panels": [ + { + "datasource": "Metrics", + "description": "The CPU time is measured in clock ticks or seconds. It is useful to measure CPU time as a percentage of the CPU's capacity, which is called the CPU usage.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percent" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Core Utilization" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#bf1b00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "idle" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#806EB7", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "iowait" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "nice" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#1F78C1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "softirq" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#FFF899", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "steal" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#8F3BB8", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "system" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#EAB839", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "user" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#508642", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Max Core Utilization" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + }, + { + "id": "custom.showPoints", + "value": "always" + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 166 + }, + "id": 1676, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "node_name", + "repeatDirection": "h", + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (node_name,mode) (clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[$interval]) or avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode!=\"total\", mode!=\"idle\", mode!=\"user\", mode!=\"system\"}[5m]))),100))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{ mode }}", + "refId": "B" + }, + { + "datasource": "Metrics", + "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)", + "format": "time_series", + "hide": true, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Max Core Utilization", + "refId": "C" + }, + { + "datasource": "Metrics", + "exemplar": true, + "expr": "clamp_max(avg(rate(container_cpu_system_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"system\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"system\"}[5m]))),100)", + "hide": false, + "interval": "$interval", + "legendFormat": "system", + "refId": "A" + }, + { + "datasource": "Metrics", + "exemplar": true, + "expr": "clamp_max(avg(rate(container_cpu_user_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval])) or \n((avg by () ((clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"user\"}[5m]),1)) ))*100 or \n(avg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[$interval]) or \navg_over_time(node_cpu_average{node_name=~\"$node_name\", mode=\"user\"}[5m]))),100)", + "hide": false, + "interval": "$interval", + "legendFormat": "user", + "refId": "D" + } + ], + "title": "CPU Usage - $node_name", + "type": "timeseries" + } + ], + "title": "CPU Usage", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 90 + }, + "id": 1571, + "panels": [ + { + "datasource": "Metrics", + "description": "When a system is running with maximum CPU utilization, the transmitting and receiving threads must all share the available CPU. This will cause data to be queued more frequently to cope with the lack of CPU. CPU Saturation may be measured as the length of a wait queue, or the time spent waiting on the queue.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Allocated" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E0752D", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "CPU Load" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#64B0C8", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "IO Load " + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#EA6460", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Limit" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#1F78C1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Max CPU Core Utilization" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#bf1b00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Max Core Usage" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#bf1b00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Normalized CPU Load" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#6ED0E0", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Max CPU Core Utilization" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + }, + { + "id": "custom.showPoints", + "value": "always" + }, + { + "id": "unit", + "value": "percentunit" + }, + { + "id": "max", + "value": 1 + }, + { + "id": "custom.axisPlacement", + "value": "right" + }, + { + "id": "custom.axisPlacement", + "value": "hidden" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 200 + }, + "id": 1677, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "node_name", + "repeatDirection": "h", + "targets": [ + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "((sum(avg_over_time(container_processes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]))-1) / avg by () (machine_cpu_cores)) or\navg by () ((avg_over_time(node_procs_running{node_name=~\"$node_name\"}[$interval])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})) or (avg_over_time(node_procs_running{node_name=~\"$node_name\"}[5m])-1) / scalar(count(node_cpu_seconds_total{mode=\"user\", node_name=~\"$node_name\"})))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Normalized CPU Load", + "metric": "", + "refId": "B", + "step": 300, + "target": "" + }, + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "clamp_max(sum(rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or rate(container_cpu_usage_seconds_total{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5m])) or\nmax by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{node_name=~\"$node_name\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) )),1)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Max CPU Core Utilization", + "metric": "", + "refId": "A", + "step": 300, + "target": "" + } + ], + "title": "CPU Saturation and Max Core Usage - $node_name", + "type": "timeseries" + } + ], + "title": "CPU Saturation", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 91 + }, + "id": 1585, + "panels": [ + { + "datasource": "Metrics", + "description": "Disk I/O includes read or write or input/output operations involving a physical disk. It is the speed with which the data transfer takes place between the hard disk drive and RAM.\n\nSwap Activity is memory management that involves swapping sections of memory to and from physical storage.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Page Out (-) / Page In (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Swap In (Reads)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#6ed0e0", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap Out (Writes)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#ef843c", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#bf1b00", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Disk Writes (Page Out)" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Total" + }, + "properties": [ + { + "id": "custom.lineWidth", + "value": 0 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Swap Out (Writes)" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 211 + }, + "id": 1678, + "links": [ + { + "targetBlank": true, + "title": "Disk Performance", + "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables" + } + ], + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "node_name", + "repeatDirection": "h", + "targets": [ + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () (rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) * 1024)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Disk Reads (Page In)", + "metric": "", + "refId": "A", + "step": 300, + "target": "" + }, + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () ((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) * 1024))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Disk Writes (Page Out)", + "metric": "", + "refId": "B", + "step": 300, + "target": "" + }, + { + "datasource": "Metrics", + "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) * 1024 ) + (rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) * 1024))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Total", + "refId": "C" + }, + { + "datasource": "Metrics", + "expr": "avg by (node_name) (rate(node_vmstat_pswpin{node_name=~\"$node_name\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{node_name=~\"$node_name\"}[5m]) * 4096)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Swap In (Reads)", + "refId": "D" + }, + { + "datasource": "Metrics", + "expr": "avg by () (rate(container_memory_swap{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or \nirate(container_memory_swap{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5s])) or \navg by () (rate(node_vmstat_pswpout{node_name=~\"$node_name\"}[$interval]) * 4096 or \nirate(node_vmstat_pswpout{node_name=~\"$node_name\"}[5m]) * 4096)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Swap Out (Writes)", + "refId": "E" + } + ], + "title": "Disk I/O and Swap Activity - $node_name", + "type": "timeseries" + } + ], + "title": "Disk I/O and Swap Activity", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 92 }, + "id": 1583, + "panels": [ + { + "datasource": "Metrics", + "description": "Network traffic refers to the amount of data moving across a network at a given point in time.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Outbound (-) / Inbound (+)", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "stepAfter", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "decimals": 2, + "links": [], + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Outbound" + }, + "properties": [ + { + "id": "custom.transform", + "value": "negative-Y" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 169 + }, + "id": 1679, + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true, + "sortBy": "Mean", + "sortDesc": true + }, + "tooltip": { + "hideZeros": false, + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "11.6.4", + "repeat": "node_name", + "repeatDirection": "h", + "targets": [ + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "sum(rate(container_network_receive_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_receive_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or\nsum(rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Inbound", + "metric": "", + "refId": "B", + "step": 300, + "target": "" + }, + { + "calculatedInterval": "2s", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "sum(rate(container_network_transmit_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_transmit_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or \nsum(rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Outbound", + "metric": "", + "refId": "A", + "step": 300, + "target": "" + } + ], + "title": "Network Traffic - $node_name", + "type": "timeseries" + } + ], + "title": "Network Traffic", + "type": "row" + } + ], + "preload": false, + "refresh": false, + "schemaVersion": 41, + "tags": [ + "MongoDB_HA", + "Percona" + ], + "templating": { + "list": [ { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or\navg by () ((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) * 1024))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Disk Writes (Page Out)", - "metric": "", - "refId": "B", - "step": 300, - "target": "" + "auto": true, + "auto_count": 200, + "auto_min": "1s", + "current": { + "text": "$__auto", + "value": "$__auto" + }, + "label": "Interval", + "name": "interval", + "options": [ + { + "selected": false, + "text": "1s", + "value": "1s" + }, + { + "selected": false, + "text": "5s", + "value": "5s" + }, + { + "selected": false, + "text": "1m", + "value": "1m" + }, + { + "selected": false, + "text": "5m", + "value": "5m" + }, + { + "selected": false, + "text": "1h", + "value": "1h" + }, + { + "selected": false, + "text": "6h", + "value": "6h" + }, + { + "selected": false, + "text": "1d", + "value": "1d" + } + ], + "query": "1s,5s,1m,5m,1h,6h,1d", + "refresh": 2, + "type": "interval" }, { - "datasource": "Metrics", - "expr": "avg by () (sum(rate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_reads_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{node_name=~\"$node_name\"}[5m]) * 1024 ) + (rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) + \navg by () (sum(rate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]) or irate(container_fs_writes_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods.*\"}[5s]))) or \navg by () ((rate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{node_name=~\"$node_name\"}[5m]) * 1024))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Total", - "refId": "C" + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "includeAll": true, + "label": "Environment", + "name": "environment", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "refId": "Metrics-environment-Variable-Query" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "expr": "avg by (node_name) (rate(node_vmstat_pswpin{node_name=~\"$node_name\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{node_name=~\"$node_name\"}[5m]) * 4096)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Swap In (Reads)", - "refId": "D" + "allValue": ".*", + "current": { + "text": "All", + "value": "$__all" + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "includeAll": true, + "label": "Cluster", + "name": "cluster", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, { - "datasource": "Metrics", - "expr": "avg by () (rate(container_memory_swap{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[$interval]) or \nirate(container_memory_swap{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}[5s])) or \navg by () (rate(node_vmstat_pswpout{node_name=~\"$node_name\"}[$interval]) * 4096 or \nirate(node_vmstat_pswpout{node_name=~\"$node_name\"}[5m]) * 4096)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Swap Out (Writes)", - "refId": "E" - } - ], - "title": "Disk I/O and Swap Activity - $node_name", - "type": "timeseries" - } - ], - "title": "Disk I/O and Swap Activity", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 84 - }, - "id": 1583, - "panels": [ - { - "datasource": "Metrics", - "description": "Network traffic refers to the amount of data moving across a network at a given point in time.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "Outbound (-) / Inbound (+)", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "current": { + "text": "", + "value": "" }, - "insertNulls": false, - "lineInterpolation": "stepAfter", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "includeAll": false, + "label": "Replica Set", + "name": "rs_nm", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "type": "query" + }, + { + "current": { + "text": "All", + "value": "$__all" }, - "showPoints": "never", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", + "includeAll": true, + "label": "MongoDB Node", + "name": "service_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", + "refId": "StandardVariableQuery" }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Outbound" + { + "current": { + "text": "All", + "value": [ + "$__all" + ] }, - "properties": [ - { - "id": "custom.transform", - "value": "negative-Y" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 132 - }, - "id": 1679, - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true, - "sortBy": "Mean", - "sortDesc": true + "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", + "hide": 2, + "includeAll": true, + "label": "Node Name", + "multi": true, + "name": "node_name", + "options": [], + "query": { + "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", + "refId": "Metrics-node_name-Variable-Query" + }, + "refresh": 2, + "regex": "", + "sort": 5, + "type": "query" }, - "tooltip": { - "hideZeros": false, - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "11.6.4", - "repeat": "node_name", - "repeatDirection": "h", - "targets": [ { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "sum(rate(container_network_receive_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_receive_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or\nsum(rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Inbound", - "metric": "", - "refId": "B", - "step": 300, - "target": "" + "current": { + "text": "All", + "value": [ + "$__all" + ] + }, + "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", + "hide": 2, + "includeAll": true, + "multi": true, + "name": "secondary", + "options": [], + "query": { + "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "/.*service_name=\"(.*)\",service_type.*/", + "type": "query" }, { - "calculatedInterval": "2s", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "expr": "sum(rate(container_network_transmit_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[$interval]) or \nirate(container_network_transmit_bytes_total{node_name=~\"$node_name\",id=~\"/kubepods/.*\"}[5m])) or \nsum(rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or \nsum(irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or \nsum(max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Outbound", - "metric": "", - "refId": "A", - "step": 300, - "target": "" + "current": { + "text": "", + "value": "" + }, + "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==1)", + "hide": 2, + "includeAll": false, + "name": "primary", + "options": [], + "query": { + "qryType": 3, + "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==1)", + "refId": "PrometheusVariableQueryEditor-VariableQuery" + }, + "refresh": 2, + "regex": "/.*service_name=\"(.*)\",service_type.*/", + "type": "query" } - ], - "title": "Network Traffic - $node_name", - "type": "timeseries" - } - ], - "title": "Network Traffic", - "type": "row" - } - ], - "preload": false, - "refresh": "", - "schemaVersion": 41, - "tags": [ - "MongoDB_HA", - "Percona" - ], - "templating": { - "list": [ - { - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "text": "$__auto", - "value": "$__auto" - }, - "label": "Interval", - "name": "interval", - "options": [ - { - "selected": false, - "text": "1s", - "value": "1s" - }, - { - "selected": false, - "text": "5s", - "value": "5s" - }, - { - "selected": false, - "text": "1m", - "value": "1m" - }, - { - "selected": false, - "text": "5m", - "value": "5m" - }, - { - "selected": false, - "text": "1h", - "value": "1h" - }, - { - "selected": false, - "text": "6h", - "value": "6h" - }, - { - "selected": false, - "text": "1d", - "value": "1d" - } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": { + "hidden": false, + "now": true, + "refresh_intervals": [ + "1s", + "5s", + "1m", + "5m", + "1h", + "6h", + "1d" ], - "query": "1s,5s,1m,5m,1h,6h,1d", - "refresh": 2, - "type": "interval" - }, - { - "allValue": ".*", - "current": { - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "includeAll": true, - "label": "Environment", - "name": "environment", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "refId": "Metrics-environment-Variable-Query" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "allValue": ".*", - "current": { - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "includeAll": true, - "label": "Cluster", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "", - "value": "" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "includeAll": false, - "label": "Replica Set", - "name": "rs_nm", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "type": "query" - }, - { - "current": { - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", - "includeAll": true, - "label": "MongoDB Node", - "name": "service_name", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", - "hide": 2, - "includeAll": true, - "label": "Node Name", - "multi": true, - "name": "node_name", - "options": [], - "query": { - "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", - "refId": "Metrics-node_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "sort": 5, - "type": "query" - }, - { - "current": { - "text": "All", - "value": [ - "$__all" - ] - }, - "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", - "hide": 2, - "includeAll": true, - "multi": true, - "name": "secondary", - "options": [], - "query": { - "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "/.*service_name=\"(.*)\",service_type.*/", - "type": "query" - }, - { - "current": { - "text": "", - "value": "" - }, - "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==1)", - "hide": 2, - "includeAll": false, - "name": "primary", - "options": [], - "query": { - "qryType": 3, - "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==1)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" - }, - "refresh": 2, - "regex": "/.*service_name=\"(.*)\",service_type.*/", - "type": "query" - } - ] - }, - "time": { - "from": "now-12h", - "to": "now" - }, - "timepicker": - { - "hidden": false, - "now": true, - "refresh_intervals": - [ - "1s", - "5s", - "1m", - "5m", - "1h", - "6h", - "1d" - ], - "time_options": - [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "MongoDB ReplSet Summary", - "uid": "mongodb-replicaset-summary", - "version": 2 + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "browser", + "title": "MongoDB ReplSet Summary", + "uid": "mongodb-replicaset-summary", + "version": 2 } + diff --git a/dashboards/misc/cleanup-dash.py b/dashboards/misc/cleanup-dash.py index e2a5edb1fd..1e2d0d384f 100755 --- a/dashboards/misc/cleanup-dash.py +++ b/dashboards/misc/cleanup-dash.py @@ -64,6 +64,7 @@ def main(): sort_keys=True, indent=4, separators=(',', ': '), + ensure_ascii=False, ) if args.check_only: