diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json new file mode 100644 index 0000000000..932341762f --- /dev/null +++ b/dashboards/Experimental/MongoDB_Cluster_Summary_(Old).json @@ -0,0 +1,4488 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": "-- 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": "-- 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, + "iteration": 1656415942746, + "links": [ + { + "icon": "doc", + "includeVars": true, + "keepTime": true, + "tags": [ + "Home" + ], + "targetBlank": false, + "title": "Home", + "type": "link", + "url": "/graph/d/pmm-home/home-dashboard" + }, + { + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [ + "Query Analytics" + ], + "targetBlank": false, + "title": "Query Analytics", + "type": "link", + "url": "/graph/d/pmm-qan/pmm-query-analytics" + }, + { + "icon": "bolt", + "includeVars": true, + "keepTime": true, + "tags": [ + "Compare" + ], + "targetBlank": false, + "title": "Compare", + "type": "link", + "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB" + ], + "targetBlank": false, + "title": "MongoDB", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB_HA" + ], + "targetBlank": false, + "title": "HA", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "Services" + ], + "targetBlank": false, + "title": "Services", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "PMM" + ], + "targetBlank": false, + "title": "PMM", + "type": "dashboards" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1069, + "panels": [], + "title": "Overview", + "type": "row" + }, + { + "description": "Sharding is a method for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 0, + "y": 1 + }, + "hideTimeOverride": true, + "id": 35, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"partitioned\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Sharded DBs", + "type": "stat" + }, + { + "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 4, + "y": 1 + }, + "hideTimeOverride": true, + "id": 39, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"unpartitioned\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Unsharded DBs", + "type": "stat" + }, + { + "collapsed": false, + "default_title_for_rows": "DB Name", + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "gridPos": { + "h": 12, + "w": 8, + "x": 8, + "y": 1 + }, + "id": 1043, + "pluginVersion": "9.2.20", + "title": "Amount of Collections in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "color": "dark-blue", + "index": 0 + } + } + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" + } + ] + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + }, + "frameIndex": 0, + "sortBy": [ + { + "displayName": "DB Name\\Value", + "desc": false + } + ] + }, + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "db\\shard": "DB Name", + "rs1": "" + } + } + } + ], + "targets": [ + { + "expr": "max by (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "refId": "A" + }, + { + "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": true, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Size", + "refId": "B" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "default_title_for_rows": "DB Name", + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "gridPos": { + "h": 12, + "w": 8, + "x": 16, + "y": 1 + }, + "hide_headers": false, + "id": 1030, + "pluginVersion": "9.2.20", + "title": "Size of Collections in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [ + { + "type": "value", + "options": { + "0": { + "color": "dark-blue", + "index": 0, + "text": "0" + } + } + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-", + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" + } + ] + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + }, + "frameIndex": 0, + "sortBy": [ + { + "displayName": "DB Name\\Value", + "desc": false + } + ] + }, + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "db\\shard": "DB Name", + "rs1": "" + } + } + } + ], + "targets": [ + { + "expr": "max by (db,shard) (mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "refId": "A" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "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", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 0, + "y": 4 + }, + "hideTimeOverride": true, + "id": 36, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_shards_total{cluster=\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Shards", + "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", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 4, + "y": 4 + }, + "hideTimeOverride": true, + "id": 11, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "sum(mongodb_mongos_sharding_chunks_total{cluster=\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Chunks", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Chunks", + "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", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 0, + "y": 7 + }, + "hideTimeOverride": true, + "id": 1028, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_shards_draining_total{cluster=\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Draining Total", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Draining Shards", + "type": "stat" + }, + { + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 4, + "y": 7 + }, + "hideTimeOverride": true, + "id": 10, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_collections_total{cluster=\"$cluster\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Shards", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Sharded Collections", + "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" + }, + "1": { + "text": "YES" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)", + "value": null + }, + { + "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": 4, + "x": 0, + "y": 10 + }, + "hideTimeOverride": true, + "id": 5, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "max(mongodb_mongos_sharding_balancer_enabled{cluster=\"$cluster\"})", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Cluster Balanced", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Balancer Enabled", + "type": "stat" + }, + { + "description": "When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per 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)", + "value": null + }, + { + "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": 4, + "x": 4, + "y": 10 + }, + "hideTimeOverride": true, + "id": 4, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "Cluster Balancer is Running", + "refId": "A", + "step": 300 + } + ], + "timeFrom": "1m", + "title": "Chunks Balancer is running", + "type": "stat" + }, + { + "colors": [ + "#299c46", + "rgba(237, 129, 40, 0.89)", + "#d44a3a", + "#4040a0" + ], + "description": "Config services 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.", + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 13 + }, + "id": 1229, + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "nullPointMode": "connected", + "polystat": { + "animationSpeed": 2500, + "columnAutoSize": true, + "columns": "", + "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "defaultClickThroughNewTab": true, + "defaultClickThroughSanitize": true, + "displayLimit": 100, + "ellipseCharacters": 18, + "ellipseEnabled": false, + "fontAutoColor": true, + "fontAutoScale": true, + "fontSize": 12, + "fontType": "Roboto", + "globalDecimals": 0, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalOperatorName": "current", + "globalUnitFormat": "ops", + "gradientEnabled": true, + "hexagonSortByDirection": 1, + "hexagonSortByField": "name", + "maxMetrics": 0, + "polygonBorderColor": "black", + "polygonBorderSize": 2, + "polygonGlobalFillColor": "#8F3BB8", + "radius": "", + "radiusAutoSize": true, + "regexPattern": "", + "rowAutoSize": true, + "rows": "", + "shape": "hexagon_pointed_top", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipEnabled": true, + "tooltipFontSize": 12, + "tooltipFontType": "Roboto", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortField": "name", + "tooltipTimestampEnabled": true, + "valueEnabled": true + }, + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeatDirection": "v", + "savedComposites": [], + "savedOverrides": [], + "targets": [ + { + "expr": "sum by (service_name) (mongodb_connections{cluster=\"$cluster\", state=\"current\"} * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))", + "format": "time_series", + "hide": true, + "instant": false, + "interval": "$interval", + "legendFormat": "Config - {{service_name}} ", + "refId": "A" + }, + { + "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))", + "interval": "$interval", + "legendFormat": "{{service_name}}", + "refId": "B" + } + ], + "title": "QPS of Config Services", + "type": "grafana-polystat-panel", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ] + }, + { + "colors": [ + "#299c46", + "rgba(237, 129, 40, 0.89)", + "#d44a3a", + "#4040a0" + ], + "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.", + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 13 + }, + "id": 1231, + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "nullPointMode": "connected", + "polystat": { + "animationSpeed": 2500, + "columnAutoSize": true, + "columns": "", + "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "defaultClickThroughNewTab": true, + "defaultClickThroughSanitize": true, + "displayLimit": 100, + "ellipseCharacters": 18, + "ellipseEnabled": false, + "fontAutoColor": true, + "fontAutoScale": true, + "fontSize": 12, + "fontType": "Roboto", + "globalDecimals": 0, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalOperatorName": "current", + "globalUnitFormat": "ops", + "gradientEnabled": true, + "hexagonSortByDirection": 1, + "hexagonSortByField": "name", + "maxMetrics": 0, + "polygonBorderColor": "black", + "polygonBorderSize": 2, + "polygonGlobalFillColor": "#8AB8FF", + "radius": "", + "radiusAutoSize": true, + "regexPattern": "", + "rowAutoSize": true, + "rows": "", + "shape": "hexagon_pointed_top", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipEnabled": true, + "tooltipFontSize": 12, + "tooltipFontType": "Roboto", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortField": "name", + "tooltipTimestampEnabled": true, + "valueEnabled": true + }, + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeatDirection": "v", + "savedComposites": [], + "savedOverrides": [ + { + "clickThrough": "", + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "decimals": "", + "enabled": true, + "label": "OVERRIDE 1", + "metricName": "", + "newTabEnabled": true, + "operatorName": "avg", + "prefix": "", + "sanitizeURLEnabled": false, + "suffix": "", + "thresholds": [], + "unitFormat": "short" + } + ], + "targets": [ + { + "exemplar": true, + "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",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\"})))", + "format": "time_series", + "instant": false, + "interval": "$interval", + "legendFormat": "{{service_name}} ", + "refId": "A" + } + ], + "title": "QPS of Mongos Service", + "type": "grafana-polystat-panel", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ] + }, + { + "colors": [ + "#299c46", + "rgba(237, 129, 40, 0.89)", + "#d44a3a", + "#4040a0" + ], + "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.", + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 1227, + "mappingType": 1, + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "nullPointMode": "connected", + "polystat": { + "animationSpeed": 2500, + "columnAutoSize": true, + "columns": "", + "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "defaultClickThroughNewTab": true, + "defaultClickThroughSanitize": true, + "displayLimit": 100, + "ellipseCharacters": 18, + "ellipseEnabled": false, + "fontAutoColor": true, + "fontAutoScale": true, + "fontSize": 12, + "fontType": "Roboto", + "globalDecimals": 0, + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "OK", + "globalOperatorName": "current", + "globalUnitFormat": "ops", + "gradientEnabled": true, + "hexagonSortByDirection": 1, + "hexagonSortByField": "name", + "maxMetrics": 0, + "polygonBorderColor": "black", + "polygonBorderSize": 2, + "polygonGlobalFillColor": "#0a50a1", + "radius": "", + "radiusAutoSize": true, + "regexPattern": "", + "rowAutoSize": true, + "rows": "", + "shape": "hexagon_pointed_top", + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipEnabled": true, + "tooltipFontSize": 12, + "tooltipFontType": "Roboto", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortField": "name", + "tooltipTimestampEnabled": true, + "valueEnabled": true + }, + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "repeat": "shard", + "repeatDirection": "v", + "savedComposites": [], + "savedOverrides": [ + { + "clickThrough": "", + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "decimals": "", + "enabled": true, + "label": "OVERRIDE 1", + "metricName": "", + "newTabEnabled": true, + "operatorName": "avg", + "prefix": "", + "sanitizeURLEnabled": false, + "suffix": "", + "thresholds": [], + "unitFormat": "short" + } + ], + "targets": [ + { + "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}))", + "format": "time_series", + "instant": false, + "interval": "$interval", + "legendFormat": "{{service_name}} ", + "refId": "A" + } + ], + "title": "QPS of Services in Shard - $shard", + "type": "grafana-polystat-panel", + "valueMaps": [ + { + "op": "=", + "text": "N/A", + "value": "null" + } + ] + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 1199, + "panels": [], + "title": "Chunks in Shards", + "type": "row" + }, + { + "backgroundColor": "rgba(128,128,128,0.1)", + "colorMaps": [ + { + "color": "#CCC", + "text": "N/A" + } + ], + "crosshairColor": "#8F070C", + "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.", + "display": "timeline", + "expandFromQueryS": 0, + "extendLastValue": true, + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 24 + }, + "highlightOnMouseover": true, + "id": 1215, + "legendSortBy": "-ms", + "lineColor": "rgba(0,0,0,0.1)", + "metricNameColor": "#000000", + "rangeMaps": [ + { + "from": "null", + "text": "N/A", + "to": "null" + } + ], + "rowHeight": 50, + "showLegend": true, + "showLegendNames": true, + "showLegendPercent": true, + "showLegendValues": true, + "showTimeAxis": true, + "targets": [ + { + "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})", + "interval": "$interval", + "legendFormat": "$cluster", + "refId": "A" + } + ], + "textSize": 24, + "textSizeTime": 12, + "timeOptions": [ + { + "name": "Years", + "value": "years" + }, + { + "name": "Months", + "value": "months" + }, + { + "name": "Weeks", + "value": "weeks" + }, + { + "name": "Days", + "value": "days" + }, + { + "name": "Hours", + "value": "hours" + }, + { + "name": "Minutes", + "value": "minutes" + }, + { + "name": "Seconds", + "value": "seconds" + }, + { + "name": "Milliseconds", + "value": "milliseconds" + } + ], + "timePrecision": { + "name": "Minutes", + "value": "minutes" + }, + "timeTextColor": "#d8d9da", + "title": "Chunks Balancer is running", + "type": "natel-discrete-panel", + "units": "short", + "use12HourClock": false, + "useTimePrecision": false, + "valueMaps": [ + { + "op": "=", + "text": "YES", + "value": "1" + }, + { + "op": "=", + "text": "NO", + "value": "0" + } + ], + "valueTextColor": "#000000", + "writeAllValues": false, + "writeLastValue": true, + "writeMetricNames": false + }, + { + "default_title_for_rows": "Shard Name", + "description": "A chunk consists of a subset of sharded data.", + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 28 + }, + "hide_headers": false, + "id": 1200, + "pluginVersion": "9.2.20", + "title": "Amount of Chunks in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Chunks" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + } + }, + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true + }, + "indexByName": {}, + "renameByName": { + "shard": "Shard Name", + "Value": "Chunks" + } + } + } + ], + "targets": [ + { + "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{shard}} | Chunks", + "refId": "A" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB ReplSet Summary", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 16, + "x": 8, + "y": 28 + }, + "hiddenSeries": false, + "id": 1201, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Dynamic of Chunks", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "cps", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 36 + }, + "hiddenSeries": false, + "id": 1212, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Chunks Split Events", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 36 + }, + "hiddenSeries": false, + "id": 1216, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Chunks Move Events", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 44 + }, + "id": 1045, + "panels": [], + "title": "Indexes in Shards", + "type": "row" + }, + { + "default_title_for_rows": "DB Name", + "description": "Indexes are special data structures that store a small portion of the collection’s data set in an easy to traverse form. ", + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 45 + }, + "hide_headers": false, + "id": 1040, + "pluginVersion": "9.2.20", + "title": "Amount of Indexes in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 0, + "text": "No data" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" + } + ] + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + }, + "frameIndex": 0, + "sortBy": [ + { + "displayName": "DB Name\\Value", + "desc": false + } + ] + }, + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "db\\shard": "DB Name", + "rs1": "" + } + } + } + ], + "targets": [ + { + "expr": "avg by (db,shard) (mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"})", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "refId": "A" + }, + { + "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}", + "editorMode": "code", + "range": false, + "exemplar": false, + "format": "table", + "hide": true, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Size", + "refId": "B" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 16, + "x": 8, + "y": 45 + }, + "hiddenSeries": false, + "id": 1042, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "avg by (db,shard) (rate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or irate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{shard}}-{{db}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Dynamic of Indexes", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "cps", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "default_title_for_rows": "DB Name", + "description": "The index stores the value of a specific field or set of fields, ordered by the value of the field. ", + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 53 + }, + "hide_headers": false, + "id": 1072, + "pluginVersion": "9.2.20", + "title": "Size of Indexes in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 0, + "text": "No data" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-", + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" + } + ] + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + }, + "frameIndex": 0, + "sortBy": [ + { + "displayName": "DB Name\\Value", + "desc": false + } + ] + }, + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "db\\shard": "DB Name", + "rs1": "" + } + } + } + ], + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "avg by (db,shard) (mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "refId": "A" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 16, + "x": 8, + "y": 53 + }, + "hiddenSeries": false, + "id": 1073, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "avg by (db,shard) (rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{shard}}-{{db}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Dynamic of Indexes Size", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "Bps", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 61 + }, + "id": 1071, + "panels": [ + { + "default_title_for_rows": "DB Name", + "description": "Documents in MongoDB are objects stored in a format called BSON, a binary-encoded superset of JSON that supports additional data types.", + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 29 + }, + "hide_headers": false, + "id": 1066, + "pluginVersion": "9.2.20", + "title": "Amount of Objects in Shards", + "type": "table", + "fieldConfig": { + "defaults": { + "custom": { + "align": "left", + "displayMode": "auto", + "inspect": false, + "filterable": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-red", + "index": 0, + "text": "No data" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 20 + } + ] + }, + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "noValue": "-" + }, + "overrides": [ + { + "matcher": { + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + }, + { + "id": "color", + "value": { + "mode": "fixed", + "fixedColor": "dark-blue" + } + }, + { + "id": "links", + "value": [ + { + "title": "", + "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" + } + ] + } + ] + } + ] + }, + "options": { + "showHeader": true, + "footer": { + "show": false, + "reducer": [ + "sum" + ], + "fields": "" + }, + "frameIndex": 0, + "sortBy": [ + { + "displayName": "DB Name\\Value", + "desc": false + } + ] + }, + "transformations": [ + { + "id": "groupingToMatrix", + "options": { + "columnField": "shard", + "rowField": "db", + "valueField": "Value" + } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "db\\shard": "DB Name", + "rs1": "" + } + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "exemplar": false, + "expr": "avg by (db,shard) (mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"})", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "refId": "A" + } + ], + "sorting_props": { + "col_index": -1, + "direction": "desc" + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 16, + "x": 8, + "y": 29 + }, + "hiddenSeries": false, + "id": 1067, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.6", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "avg by (db,shard) (increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{shard}}-{{db}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Dynamic of Objects", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "Objects in Shards", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 81, + "panels": [], + "title": "Connections", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "TCP connections (Incoming) in mongod processes.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 63 + }, + "hiddenSeries": false, + "id": 37, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{set}}", + "refId": "B", + "step": 300 + }, + { + "expr": "sum by () (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", + "hide": false, + "interval": "$interval", + "legendFormat": "Total", + "refId": "A" + }, + { + "expr": "sum by (shard) (avg by (service_name,shard) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"} / mongodb_mongos_db_collections_total{cluster=\"$cluster\"}))", + "format": "time_series", + "hide": true, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{shard}}", + "refId": "C", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Current Connections Per Shard", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "Incoming connections to mongos nodes.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 63 + }, + "hiddenSeries": false, + "id": 7, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (state) (max_over_time(mongodb_connections{cluster=\"$cluster\"}[$interval]) or max_over_time(mongodb_connections{cluster=\"$cluster\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{state}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Total Connections", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "", + "logBase": 2, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 71 + }, + "id": 50, + "panels": [], + "title": "Connections Details", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 72 + }, + "hiddenSeries": false, + "id": 1178, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "maxPerRow": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Current Connections ", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 79 + }, + "hiddenSeries": false, + "id": 1177, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "maxPerRow": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Available Connections", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 86 + }, + "id": 1149, + "panels": [], + "title": "Cursors", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 0, + "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution. ", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 87 + }, + "hiddenSeries": false, + "id": 25, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) 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 + }, + { + "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"})", + "interval": "$interval", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Cursors Per Shard", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 87 + }, + "hiddenSeries": false, + "id": 31, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "exemplar": true, + "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", + "hide": false, + "interval": "$interval", + "legendFormat": "Cursors", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Mongos Cursors", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 95 + }, + "id": 62, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "editable": true, + "error": false, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 49 + }, + "hiddenSeries": false, + "id": 1179, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "dataLinks": [] + }, + "percentage": false, + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (service_name) (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", + "hide": false, + "interval": "$interval", + "legendFormat": "{{service_name}}", + "refId": "A" + }, + { + "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", + "interval": "$interval", + "legendFormat": "Total", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Mongos Cursors", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "Cursors Details", + "type": "row" + }, + { + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 96 + }, + "id": 1056, + "title": "Mongos Operations", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 0, + "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 97 + }, + "hiddenSeries": false, + "id": 30, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + {} + ], + "spaceLength": 10, + "stack": true, + "steppedLine": false, + "targets": [ + { + "expr": "sum(sum(rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_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 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Operations Per Shard", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 97 + }, + "hiddenSeries": false, + "id": 46, + "interval": "", + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{type}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Total Mongos Operations", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 105 + }, + "id": 52, + "panels": [], + "title": "Operations Details", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 106 + }, + "hiddenSeries": false, + "id": 53, + "interval": "", + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "maxPerRow": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{type}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Operations $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 113 + }, + "id": 97, + "panels": [], + "title": "Other", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 114 + }, + "hiddenSeries": false, + "id": 14, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m]) > 0) by (service_name,set))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{set}}", + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Replication Lag by Set", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 114 + }, + "hiddenSeries": false, + "id": 27, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "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 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Range by Set", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Count, over last 10 minutes, of all types of config db changelog events.", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 122 + }, + "hiddenSeries": false, + "id": 1213, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "expr": "rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[5m])", + "interval": "$interval", + "legendFormat": "{{event}}", + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Change Log Events", + "tooltip": { + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "refresh": "1m", + "schemaVersion": 34, + "style": "dark", + "tags": [ + "Percona" + ], + "templating": { + "list": [ + { + "allFormat": "glob", + "auto": true, + "auto_count": 200, + "auto_min": "1s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "datasource": "Metrics", + "hide": 0, + "includeAll": false, + "label": "Interval", + "multi": false, + "multiFormat": "glob", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "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, + "skipUrlSync": false, + "type": "interval" + }, + { + "allFormat": "glob", + "current": { + "selected": false, + "text": "mongodb_cluster", + "value": "mongodb_cluster" + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_up,cluster)", + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "multiFormat": "glob", + "name": "cluster", + "options": [], + "query": { + "query": "label_values(mongodb_up,cluster)", + "refId": "Metrics-cluster-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)", + "hide": 2, + "includeAll": true, + "label": "Service Name", + "multi": true, + "name": "service_name", + "options": [], + "query": { + "query": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)", + "refId": "Metrics-service_name-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", + "hide": 2, + "includeAll": true, + "label": "Shard Name", + "multi": true, + "name": "shard", + "options": [], + "query": { + "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", + "refId": "Metrics-shard-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", + "hide": 2, + "includeAll": true, + "label": "Node Name", + "multi": true, + "name": "node_name", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", + "refId": "Metrics-node_name-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "hide": 2, + "includeAll": true, + "label": "Environment", + "multi": true, + "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": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", + "hide": 2, + "includeAll": true, + "label": "Replication Set", + "multi": true, + "name": "replication_set", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", + "refId": "Metrics-replication_set-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", + "hide": 2, + "includeAll": true, + "label": "Database", + "multi": true, + "name": "database", + "options": [], + "query": { + "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", + "refId": "Metrics-database-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", + "hide": 2, + "includeAll": true, + "label": "Type", + "multi": true, + "name": "node_type", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", + "refId": "Metrics-node_type-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", + "hide": 2, + "includeAll": true, + "label": "Type", + "multi": true, + "name": "service_type", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", + "refId": "Metrics-service_type-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", + "hide": 2, + "includeAll": true, + "label": "Username", + "multi": true, + "name": "username", + "options": [], + "query": { + "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", + "refId": "Metrics-username-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": {}, + "hide": 2, + "includeAll": true, + "label": "Schema", + "multi": true, + "name": "schema", + "options": [], + "query": "", + "skipUrlSync": false, + "type": "custom" + } + ] + }, + "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": "", + "title": "MongoDB Cluster Summary (Old)", + "uid": "mongodb-cluster-summary_old", + "version": 1, + "weekStart": "" +} diff --git a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json b/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json deleted file mode 100644 index b96f7c811e..0000000000 --- a/dashboards/Experimental/MongoDB_Cluster_Summary_(new).json +++ /dev/null @@ -1,3408 +0,0 @@ -{ - "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": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 73, - "links": [ - { - "icon": "doc", - "includeVars": true, - "keepTime": true, - "tags": [ - "Home" - ], - "targetBlank": false, - "title": "Home", - "type": "link", - "url": "/graph/d/pmm-home/home-dashboard" - }, - { - "icon": "dashboard", - "includeVars": true, - "keepTime": true, - "tags": [ - "Query Analytics" - ], - "targetBlank": false, - "title": "Query Analytics", - "type": "link", - "url": "/graph/d/pmm-qan/pmm-query-analytics" - }, - { - "icon": "bolt", - "includeVars": true, - "keepTime": true, - "tags": [ - "Compare" - ], - "targetBlank": false, - "title": "Compare", - "type": "link", - "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB" - ], - "targetBlank": false, - "title": "MongoDB", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB_HA" - ], - "targetBlank": false, - "title": "HA", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "Services" - ], - "targetBlank": false, - "title": "Services", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "PMM" - ], - "targetBlank": false, - "title": "PMM", - "type": "dashboards" - } - ], - "liveNow": false, - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 1275, - "panels": [ - { - "description": "", - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 1277, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### 🛎️ Important\n\nThis Dashboard is an experimental MongoDB Instance Summary dashboard in Percona Monitoring and Management (PMM) that is not a part of the official PMM deployment and might be updated.\nWe ship this Dashboard to obtain feedback from our users. Once we officially release this Dashboard, it will be moved to the appropriate folder. \n\nTo provide feedback on the Dashboard, please use [our](https://forums.percona.com) forum.🙏", - "mode": "markdown" - }, - "pluginVersion": "9.2.20", - "transparent": true, - "type": "text" - } - ], - "title": "⚠️ Disclaimer", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1069, - "panels": [], - "targets": [ - { - "refId": "A" - } - ], - "title": "Overview", - "type": "row" - }, - { - "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": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 1227, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.2.20", - "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!~\"\"}[1s]))", - "format": "time_series", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{rs_nm}} ", - "range": false, - "refId": "B" - } - ], - "title": "QPS of Services in Shard", - "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": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 7 - }, - "hideTimeOverride": true, - "id": 36, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": "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", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 7 - }, - "hideTimeOverride": true, - "id": 1028, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 7 - }, - "hideTimeOverride": true, - "id": 35, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 6, - "y": 7 - }, - "hideTimeOverride": true, - "id": 10, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "max by (environment, cluster) (mongodb_ss_shardingStatistics_numShardedCollections{environment=~\"$environment\",cluster=~\"$cluster\"} or mongodb_mongos_sharding_collections_total{environment=~\"$environment\",cluster=~\"$cluster\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Shards", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Sharded Collections", - "type": "stat" - }, - { - "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 0, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 3, - "x": 9, - "y": 7 - }, - "hideTimeOverride": true, - "id": 1244, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "max(mongodb_mongos_sharding_databases_total{environment=~\"$environment\",cluster=~\"$cluster\", type=\"unpartitioned\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Shards", - "range": true, - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Unsharded Collections", - "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" - }, - "1": { - "text": "YES" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 1 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 7 - }, - "hideTimeOverride": true, - "id": 5, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 5, - "x": 14, - "y": 7 - }, - "hideTimeOverride": true, - "id": 11, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": "Total amount of Chunks", - "type": "stat" - }, - { - "description": "This shows the time since the last election.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 2, - "w": 5, - "x": 19, - "y": 7 - }, - "hideTimeOverride": false, - "id": 1293, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": "ReplSet Last Election", - "type": "stat" - }, - { - "id": 1267, - "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 9 - }, - "type": "bargauge", - "title": "Chunks distribution", - "repeatDirection": "v", - "pluginVersion": "9.2.20", - "description": "Show the chunk distribution between all the shards involved", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "color": { - "mode": "thresholds" - }, - "unit": "percentunit", - "max": 1, - "min": 0 - }, - "overrides": [] - }, - "options": { - "reduceOptions": { - "values": false, - "calcs": [ - "lastNotNull" - ], - "fields": "" - }, - "orientation": "auto", - "displayMode": "gradient", - "showUnfilled": true, - "minVizWidth": 0, - "minVizHeight": 10 - }, - "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" - } - ] - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 14 - }, - "hiddenSeries": false, - "id": 1269, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/repl.*/", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Command Operations", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "ops", - "label": "", - "logBase": 1, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "Show the 5 collections that are most frequently read.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 14 - }, - "id": 1271, - "links": [], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.2.20", - "repeatDirection": "v", - "targets": [ - { - "editorMode": "code", - "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\"})[$interval]))", - "hide": false, - "legendFormat": "{{database}}.{{collection}}", - "range": true, - "refId": "B" - } - ], - "title": "Top Hottest Collections by Read", - "transformations": [], - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 22 - }, - "hiddenSeries": false, - "id": 1297, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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\", ervice_name=~\"$service_name\"}[5m]) > 0))", - "interval": "$interval", - "legendFormat": "{{op_type}}", - "range": true, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Query execution times", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "µs", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 22 - }, - "id": 1273, - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "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\"})[1m]))", - "instant": false, - "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", - "legendFormat": "{{database}}.{{collection}}", - "range": true, - "refId": "A" - } - ], - "title": "Top Hottest Collections by Write", - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 0, - "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 30 - }, - "hiddenSeries": false, - "id": 30, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "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 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Operations Per Shard", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "service_name" - }, - "properties": [ - { - "id": "displayName", - "value": "Service Name" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "links", - "value": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__cell}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}" - } - ] - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "mongodb" - }, - "properties": [ - { - "id": "displayName", - "value": "Version" - }, - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value" - }, - "properties": [ - { - "id": "custom.hidden", - "value": true - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 30 - }, - "hideTimeOverride": true, - "id": 1289, - "links": [], - "options": { - "footer": { - "enablePagination": true, - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "exemplar": false, - "expr": "avg by (service_name,engine) (mongodb_mongod_storage_engine{service_name=~\"$service_name\"})", - "format": "table", - "hide": true, - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{ engine }}", - "metric": "", - "refId": "A", - "step": 300 - }, - { - "exemplar": false, - "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})", - "format": "table", - "instant": true, - "interval": "5m", - "legendFormat": "{{mongodb}}", - "refId": "B" - } - ], - "timeFrom": "1m", - "title": "MongoDB Versions", - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Time": 1, - "Value": 3, - "mongodb": 2, - "service_name": 0 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 38 - }, - "id": 1285, - "panels": [ - { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "rgb(107, 152, 102)", - "text": "PRIMARY" - }, - { - "color": "rgb(193, 159, 20)", - "text": "SECONDARY" - }, - { - "color": "#FF7383", - "text": "Exporter is not connected" - }, - { - "color": "#8B8000", - "text": "ARBITER" - } - ], - "crosshairColor": "#8F070C", - "description": "ReplSet statuses during the select time range.", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 39 - }, - "highlightOnMouseover": true, - "id": 1281, - "legendSortBy": "count", - "lineColor": "rgba(0,0,0,0.1)", - "metricNameColor": "#000000", - "pluginVersion": "6.5.1", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": "set", - "repeatDirection": "h", - "rowHeight": 50, - "showDistinctCount": false, - "showLegend": false, - "showLegendCounts": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendTime": true, - "showLegendValues": true, - "showTimeAxis": true, - "showTransitionCount": false, - "targets": [ - { - "editorMode": "code", - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})", - "hide": false, - "interval": "$interval", - "legendFormat": "{{service_name}}", - "range": true, - "refId": "A" - } - ], - "textSize": 20, - "textSizeTime": 12, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "$set Node States", - "type": "natel-discrete-panel", - "units": "short", - "use12HourClock": false, - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "Exporter is not connected", - "value": "null" - }, - { - "op": "=", - "text": "PRIMARY", - "value": "1" - }, - { - "op": "=", - "text": "SECONDARY", - "value": "2" - }, - { - "op": "=", - "text": "STARTUP", - "value": "0" - }, - { - "op": "=", - "text": "RECOVERING", - "value": "3" - }, - { - "op": "=", - "text": "STARTUP2", - "value": "5" - }, - { - "op": "=", - "text": "UNKNOWN", - "value": "6" - }, - { - "op": "=", - "text": "ARBITER", - "value": "7" - }, - { - "op": "=", - "text": "DOWN", - "value": "8" - }, - { - "op": "=", - "text": "ROLLBACK", - "value": "9" - }, - { - "op": "=", - "text": "REMOVED", - "value": "10" - } - ], - "valueTextColor": "#000000", - "writeAllValues": false, - "writeLastValue": true, - "writeMetricNames": true - } - ], - "title": "Node States", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 39 - }, - "id": 1279, - "panels": [ - { - "id": 1030, - "gridPos": { - "h": 8, - "w": 11, - "x": 0, - "y": 40 - }, - "type": "table", - "title": "Size of Collections in Shards", - "transformations": [ - { - "id": "calculateField", - "options": { - "mode": "reduceRow", - "reduce": { - "reducer": "allValues", - "include": [ - "database", - "collection" - ] - }, - "replaceFields": false, - "binary": { - "left": "collection", - "reducer": "sum", - "right": "database" - } - } - }, - { - "id": "groupingToMatrix", - "options": { - "columnField": "rs_nm", - "rowField": "All values", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "", - "collection\\rs_nm": "Collection Name", - "All values\\rs_nm": "All values" - } - } - }, - { - "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" - } - } - } - ], - "pluginVersion": "9.2.20", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "default_title_for_rows": "DB Name", - "fieldConfig": { - "defaults": { - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 - } - ] - }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "N/A", - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - }, - { - "id": "noValue", - "value": "0" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Collection Name" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "auto" - } - ] - } - ] - }, - "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" - ], - "fields": "" - }, - "frameIndex": 0, - "sortBy": [] - }, - "sorting_props": { - "col_index": -1, - "direction": "desc" - }, - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config\", rs_nm=~\"$shard\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "A" - } - ], - "hide_headers": false - }, - { - "collapsed": false, - "default_title_for_rows": "DB Name", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0 - } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 13, - "x": 11, - "y": 47 - }, - "id": 1043, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "9.2.20", - "sorting_props": { - "col_index": -1, - "direction": "desc" - }, - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "range": false, - "refId": "A" - }, - { - "editorMode": "code", - "exemplar": false, - "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}", - "format": "table", - "hide": true, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Size", - "range": false, - "refId": "B" - } - ], - "title": "Number of Collections in Shards", - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], - "type": "table" - } - ], - "title": "Collection Details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 40 - }, - "id": 81, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "description": "TCP connections (Incoming) in mongod processes.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 56 - }, - "hiddenSeries": false, - "id": 37, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Total", - "color": "#C4162A", - "fill": 0, - "legend": false, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "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 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Current Connections Per Shard", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 63 - }, - "hiddenSeries": false, - "id": 1177, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "maxPerRow": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Available Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - } - ], - "targets": [ - { - "refId": "A" - } - ], - "title": "Connections", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 41 - }, - "id": 1199, - "panels": [ - { - "default_title_for_rows": "Shard Name", - "description": "A chunk consists of a subset of sharded data.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [], - "noValue": "-", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Chunks" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 71 - }, - "hide_headers": false, - "id": 1200, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.2.20", - "sorting_props": { - "col_index": -1, - "direction": "desc" - }, - "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" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB ReplSet Summary", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 18, - "x": 6, - "y": 71 - }, - "hiddenSeries": false, - "id": 1201, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Dynamic of Chunks", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "cps", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 79 - }, - "hiddenSeries": false, - "id": 1216, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Chunks Move Events", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 86 - }, - "hiddenSeries": false, - "id": 1212, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Chunks Split Events", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - } - ], - "targets": [ - { - "refId": "A" - } - ], - "title": "Chunks in Shards", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 42 - }, - "id": 97, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 94 - }, - "hiddenSeries": false, - "id": 14, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m]) > 0) by (service_name,set))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "refId": "B", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Replication Lag by Shard", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "description": "Timespan 'window' between oldest and newest ops in the Oplog collection.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 94 - }, - "hiddenSeries": false, - "id": 27, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Range by Shard", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "s", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - } - ], - "targets": [ - { - "refId": "A" - } - ], - "title": "Replication", - "type": "row" - } - ], - "refresh": false, - "schemaVersion": 37, - "style": "dark", - "tags": [ - "MongoDB_HA", - "Percona" - ], - "templating": { - "list": [ - { - "allFormat": "glob", - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" - }, - "datasource": "Metrics", - "hide": 0, - "includeAll": false, - "label": "Interval", - "multi": false, - "multiFormat": "glob", - "name": "interval", - "options": [ - { - "selected": true, - "text": "auto", - "value": "$__auto_interval_interval" - }, - { - "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", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "hide": 0, - "includeAll": true, - "label": "Environment", - "multi": true, - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "mycluster2", - "value": "mycluster2" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "hide": 0, - "includeAll": false, - "label": "Cluster", - "multi": false, - "multiFormat": "glob", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", - "hide": 2, - "includeAll": true, - "label": "Shard Name", - "multi": true, - "name": "shard", - "options": [], - "query": { - "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", - "refId": "Metrics-shard-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", - "hide": 2, - "includeAll": true, - "label": "Node Name", - "multi": true, - "name": "node_name", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", - "refId": "Metrics-node_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "hide": 0, - "includeAll": true, - "label": "Replication 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": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", - "hide": 0, - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "hide": 2, - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": { - "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "refId": "Metrics-database-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": [ - "" - ], - "value": [ - "" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "node_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "refId": "Metrics-node_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": [ - "" - ], - "value": [ - "" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "service_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "refId": "Metrics-service_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "hide": 2, - "includeAll": true, - "label": "Username", - "multi": true, - "name": "username", - "options": [], - "query": { - "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "refId": "Metrics-username-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": [ - "All" - ], - "value": [ - "All" - ] - }, - "hide": 2, - "includeAll": true, - "label": "Schema", - "multi": true, - "name": "schema", - "options": [], - "query": "", - "skipUrlSync": false, - "type": "custom" - } - ] - }, - "time": { - "from": "now-15m", - "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": "", - "title": "MongoDB Cluster Summary (New)", - "uid": "mongodb-cluster-summary-new", - "version": 1, - "weekStart": "" -} diff --git a/dashboards/Experimental/MongoDB_Collection_Details.json b/dashboards/Experimental/MongoDB_Collection_Details.json deleted file mode 100644 index ff38524500..0000000000 --- a/dashboards/Experimental/MongoDB_Collection_Details.json +++ /dev/null @@ -1,1170 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "target": { - "limit": 100, - "matchAny": false, - "tags": [], - "type": "dashboard" - }, - "type": "dashboard" - }, - { - "datasource": { - "type": "datasource", - "uid": "grafana" - }, - "enable": true, - "iconColor": "orange", - "name": "PMM Annotations", - "target": { - "limit": 100, - "matchAny": true, - "tags": [ - "pmm_annotation", - " $service_name" - ], - "type": "tags" - } - } - ] - }, - "editable": false, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": null, - "links": [ - { - "asDropdown": false, - "icon": "doc", - "includeVars": true, - "keepTime": true, - "tags": [], - "targetBlank": false, - "title": "Home", - "tooltip": "", - "type": "link", - "url": "/graph/d/pmm-home/home-dashboard" - }, - { - "asDropdown": false, - "icon": "dashboard", - "includeVars": true, - "keepTime": true, - "tags": [], - "targetBlank": false, - "title": "Query Analytics", - "tooltip": "", - "type": "link", - "url": "/graph/d/pmm-qan/pmm-query-analytics" - }, - { - "asDropdown": false, - "icon": "bolt", - "includeVars": true, - "keepTime": true, - "tags": [], - "targetBlank": false, - "title": "Compare", - "tooltip": "", - "type": "link", - "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" - }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB" - ], - "targetBlank": false, - "title": "MongoDB", - "tooltip": "", - "type": "dashboards", - "url": "" - }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB_HA" - ], - "targetBlank": false, - "title": "HA", - "tooltip": "", - "type": "dashboards", - "url": "" - }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": false, - "keepTime": true, - "tags": [ - "Services" - ], - "targetBlank": false, - "title": "Services", - "tooltip": "", - "type": "dashboards", - "url": "" - }, - { - "asDropdown": true, - "icon": "external link", - "includeVars": false, - "keepTime": true, - "tags": [ - "PMM" - ], - "targetBlank": false, - "title": "PMM", - "tooltip": "", - "type": "dashboards", - "url": "" - } - ], - "liveNow": false, - "panels": [ - { - "collapsed": false, - "datasource": "Metrics", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 2, - "panels": [], - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "title": "Largest Collections", - "type": "row" - }, - { - "datasource": "Metrics", - "description": "Lists the largest collections according to number of documents; helps track growth and look to address possible performance issues.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 1 - }, - "hideTimeOverride": true, - "id": 6, - "links": [], - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.1.2", - "targets": [ - { - "datasource": "Metrics", - "exemplar": false, - "expr": "topk(10, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_count{service_name=~\"$service_name\"}) by (service_name, database, collection))) > 0", - "format": "table", - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{service_name}}.{{ schema }}.{{ table }}", - "refId": "A", - "step": 300 - } - ], - "timeFrom": "5m", - "title": "Top 10 Largest Collections by Document Count", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "collection", - "database", - "service_name", - "Value" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value": 3, - "collection": 1, - "database": 0, - "service_name": 2 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "datasource": "Metrics", - "description": "Lists the largest collections according to size; helps track growth and assess need to scale or shard.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - } - ] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 1 - }, - "hideTimeOverride": true, - "id": 10, - "links": [], - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.1.2", - "targets": [ - { - "datasource": "Metrics", - "exemplar": false, - "expr": "topk(10, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}) by (service_name, database, collection))) > 0", - "format": "table", - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{service_name}}.{{ schema }}.{{ table }}", - "refId": "A", - "step": 300 - } - ], - "timeFrom": "5m", - "title": "Top 10 Largest Collections by Size", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "database", - "service_name", - "Value", - "collection" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value": 3, - "collection": 1, - "database": 0, - "service_name": 2 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": "Metrics", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 12, - "panels": [], - "repeat": "service_name", - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "title": "Size - $service_name", - "type": "row" - }, - { - "datasource": "Metrics", - "description": "Provides the names and sizes databases in an instance/cluster", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 2, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "decimals": 2, - "links": [], - "mappings": [], - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Data + Index Size" - }, - "properties": [ - { - "id": "color", - "value": { - "fixedColor": "#65C5DB", - "mode": "fixed" - } - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 9 - }, - "id": 14, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "2m", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "expr": "avg by (service_name) (sum(max_over_time(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mongodb_collstats_storageStats_size{service_name=~\"$service_name\"}[5m])))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Data + Index Size", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Total Databases Size - $service_name", - "type": "timeseries" - }, - { - "datasource": "Metrics", - "description": "Lists the most fragmented collections (storage available for reuse) - ranked by size. Address your largest fragmented collections 1st for performance", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "custom": { - "align": "auto", - "displayMode": "auto", - "inspect": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Time" - }, - "properties": [ - { - "id": "unit", - "value": "short" - }, - { - "id": "decimals", - "value": 2 - }, - { - "id": "custom.align" - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 9 - }, - "hideTimeOverride": true, - "id": 16, - "links": [], - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "showHeader": true - }, - "pluginVersion": "9.1.2", - "targets": [ - { - "datasource": "Metrics", - "exemplar": false, - "expr": "topk(5, avg by (service_name,database,collection) (sum(mongodb_collstats_storageStats_freeStorageSize{service_name=~\"$service_name\"}) by (database, collection, service_name)))", - "format": "table", - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{ service_name }} - {{ database }}.{{ collection }}", - "refId": "A", - "step": 300 - } - ], - "timeFrom": "5m", - "title": "Top 5 Most Fragmented Collections by Freeable Size - $service_name (MongoDB 5.0+)", - "transformations": [ - { - "id": "filterFieldsByName", - "options": { - "include": { - "names": [ - "collection", - "database", - "service_name", - "Value" - ] - } - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": { - "Value": 3, - "collection": 1, - "database": 0, - "service_name": 2 - }, - "renameByName": {} - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "datasource": "Metrics", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 17 - }, - "id": 20, - "panels": [], - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "title": "Collection Activity", - "type": "row" - }, - { - "datasource": "Metrics", - "editable": true, - "error": false, - "gridPos": { - "h": 2, - "w": 24, - "x": 0, - "y": 18 - }, - "height": "50px", - "id": 68, - "links": [], - "options": { - "content": "The next two graphs are available only when `--enable-all-collectors` option is used in pmm-admin. Graph **Top 5 Collection by Documents Changed** displays data only on selecting the Primary node.", - "mode": "markdown" - }, - "pluginVersion": "9.1.2", - "style": {}, - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "transparent": true, - "type": "text" - }, - { - "collapsed": false, - "datasource": "Metrics", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 20 - }, - "id": 18, - "panels": [], - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "title": "Documents Read", - "type": "row" - }, - { - "datasource": "Metrics", - "description": "Show the 5 collections according to read activity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 24, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "2m", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "expr": "topk(5, avg by (service_name,database,collection) (rate(mongodb_top_queries_count{service_name=~\"$service_name\"}[$interval]))>0) or \ntopk(5, avg by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"}[5m]))>0)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}} - {{ database }}.{{ collection }}", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Top 5 Collections by Documents Read", - "type": "timeseries" - }, - { - "collapsed": false, - "datasource": "Metrics", - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 29 - }, - "id": 22, - "panels": [], - "targets": [ - { - "datasource": "Metrics", - "refId": "A" - } - ], - "title": "Documents Changed", - "type": "row" - }, - { - "datasource": "Metrics", - "description": "Show the 5 collections according to write activity", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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", - "value": null - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 30 - }, - "id": 26, - "interval": "", - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "right", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "2m", - "datasource": "Metrics", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "expr": "topk(5, avg by (service_name,database,collection) (rate(sum by (service_name,database,collection) ((mongodb_top_insert_count{service_name=~\"$service_name\"}) + (mongodb_top_update_count{service_name=~\"$service_name\"}) + (mongodb_top_remove_count{service_name=~\"$service_name\"}))[$interval])>0)) or topk(5, avg by (service_name,database,collection) (irate(sum by (service_name,database,collection) ((mongodb_top_insert_count{service_name=~\"$service_name\"}) + (mongodb_top_update_count{service_name=~\"$service_name\"}) + (mongodb_top_remove_count{service_name=~\"$service_name\"}))[5m]))>0)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}} - {{ database }}.{{ collection }}", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Top 5 Collections by Documents Changed", - "type": "timeseries" - } - ], - "refresh": "1m", - "schemaVersion": 34, - "style": "dark", - "tags": [ - "MongoDB", - "Percona" - ], - "templating": { - "list": [ - { - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" - }, - "hide": 0, - "label": "Interval", - "name": "interval", - "options": [ - { - "selected": true, - "text": "auto", - "value": "$__auto_interval_interval" - }, - { - "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", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"mongodb_up\"}, environment)", - "hide": 0, - "includeAll": true, - "label": "Environment", - "multi": true, - "name": "environment", - "options": [], - "query": { - "query": "label_values({__name__=~\"mongodb_up\"}, environment)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "", - "value": "" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)", - "hide": 0, - "includeAll": true, - "label": "Cluster", - "multi": true, - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_up{environment=~\"$environment\"},cluster)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" - }, - { - "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", - "hide": 0, - "includeAll": false, - "label": "Replica Set", - "multi": true, - "name": "replset", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" - }, - { - "current": { - "selected": false, - "text": "None", - "value": "" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", - "hide": 0, - "includeAll": false, - "label": "Service Name", - "multi": true, - "name": "service_name", - "options": [], - "query": { - "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" - }, - { - "current": { - "selected": false, - "text": "None", - "value": "" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)", - "hide": 2, - "includeAll": false, - "label": "Node Name", - "multi": true, - "name": "node_name", - "options": [], - "query": { - "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query" - } - ] - }, - "time": { - "from": "now-12h", - "to": "now" - }, - "timepicker": { - "collapse": false, - "enable": true, - "hidden": false, - "notice": false, - "now": true, - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "status": "Stable", - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ], - "type": "timepicker" - }, - "timezone": "", - "title": "MongoDB Collection Details", - "uid": "mongodb-collection-details", - "version": 1, - "weekStart": "" -} diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json deleted file mode 100644 index 11d7ff30eb..0000000000 --- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json +++ /dev/null @@ -1,2648 +0,0 @@ -{ - "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": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": 72, - "links": [ - { - "icon": "doc", - "includeVars": true, - "keepTime": true, - "tags": [ - "Home" - ], - "targetBlank": false, - "title": "Home", - "type": "link", - "url": "/graph/d/pmm-home/home-dashboard" - }, - { - "icon": "dashboard", - "includeVars": true, - "keepTime": true, - "tags": [ - "Query Analytics" - ], - "targetBlank": false, - "title": "Query Analytics", - "type": "link", - "url": "/graph/d/pmm-qan/pmm-query-analytics" - }, - { - "icon": "bolt", - "includeVars": true, - "keepTime": true, - "tags": [ - "Compare" - ], - "targetBlank": false, - "title": "Compare", - "type": "link", - "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB" - ], - "targetBlank": false, - "title": "MongoDB", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB_HA" - ], - "targetBlank": false, - "title": "HA", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "Services" - ], - "targetBlank": false, - "title": "Services", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "PMM" - ], - "targetBlank": false, - "title": "PMM", - "type": "dashboards" - } - ], - "liveNow": false, - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 1032, - "panels": [ - { - "description": "", - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1034, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### 🛎️ Important\n\nThis Dashboard is an experimental MongoDB Instance Summary dashboard in Percona Monitoring and Management (PMM) that is not a part of the official PMM deployment and might be updated.\nWe ship this Dashboard to obtain feedback from our users. Once we officially release this Dashboard, it will be moved to the appropriate folder. \n\nTo provide feedback on the Dashboard, please use [our](https://forums.percona.com) forum.🙏", - "mode": "markdown" - }, - "pluginVersion": "9.2.20", - "transparent": true, - "type": "text" - } - ], - "title": "⚠️ Disclaimer", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1030, - "panels": [], - "title": "MongoDB Instance Summary", - "type": "row" - }, - { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "rgb(107, 152, 102)", - "text": "PRIMARY" - }, - { - "color": "rgb(193, 159, 20)", - "text": "SECONDARY" - } - ], - "crosshairColor": "#8F070C", - "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 3 - }, - "highlightOnMouseover": true, - "id": 1018, - "legendSortBy": "-ms", - "lineColor": "rgba(0,0,0,0.1)", - "metricNameColor": "#000000", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "rowHeight": 50, - "showDistinctCount": false, - "showLegend": true, - "showLegendCounts": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendTime": true, - "showLegendValues": true, - "showTimeAxis": true, - "showTransitionCount": false, - "targets": [ - { - "expr": "sum by (set) (mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", - "interval": "$interval", - "legendFormat": "{{set}}", - "refId": "A" - } - ], - "textSize": 24, - "textSizeTime": 12, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "ReplSet $service_name states", - "type": "natel-discrete-panel", - "units": "short", - "use12HourClock": false, - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "PRIMARY", - "value": "1" - }, - { - "op": "=", - "text": "SECONDARY", - "value": "2" - }, - { - "op": "=", - "text": "STARTUP", - "value": "0" - }, - { - "op": "=", - "text": "RECOVERING", - "value": "3" - }, - { - "op": "=", - "text": "STARTUP2", - "value": "5" - }, - { - "op": "=", - "text": "UNKNOWN", - "value": "6" - }, - { - "op": "=", - "text": "ARBITER", - "value": "7" - }, - { - "op": "=", - "text": "DOWN", - "value": "8" - }, - { - "op": "=", - "text": "ROLLBACK", - "value": "9" - }, - { - "op": "=", - "text": "REMOVED", - "value": "10" - } - ], - "valueTextColor": "#000000", - "writeAllValues": false, - "writeLastValue": true, - "writeMetricNames": false - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 9, - "w": 10, - "x": 0, - "y": 8 - }, - "hiddenSeries": false, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/repl.*/", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name, legacy_op_type) (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}}", - "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", - "range": true, - "refId": "B", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by (service_name, legacy_op_type) (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}}", - "range": true, - "refId": "C", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Command Operations", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "ops", - "label": "", - "logBase": 1, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 3, - "x": 10, - "y": 8 - }, - "id": 36, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{state}}", - "refId": "J", - "step": 300 - } - ], - "title": "Document Operations", - "type": "bargauge" - }, - { - "description": "Ratio of Documents returned or Index entries scanned / full documents scanned", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - } - }, - "links": [], - "mappings": [] - }, - "overrides": [] - }, - "gridPos": { - "h": 9, - "w": 3, - "x": 13, - "y": 8 - }, - "id": 63, - "links": [], - "options": { - "displayLabels": [ - "percent", - "name" - ], - "legend": { - "displayMode": "list", - "placement": "right", - "showLegend": false, - "values": [] - }, - "pieType": "donut", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "sum(rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[$interval]))/\nsum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) \nor\nsum(irate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\", state=\"returned\"}[1m]))/\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[1m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Document", - "range": true, - "refId": "J", - "step": 300 - }, - { - "editorMode": "code", - "expr": "(sum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[$interval]))/\nsum(rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[$interval])) \nor\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned\"}[1m]))/\nsum(irate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\", state=\"scanned_objects\"}[1m])))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Index", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Query Efficiency", - "type": "piechart" - }, - { - "description": "Operations queued due to a lock.", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 8 - }, - "id": 40, - "links": [], - "options": { - "colorMode": "background", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "expr": "avg by (service_name,type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{type}}", - "refId": "J", - "step": 300 - } - ], - "title": "Queued Operations", - "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": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 300 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 3600 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 1, - "x": 20, - "y": 8 - }, - "id": 321, - "interval": "$interval", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "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": "time_series", - "hide": false, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Uptime", - "type": "stat" - }, - { - "description": "Sum of disk space on all partitions. Note it can be significantly over-reported in some installations", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 1, - "x": 21, - "y": 8 - }, - "id": 333, - "interval": "$interval", - "links": [ - { - "targetBlank": true, - "title": "Disk Space", - "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables" - } - ], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "exemplar": true, - "expr": "avg by () (container_fs_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or \navg by () (sum(avg(node_filesystem_size_bytes{node_name=~\"$node_name\",fstype=~\"(ext.|xfs|vfat|)\"}) without (mountpoint)) without (device,fstype))", - "format": "time_series", - "interval": "5m", - "intervalFactor": 1, - "refId": "A", - "step": 300 - } - ], - "title": "Disk Space", - "type": "stat" - }, - { - "description": "RAM (Random Access Memory) is the hardware in a computing device where the operating system, application programs and data in current use are kept so they can be quickly reached by the device's processor.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 1, - "x": 22, - "y": 8 - }, - "id": 327, - "interval": "$interval", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "expr": "max by () (container_spec_memory_limit_bytes{node_name=~\"$node_name\",id=~\"/kubepods.*\",container!~\"POD|pmm-client|\"}) or \nmax by () (node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", - "format": "time_series", - "interval": "5m", - "intervalFactor": 1, - "refId": "A", - "step": 300 - } - ], - "title": "RAM", - "type": "stat" - }, - { - "description": "Lowest percent of the disk space available", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#d44a3a", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 5 - }, - { - "color": "#299c46", - "value": 20 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 20, - "y": 11 - }, - "id": 335, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "exemplar": true, - "expr": "avg by () (min(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 or \n(100 - azure_storage_percent_average{node_name=~\"$node_name\"}))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "refId": "A" - } - ], - "title": "Min Space Available", - "type": "stat" - }, - { - "description": "This panel shows the number of objects (both data (scanned_objects) and index (scanned)) as well as the number of documents that were moved to a new location due to the size of the document growing. Moved documents only apply to the MMAPv1 storage engine.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "continuous-GrYlRd" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 5, - "w": 4, - "x": 16, - "y": 12 - }, - "id": 64, - "links": [], - "options": { - "displayMode": "lcd", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_query_executor_total{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{state}}", - "metric": "", - "refId": "A", - "step": 300 - }, - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_record_moves_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_record_moves_total{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "moved", - "refId": "B", - "step": 300 - } - ], - "title": "Scanned and Moved Objects", - "type": "bargauge" - }, - { - "description": "Percent of Memory Available\nNote: on Modern Linux Kernels amount of Memory Available for application is not the same as Free+Cached+Buffers", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#d44a3a", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 5 - }, - { - "color": "#299c46", - "value": 10 - } - ] - }, - "unit": "percent" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 20, - "y": 14 - }, - "id": 329, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "exemplar": true, - "expr": "clamp_max(avg by () (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 \navg by () (((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 or (100 - azure_memory_percent_average{node_name=~\"$node_name\"}))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "refId": "A" - } - ], - "title": "Memory Available", - "type": "stat" - }, - { - "description": "Show the 5 collections that are most frequently read.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 17 - }, - "id": 1024, - "links": [], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.2.20", - "repeatDirection": "v", - "targets": [ - { - "editorMode": "code", - "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"})[$interval]))", - "hide": false, - "legendFormat": "ReplicaSet: {{rs_nm}} - DB: {{database}} - Collection: {{collection}}", - "range": true, - "refId": "B" - } - ], - "title": "Top 5 Hottest Collections by Read (Rate)", - "transformations": [], - "type": "bargauge" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 6, - "y": 17 - }, - "id": 1028, - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "topk (5,sum by (service_name,database,collection) (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\"})[1m]))", - "instant": false, - "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", - "legendFormat": "{{service_name}} - {{database}} - {{collection}}", - "range": true, - "refId": "A" - } - ], - "title": "MongoDB Top Writes", - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "TCP connections (Incoming)", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 7, - "x": 11, - "y": 17 - }, - "height": "250px", - "hiddenSeries": false, - "id": 38, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name, conn_type) (mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"} or\nmongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"} or\nmongodb_ss_connections{service_name=~\"$service_name\"})", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{conn_type}}", - "range": true, - "refId": "J", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 5, - "x": 18, - "y": 17 - }, - "hiddenSeries": false, - "id": 1025, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [ - { - "alias": "Oplog Range", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Now to End", - "metric": "", - "range": true, - "refId": "J", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by (service_name) (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": "Oplog Range", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Recovery Window - $service_name", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "s", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "s", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "s", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 11, - "x": 0, - "y": 25 - }, - "hiddenSeries": false, - "id": 1014, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name,op_type) (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}}", - "range": true, - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Latency Detail", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "µs", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Max Core Utilization": "#bf1b00", - "idle": "#806EB7", - "iowait": "#E24D42", - "nice": "#1F78C1", - "softirq": "#FFF899", - "steal": "#8F3BB8", - "system": "#EAB839", - "user": "#508642" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 12, - "x": 11, - "y": 25 - }, - "height": "", - "hiddenSeries": false, - "id": 337, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Max Core Utilization", - "lines": false, - "pointradius": 1, - "points": true, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": true, - "targets": [ - { - "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" - }, - { - "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" - }, - { - "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" - }, - { - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CPU Usage", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "percent", - "label": "", - "logBase": 1, - "max": "100", - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Allocated": "#E0752D", - "CPU Load": "#64B0C8", - "IO Load ": "#EA6460", - "Limit": "#1F78C1", - "Max CPU Core Utilization": "#bf1b00", - "Max Core Usage": "#bf1b00", - "Normalized CPU Load": "#6ED0E0" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 32 - }, - "hiddenSeries": false, - "id": 339, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Max CPU Core Utilization", - "lines": false, - "pointradius": 1, - "points": true, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "calculatedInterval": "2s", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "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", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "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": "" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "CPU Saturation and Max Core Usage", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "decimals": 2, - "format": "percentunit", - "label": "", - "logBase": 1, - "max": "1", - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 7, - "x": 8, - "y": 32 - }, - "hiddenSeries": false, - "id": 1020, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "fc_count", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", - "interval": "$interval", - "legendFormat": "fc_count", - "range": true, - "refId": "A" - }, - { - "editorMode": "code", - "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", - "hide": false, - "interval": "$interval", - "legendFormat": "fc_time", - "range": true, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Flow Control", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "µs", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Swap In (Reads)": "#6ed0e0", - "Swap Out (Writes)": "#ef843c", - "Total": "#bf1b00" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 15, - "y": 32 - }, - "hiddenSeries": false, - "id": 341, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [ - { - "targetBlank": true, - "title": "Disk Performance", - "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables" - } - ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Disk Writes (Page Out)", - "transform": "negative-Y" - }, - { - "alias": "Total", - "legend": false, - "lines": false - }, - { - "alias": "Swap Out (Writes)", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "calculatedInterval": "2s", - "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", - "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": "" - }, - { - "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" - }, - { - "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" - }, - { - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Disk I/O and Swap Activity", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "Bps", - "label": "Page Out (-) / Page In (+)", - "logBase": 1, - "show": true - }, - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } - } - ], - "refresh": "5s", - "schemaVersion": 37, - "style": "dark", - "tags": [ - "MongoDB", - "Percona" - ], - "templating": { - "list": [ - { - "allFormat": "glob", - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" - }, - "datasource": "Metrics", - "hide": 0, - "includeAll": false, - "label": "Interval", - "multi": false, - "multiFormat": "glob", - "name": "interval", - "options": [ - { - "selected": true, - "text": "auto", - "value": "$__auto_interval_interval" - }, - { - "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", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" - }, - { - "allFormat": "blob", - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "", - "hide": 0, - "includeAll": true, - "label": "Cluster", - "multi": false, - "multiFormat": "glob", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_up,cluster)", - "refId": "Metrics-cluster-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "mongo-60-cfg-0", - "value": "mongo-60-cfg-0" - }, - "definition": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)", - "hide": 0, - "includeAll": false, - "label": "Service Name", - "multi": false, - "multiFormat": "glob", - "name": "service_name", - "options": [], - "query": { - "query": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)", - "refId": "Metrics-service_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "mongo-60-cfg-0", - "value": "mongo-60-cfg-0" - }, - "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", - "hide": 2, - "includeAll": false, - "label": "Node Name", - "multi": false, - "multiFormat": "glob", - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "hide": 2, - "includeAll": true, - "label": "Environment", - "multi": true, - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "hide": 2, - "includeAll": true, - "label": "Replication Set", - "multi": true, - "name": "replication_set", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "refId": "Metrics-replication_set-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "hide": 2, - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": { - "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "refId": "Metrics-database-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "node_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "refId": "Metrics-node_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "service_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "refId": "Metrics-service_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "hide": 2, - "includeAll": true, - "label": "Schema", - "multi": true, - "name": "schema", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "refId": "Metrics-schema-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "hide": 2, - "includeAll": true, - "label": "Username", - "multi": true, - "name": "username", - "options": [], - "query": { - "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "refId": "Metrics-username-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "mdb60-cluster\",service_id=\"/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91\",service_name=\"mongo-60-cfg-0\",service_type=\"mongodb\",set=\"cfg", - "value": "mdb60-cluster\",service_id=\"/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91\",service_name=\"mongo-60-cfg-0\",service_type=\"mongodb\",set=\"cfg" - }, - "definition": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", - "hide": 2, - "includeAll": false, - "label": "Replica Set", - "multi": false, - "name": "replset", - "options": [], - "query": { - "query": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", - "refId": "Metrics-replset-Variable-Query" - }, - "refresh": 2, - "regex": "/set=\"(.*)\"/", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91", - "value": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91" - }, - "definition": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", - "hide": 2, - "includeAll": false, - "label": "Service ID", - "multi": false, - "multiFormat": "glob", - "name": "service_id", - "options": [], - "query": { - "query": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", - "refId": "Metrics-service_id-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" - }, - "definition": "label_values(up{service_name=~\"$service_name\"},service_name)", - "hide": 2, - "includeAll": false, - "label": "", - "multi": false, - "name": "pod", - "options": [], - "query": { - "query": "label_values(up{service_name=~\"$service_name\"},service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "/default-(.*-.*)/", - "skipUrlSync": false, - "sort": 0, - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-12h", - "to": "now" - }, - "timepicker": { - "hidden": false, - "now": true, - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "MongoDB Instance Summary (new)", - "uid": "mongodb-instance-summary-new", - "version": 4, - "weekStart": "" -} diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json deleted file mode 100644 index 348236fe06..0000000000 --- a/dashboards/Experimental/MongoDB_ReplSet_Summary_(New).json +++ /dev/null @@ -1,3284 +0,0 @@ -{ - "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": 78, - "links": [ - { - "icon": "doc", - "includeVars": true, - "keepTime": true, - "tags": [ - "Home" - ], - "targetBlank": false, - "title": "Home", - "type": "link", - "url": "/graph/d/pmm-home/home-dashboard" - }, - { - "icon": "dashboard", - "includeVars": true, - "keepTime": true, - "tags": [ - "Query Analytics" - ], - "targetBlank": false, - "title": "Query Analytics", - "type": "link", - "url": "/graph/d/pmm-qan/pmm-query-analytics" - }, - { - "icon": "bolt", - "includeVars": true, - "keepTime": true, - "tags": [ - "Compare" - ], - "targetBlank": false, - "title": "Compare", - "type": "link", - "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB" - ], - "targetBlank": false, - "title": "MongoDB", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": true, - "keepTime": true, - "tags": [ - "MongoDB_HA" - ], - "targetBlank": false, - "title": "HA", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "Services" - ], - "targetBlank": false, - "title": "Services", - "type": "dashboards" - }, - { - "asDropdown": true, - "includeVars": false, - "keepTime": true, - "tags": [ - "PMM" - ], - "targetBlank": false, - "title": "PMM", - "type": "dashboards" - } - ], - "liveNow": false, - "panels": [ - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 1032, - "panels": [ - { - "description": "", - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 193 - }, - "id": 1034, - "options": { - "code": { - "language": "plaintext", - "showLineNumbers": false, - "showMiniMap": false - }, - "content": "#### 🛎️ Important\n\nThis Dashboard is an experimental MongoDB Instance Summary dashboard in Percona Monitoring and Management (PMM) that is not a part of the official PMM deployment and might be updated.\nWe ship this Dashboard to obtain feedback from our users. Once we officially release this Dashboard, it will be moved to the appropriate folder. \n\nTo provide feedback on the Dashboard, please use [our](https://forums.percona.com) forum.🙏", - "mode": "markdown" - }, - "pluginVersion": "9.2.20", - "transparent": true, - "type": "text" - } - ], - "title": "⚠️ Disclaimer", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 1 - }, - "id": 1030, - "panels": [], - "repeat": "service_name", - "repeatDirection": "h", - "title": "Overview - $service_name", - "type": "row" - }, - { - "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": "thresholds" - }, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "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": "#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": 0, - "y": 2 - }, - "id": 1071, - "links": [], - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{node_name=\"$node_name\",mode=\"idle\"}[1m])) * 100)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ mode }}", - "range": true, - "refId": "B" - } - ], - "title": "CPU Usage", - "type": "gauge" - }, - { - "description": "Estimated how much memory can be used without swapping", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 3, - "y": 2 - }, - "id": 1060, - "links": [], - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "1 - avg(node_memory_MemAvailable_bytes{node_name=~\"$node_name\"})/ avg(node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", - "hide": false, - "instant": false, - "legendFormat": "__auto", - "range": true, - "refId": "A" - } - ], - "title": "Memory Used", - "type": "gauge" - }, - { - "description": "Shows disk Utilization as a percentage of the time when there was at least one IO request in flight. It is designed to match utilization available in iostat tool. The graph augments the IO latency and Disk Load Graphs, allowing to determine if the disk load was evenly distributed in time or consuming the IO momentarily. Higher utilization increases the likeliness of IO queuing. Always consider this metric along with response time and IO queue depth.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 1, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 2 - }, - "id": 1073, - "links": [], - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "sum by (node_name) (rate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[$interval]) or irate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[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 specified mountpoint.\n\n**Used** is the amount of space used.\n\n**Free** is the amount of space not in use.\n\n**Used+Free** is the total disk space allocated to the mountpoint.\n\nHaving *Free* close to 0 B is not good because of the risk to have a “disk full” error that can block one of the services or even cause a crash of the entire system.\n\nIn case Free is close to 0 B consider to remove unused files or to expand the space allocated to the mountpoint.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "links": [], - "mappings": [], - "max": 100, - "min": 0, - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "percentunit" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 2 - }, - "id": 1062, - "options": { - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showThresholdLabels": false, - "showThresholdMarkers": true - }, - "pluginVersion": "9.2.20", - "repeatDirection": "h", - "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": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 12, - "y": 2 - }, - "id": 1076, - "links": [], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "editorMode": "code", - "errors": {}, - "expr": "avg by (node_name) (sum(\n(rate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[5m]))\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": "avg by (node_name) (sum(\n(rate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[5m])) \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": "Network traffic refers to the amount of data moving across a network at a given point in time.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "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", - "value": null - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 4, - "x": 16, - "y": 2 - }, - "id": 1052, - "links": [], - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "calculatedInterval": "2s", - "datasourceErrors": {}, - "errors": {}, - "expr": "sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (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", - "datasourceErrors": {}, - "errors": {}, - "expr": "sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (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", - "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": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "rgba(245, 54, 54, 0.9)", - "value": null - }, - { - "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": 2 - }, - "id": 321, - "interval": "$interval", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "exemplar": true, - "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": "time_series", - "hide": false, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Uptime", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "string" - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 2 - }, - "id": 1039, - "interval": "$interval", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "value", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^mongodb$/", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "9.2.20", - "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": 16 - }, - "id": 1150, - "panels": [], - "title": "Node States", - "type": "row" - }, - { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "rgb(107, 152, 102)", - "text": "PRIMARY" - }, - { - "color": "rgb(193, 159, 20)", - "text": "SECONDARY" - } - ], - "crosshairColor": "#8F070C", - "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 17 - }, - "highlightOnMouseover": true, - "id": 1018, - "legendSortBy": "-ms", - "lineColor": "rgba(0,0,0,0.1)", - "metricNameColor": "#000000", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "rowHeight": 50, - "showDistinctCount": false, - "showLegend": true, - "showLegendCounts": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendTime": true, - "showLegendValues": true, - "showTimeAxis": true, - "showTransitionCount": false, - "targets": [ - { - "editorMode": "code", - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", - "interval": "$interval", - "legendFormat": "{{set}}", - "range": true, - "refId": "A" - } - ], - "textSize": 24, - "textSizeTime": 12, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "$service_name states", - "type": "natel-discrete-panel", - "units": "short", - "use12HourClock": false, - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "PRIMARY", - "value": "1" - }, - { - "op": "=", - "text": "SECONDARY", - "value": "2" - }, - { - "op": "=", - "text": "STARTUP", - "value": "0" - }, - { - "op": "=", - "text": "RECOVERING", - "value": "3" - }, - { - "op": "=", - "text": "STARTUP2", - "value": "5" - }, - { - "op": "=", - "text": "UNKNOWN", - "value": "6" - }, - { - "op": "=", - "text": "ARBITER", - "value": "7" - }, - { - "op": "=", - "text": "DOWN", - "value": "8" - }, - { - "op": "=", - "text": "ROLLBACK", - "value": "9" - }, - { - "op": "=", - "text": "REMOVED", - "value": "10" - } - ], - "valueTextColor": "#000000", - "writeAllValues": false, - "writeLastValue": true, - "writeMetricNames": false - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 23 - }, - "id": 1170, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideZero": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/repl.*/", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name, legacy_op_type) (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 (service_name, legacy_op_type) (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 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Command Operations", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "Show the 5 collections that are most frequently read.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 24 - }, - "id": 1024, - "links": [], - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "text": {} - }, - "pluginVersion": "9.2.20", - "repeatDirection": "v", - "targets": [ - { - "editorMode": "code", - "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"})[$interval]))", - "hide": false, - "interval": "", - "legendFormat": "{{service_name}} - {{database}}.{{collection}}", - "range": true, - "refId": "B" - } - ], - "title": "Top Hottest Collections by Read", - "transformations": [], - "type": "bargauge" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 31 - }, - "hiddenSeries": false, - "id": 1064, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name,op_type) (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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Query execution times", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "µs", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green" - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 31 - }, - "id": 1028, - "options": { - "displayMode": "gradient", - "minVizHeight": 10, - "minVizWidth": 0, - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "topk (5,sum by (service_name,database,collection) (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\"})[1m]))", - "instant": false, - "interval": "", - "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", - "legendFormat": "{{service_name}} - {{database}}.{{collection}}", - "range": true, - "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": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 39 - }, - "id": 1066, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.2.20", - "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 - }, - { - "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" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Operations queued due to a lock.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 39 - }, - "height": "250px", - "hiddenSeries": false, - "id": 1036, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name,type) (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 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": true, - "line": true, - "op": "gt", - "value": 0, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Queued Operations", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 47 - }, - "height": "250px", - "hiddenSeries": false, - "id": 1067, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": true, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "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": "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": "mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"}", - "hide": false, - "legendFormat": "Queued Readers - {{ service_name }}", - "range": true, - "refId": "B" - }, - { - "editorMode": "code", - "expr": "mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"}", - "hide": false, - "interval": "", - "legendFormat": "Queued Writers - {{ service_name }}", - "range": true, - "refId": "C" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Reads & Writes", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "format": "none", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "none", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "MongoDB Connections", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 19, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "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": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 47 - }, - "id": 1074, - "links": [], - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "9.2.20", - "targets": [ - { - "editorMode": "code", - "expr": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"}", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ service_name}} - Current", - "range": true, - "refId": "J", - "step": 300 - }, - { - "editorMode": "code", - "expr": "mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"}", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ service_name}} - Available", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Connections", - "type": "timeseries" - } - ], - "title": "Details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 24 - }, - "id": 1056, - "panels": [ - { - "default_title_for_rows": "DB Name", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "green", - "value": 20 - } - ] - }, - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 11, - "x": 0, - "y": 25 - }, - "hide_headers": false, - "id": 1043, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "9.2.20", - "sorting_props": { - "col_index": -1, - "direction": "desc" - }, - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (environment,cluster,rs_nm, collection) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",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" - } - }, - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true, - "cluster": false, - "environment": false, - "rs_nm": true - }, - "indexByName": { - "Time": 1, - "Value": 5, - "cluster": 2, - "collection": 3, - "environment": 0, - "rs_nm": 4 - }, - "renameByName": { - "Value": "Size", - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], - "type": "table" - }, - { - "collapsed": false, - "default_title_for_rows": "DB Name", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "custom": { - "align": "left", - "displayMode": "auto", - "filterable": false, - "inspect": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-blue", - "index": 0 - } - }, - "type": "value" - } - ], - "noValue": "N/A", - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red" - }, - { - "color": "green", - "value": 20 - } - ] - } - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "fixedColor": "dark-blue", - "mode": "fixed" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] - }, - "gridPos": { - "h": 8, - "w": 13, - "x": 11, - "y": 25 - }, - "id": 1045, - "options": { - "footer": { - "fields": "", - "reducer": [ - "sum" - ], - "show": false - }, - "frameIndex": 0, - "showHeader": true, - "sortBy": [ - { - "desc": false, - "displayName": "DB Name\\Value" - } - ] - }, - "pluginVersion": "9.2.20", - "sorting_props": { - "col_index": -1, - "direction": "desc" - }, - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "max by (environment,cluster,rs_nm) (mongodb_mongod_db_collections_total{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})", - "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 - }, - "indexByName": { - "Time": 0, - "Value": 4, - "cluster": 2, - "environment": 1, - "rs_nm": 3 - }, - "renameByName": { - "1710776522937": "", - "Value": "Count" - } - } - } - ], - "type": "table" - } - ], - "title": "Collection Details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 1049, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 26 - }, - "hiddenSeries": false, - "id": 1038, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null as zero", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Avg", - "color": "#C4162A", - "fill": 0, - "legend": false, - "stack": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",service_name=~\"$secondary\"}[$interval]) > 0 ", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "range": true, - "refId": "A", - "step": 300 - } - ], - "thresholds": [ - { - "colorMode": "critical", - "fill": false, - "line": true, - "op": "gt", - "value": 10, - "yaxis": "left" - } - ], - "timeRegions": [], - "title": "Replication Lag", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "s", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "s", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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": 7, - "w": 12, - "x": 12, - "y": 26 - }, - "id": 1025, - "links": [], - "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "multi", - "sort": "none" - } - }, - "pluginVersion": "9.2.20", - "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": "Oplog Range - {{ service_name }}", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "title": "Oplog Recovery Window", - "type": "timeseries" - } - ], - "title": "Replication", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 26 - }, - "id": 1054, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command)", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 27 - }, - "hiddenSeries": false, - "id": 1020, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "fc_count", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", - "interval": "$interval", - "legendFormat": "fc_count {{ service_name }}", - "range": true, - "refId": "A" - }, - { - "editorMode": "code", - "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", - "hide": false, - "interval": "$interval", - "legendFormat": "fc_time {{ service_name }}", - "range": true, - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Flow Control", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "µs", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": "0", - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "A WT 'ticket' is assigned out for every operation running simultaneously in the WT storage engine. \"Available\" = hardcoded high value - \"Out\".", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [], - "unit": "none" - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 27 - }, - "hiddenSeries": false, - "id": 1041, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "9.2.20", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "write", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "editorMode": "code", - "expr": "avg by (service_name,type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "read - {{ service_name }}", - "metric": "", - "range": true, - "refId": "B", - "step": 300 - }, - { - "editorMode": "code", - "expr": "avg by (service_name,type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])))", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "write - {{ service_name }}", - "metric": "", - "range": true, - "refId": "A", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "WiredTiger Concurrency Tickets Available", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "none", - "label": "", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - } - ], - "title": "Performance", - "type": "row" - } - ], - "refresh": false, - "schemaVersion": 37, - "style": "dark", - "tags": [], - "templating": { - "list": [ - { - "allFormat": "glob", - "auto": true, - "auto_count": 200, - "auto_min": "1s", - "current": { - "selected": false, - "text": "auto", - "value": "$__auto_interval_interval" - }, - "datasource": "Metrics", - "hide": 0, - "includeAll": false, - "label": "Interval", - "multi": false, - "multiFormat": "glob", - "name": "interval", - "options": [ - { - "selected": true, - "text": "auto", - "value": "$__auto_interval_interval" - }, - { - "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", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "dev", - "value": "dev" - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "hide": 0, - "includeAll": false, - "label": "Environment", - "multi": false, - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "blob", - "allValue": ".*", - "current": { - "selected": false, - "text": "mycluster", - "value": "mycluster" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "hide": 0, - "includeAll": false, - "label": "Cluster", - "multi": false, - "multiFormat": "glob", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "s1", - "value": "s1" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "hide": 0, - "includeAll": false, - "label": "Replica Set", - "multi": false, - "name": "rs_nm", - "options": [], - "query": { - "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", - "hide": 0, - "includeAll": true, - "label": "Node", - "multi": true, - "multiFormat": "glob", - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "mongodb-t1", - "value": "mongodb-t1" - }, - "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", - "hide": 2, - "includeAll": false, - "label": "Node Name", - "multi": false, - "multiFormat": "glob", - "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": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "hide": 2, - "includeAll": true, - "label": "Replication Set", - "multi": true, - "name": "replication_set", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "refId": "Metrics-replication_set-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "hide": 2, - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": { - "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "refId": "Metrics-database-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "node_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "refId": "Metrics-node_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "service_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "refId": "Metrics-service_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "hide": 2, - "includeAll": true, - "label": "Schema", - "multi": true, - "name": "schema", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "refId": "Metrics-schema-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] - }, - "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "hide": 2, - "includeAll": true, - "label": "Username", - "multi": true, - "name": "username", - "options": [], - "query": { - "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "refId": "Metrics-username-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "s1", - "value": "s1" - }, - "definition": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", - "hide": 2, - "includeAll": false, - "label": "Replica Set", - "multi": false, - "name": "replset", - "options": [], - "query": { - "query": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", - "refId": "Metrics-replset-Variable-Query" - }, - "refresh": 2, - "regex": "/set=\"(.*)\"/", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "/service_id/4b741fe5-1e3b-4f52-ac69-afebf0cd81ec", - "value": "/service_id/4b741fe5-1e3b-4f52-ac69-afebf0cd81ec" - }, - "definition": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", - "hide": 2, - "includeAll": false, - "label": "Service ID", - "multi": false, - "multiFormat": "glob", - "name": "service_id", - "options": [], - "query": { - "query": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", - "refId": "Metrics-service_id-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allFormat": "glob", - "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" - }, - "definition": "label_values(up{service_name=~\"$service_name\"},service_name)", - "hide": 2, - "includeAll": false, - "label": "", - "multi": false, - "name": "pod", - "options": [], - "query": { - "query": "label_values(up{service_name=~\"$service_name\"},service_name)", - "refId": "StandardVariableQuery" - }, - "refresh": 2, - "regex": "/default-(.*-.*)/", - "skipUrlSync": false, - "sort": 0, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "mongodb-27020", - "value": "mongodb-27020" - }, - "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", - "hide": 2, - "includeAll": false, - "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.*/", - "skipUrlSync": false, - "sort": 0, - "type": "query" - }, - { - "current": { - "selected": false, - "text": "/", - "value": "/" - }, - "definition": "label_values(node_filesystem_avail_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)", - "hide": 2, - "includeAll": false, - "multi": false, - "name": "mountpoint", - "options": [], - "query": { - "query": "label_values(node_filesystem_avail_bytes{node_name=~\"$node_name\", fstype!~\"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs\"}, mountpoint)", - "refId": "StandardVariableQuery" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "type": "query" - } - ] - }, - "time": { - "from": "now-15m", - "to": "now" - }, - "timepicker": { - "hidden": false, - "now": true, - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "MongoDB ReplSet Summary (New)", - "uid": "mongodb-replset-summary-new", - "version": 1, - "weekStart": "" -} diff --git a/dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json b/dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json new file mode 100644 index 0000000000..954706351c --- /dev/null +++ b/dashboards/Experimental/MongoDB_ReplSet_Summary_(Old).json @@ -0,0 +1,4327 @@ +{ + "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, + "links": [ + { + "icon": "doc", + "includeVars": true, + "keepTime": true, + "tags": [ + "Home" + ], + "targetBlank": false, + "title": "Home", + "type": "link", + "url": "/graph/d/pmm-home/home-dashboard" + }, + { + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [ + "Query Analytics" + ], + "targetBlank": false, + "title": "Query Analytics", + "type": "link", + "url": "/graph/d/pmm-qan/pmm-query-analytics" + }, + { + "icon": "bolt", + "includeVars": true, + "keepTime": true, + "tags": [ + "Compare" + ], + "targetBlank": false, + "title": "Compare", + "type": "link", + "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB" + ], + "targetBlank": false, + "title": "MongoDB", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB_HA" + ], + "targetBlank": false, + "title": "HA", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "Services" + ], + "targetBlank": false, + "title": "Services", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "PMM" + ], + "targetBlank": false, + "title": "PMM", + "type": "dashboards" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": false, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1022, + "panels": [], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Overview", + "type": "row" + }, + { + "datasource": "Metrics", + "description": "", + "gridPos": { + "h": 3, + "w": 5, + "x": 0, + "y": 1 + }, + "id": 1228, + "links": [], + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "
$cluster
", + "mode": "html" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "10m", + "datasource": "Metrics", + "datasourceErrors": {}, + "errors": {}, + "expr": "mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} ", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Cluster Name", + "type": "text" + }, + { + "datasource": "Metrics", + "description": "This shows how many members are configured in the replica set.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 0, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 5, + "y": 1 + }, + "hideTimeOverride": false, + "id": 59, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "datasource": "Metrics", + "expr": "count by (set) (group by (service_name, set) (mongodb_mongod_replset_number_of_members{cluster=~\"$cluster\",set=~\"$replset\"} or mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=~\"$replset\"}))", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "ReplSet Members", + "type": "stat" + }, + { + "datasource": "Metrics", + "description": "This shows the time since the last election.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 9, + "y": 1 + }, + "hideTimeOverride": false, + "id": 1227, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "datasource": "Metrics", + "expr": "time() - max(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"})", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "ReplSet Last Election", + "type": "stat" + }, + { + "datasource": "Metrics", + "description": "This panel shows how far behind in replication this member is if it is a secondary. This number may be high it the instance is running as a delayed secondary member.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 13, + "y": 1 + }, + "hideTimeOverride": true, + "id": 77, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "datasource": "Metrics", + "exemplar": false, + "expr": "avg by (set) (max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$service_name\"}[${__range}]))", + "format": "time_series", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "", + "refId": "B" + } + ], + "timeFrom": "1m", + "title": "Avg ReplSet Lag", + "type": "stat" + }, + { + "columns": [], + "datasource": "Metrics", + "description": "", + "fontSize": "100%", + "gridPos": { + "h": 11, + "w": 7, + "x": 17, + "y": 1 + }, + "hideTimeOverride": true, + "id": 78, + "links": [], + "showHeader": true, + "sort": { + "col": 0, + "desc": true + }, + "styles": [ + { + "alias": "Time", + "align": "auto", + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "pattern": "Time", + "type": "hidden" + }, + { + "alias": "Service Name", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "link": true, + "linkTargetBlank": true, + "linkTooltip": "MongoDB Instance Summary - ${__cell}", + "linkUrl": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}", + "mappingType": 1, + "pattern": "service_name", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "Version", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "mongodb", + "thresholds": [], + "type": "string", + "unit": "short" + }, + { + "alias": "", + "align": "auto", + "colors": [ + "rgba(245, 54, 54, 0.9)", + "rgba(237, 129, 40, 0.89)", + "rgba(50, 172, 45, 0.97)" + ], + "dateFormat": "YYYY-MM-DD HH:mm:ss", + "decimals": 2, + "mappingType": 1, + "pattern": "Value", + "thresholds": [], + "type": "hidden", + "unit": "short" + } + ], + "targets": [ + { + "datasource": "Metrics", + "exemplar": false, + "expr": "avg by (service_name,engine) (mongodb_mongod_storage_engine{service_name=~\"$service_name\"})", + "format": "table", + "hide": true, + "instant": true, + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "{{ engine }}", + "metric": "", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "exemplar": false, + "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})", + "format": "table", + "instant": true, + "interval": "5m", + "legendFormat": "{{mongodb}}", + "refId": "B" + } + ], + "timeFrom": "1m", + "title": "MongoDB Versions", + "transform": "table", + "type": "table-old" + }, + { + "datasource": "Metrics", + "description": "ReplSet statuses during the select time range.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "fillOpacity": 100, + "lineWidth": 0, + "spanNulls": false + }, + "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" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "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" + }, + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "N/A" + }, + "to": 1 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 6 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 17, + "x": 0, + "y": 4 + }, + "id": 1559, + "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", + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{set=~\"$replset\",service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, + "instant": false, + "interval": "$interval", + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A" + } + ], + "title": "ReplSet States", + "transformations": [], + "type": "state-timeline" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 1024, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 34 + }, + "hiddenSeries": false, + "id": 14, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Avg", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))", + "hide": true, + "interval": "$interval", + "legendFormat": "Avg", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Replication Lag", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "s", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Replication Lag", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 13 + }, + "id": 1019, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Operations are classified by legacy wire protocol type (insert, update, and delete only).", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 35 + }, + "hiddenSeries": false, + "id": 1020, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - $service_name", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=$service_name$__url_time_range" + } + ], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name,type) (rate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "repl - {{type}}", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "legendFormat": "repl - {{type}}", + "refId": "B" + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name,type) (rate(mongodb_op_counters_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "legendFormat": "{{type}}", + "refId": "C" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Operations - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Operations", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 14 + }, + "id": 1170, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "This metric can show a correlation with the replication lag value.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 36 + }, + "hiddenSeries": false, + "id": 13, + "legend": { + "alignAsTable": true, + "avg": false, + "current": false, + "max": true, + "min": false, + "show": true, + "sort": "max", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{service_name=~\"$service_name\"})\n* on (name) group_right(state) avg by (service_name,state,name) ((max_over_time(mongodb_mongod_replset_my_name[$interval]) or max_over_time(mongodb_mongod_replset_my_name[5m])))", + "format": "time_series", + "hide": true, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}} - {{name}} - {{state}}", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"}) or mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"}", + "hide": true, + "interval": "$interval", + "legendFormat": "{{service_name}} - {{name}} - {{state}}", + "refId": "B" + }, + { + "datasource": "Metrics", + "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"} or label_replace(label_replace(mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"},\"state\", \"$1\", \"member_state\", \"(.*)\"),\"name\", \"$1\", \"member_idx\", \"(.*)\"))", + "interval": "$interval", + "legendFormat": "{{service_name}} - {{name}}{{member_idx}} - {{state}}{{member_state}}", + "refId": "D" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Max Member Ping Time - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ms", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Max Member Ping Time", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 15 + }, + "id": 1017, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Time span between now and last heartbeat from replicaset members.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 37 + }, + "hiddenSeries": false, + "id": 75, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "time() - avg by (service_name) (max(mongodb_mongod_replset_member_last_heartbeat{service_name=~\"$service_name\"}) by (name)) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "metric": "", + "refId": "J", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (max(mongodb_rs_heartbeatIntervalMillis{service_name=~\"$service_name\"}) by (name) / 1000) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})", + "hide": true, + "interval": "$interval", + "legendFormat": "Interval - {service_name}}", + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Max Heartbeat Time", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "s", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Count of elections. Usually zero; 1 count by each healthy node will appear in each election. Happens when the primary role changes due to either normal maintenance or trouble events.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 37 + }, + "hiddenSeries": false, + "id": 12, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "max by (service_name) (changes(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"}[$interval]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Elections", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Max Heartbeat Time / Elections", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 16 + }, + "id": 1547, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 38 + }, + "hiddenSeries": false, + "id": 27, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Oplog Range", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Now to End", + "metric": "", + "refId": "J", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (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": "Oplog Range", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Recovery Window - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "s", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Oplog Recovery Window", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 17 + }, + "id": 1070, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Repl buffer ops applied per sec.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 100 + }, + "hiddenSeries": false, + "id": 85, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Buffered Operations", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Time spent per second waiting for or fetching oplog docs in replication.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 100 + }, + "hiddenSeries": false, + "id": 79, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Getmore Time", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ms", + "label": "", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Times spent per second A) pre-loading oplog ops into parallel-executable batches B) Times spent pre-loading index values and C) repl batch apply phase.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 108 + }, + "hiddenSeries": false, + "id": 84, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Document Preload", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Index Preload", + "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds", + "refId": "B", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Batch Apply", + "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds", + "refId": "C", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Processing Time - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ms", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Current hard-coded max and actual size of repl batch buffer.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 116 + }, + "hiddenSeries": false, + "id": 80, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Max", + "color": "#C4162A", + "fill": 0 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Used", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Max", + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Buffer Capacity - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Count of A) getmores executed B) index values pre-loaded C) oplog docs applied per second against oplog collection in replication.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MongoDB Instance Summary - ${__field.labels.service_name}", + "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 124 + }, + "hiddenSeries": false, + "id": 81, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Document Preload", + "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total", + "refId": "A", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Index Preload", + "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total", + "refId": "B", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[5m]))", + "interval": "$interval", + "intervalFactor": 2, + "legendFormat": "Batch Apply", + "refId": "C", + "step": 120 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Oplog Operations - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Oplog Details", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 1306, + "panels": [ + { + "collapsed": false, + "datasource": "Metrics", + "default_title_for_rows": "Service Name", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "decimals": 2, + "mappings": [ + { + "options": { + "0": { + "color": "#8b0000", + "index": 0, + "text": "No Data" + }, + "-": { + "index": 1, + "text": "No Data" + } + }, + "type": "value" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value #E" + }, + "properties": [ + { + "id": "custom.displayMode", + "value": "color-background-solid" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service_name" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #C" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #B" + }, + "properties": [ + { + "id": "unit", + "value": "µs" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #D" + }, + "properties": [ + { + "id": "decimals" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #A" + }, + "properties": [ + { + "id": "unit", + "value": "ops" + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 101 + }, + "id": 1352, + "options": { + "footer": { + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "targets": [ + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (service_name) (mongodb_instance_uptime_seconds{service_name=~\"$service_name\"})", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{service_name}} | Uptime", + "range": false, + "refId": "C" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "sum by (service_name) (rate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]) or rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]))", + "format": "table", + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{service_name}} | QPS", + "range": false, + "refId": "A" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (service_name) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) > 0) or\nirate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[5m]) > 0))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{service_name}} | Latency", + "range": false, + "refId": "B" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (service_name) (max_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or \nmax_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[5m]))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{service_name}} | Connections", + "range": false, + "refId": "D" + }, + { + "datasource": "Metrics", + "editorMode": "code", + "exemplar": false, + "expr": "avg by (service_name) (max_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]))", + "format": "table", + "instant": true, + "interval": "$interval", + "legendFormat": "{{service_name}} | Cursors ", + "refId": "E" + } + ], + "title": "Services Details", + "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": true, + "node_type": true, + "service_name": false + }, + "indexByName": { + "Time": 0, + "Value #A": 6, + "Value #B": 4, + "Value #C": 3, + "Value #D": 5, + "Value #E": 2, + "service_name": 1 + }, + "renameByName": { + "Value #A": "QPS", + "Value #B": "Average Latency", + "Value #C": "Uptime", + "Value #D": "Open Connections", + "Value #E": "Cursors", + "service_name": "Service Name" + } + } + } + ], + "type": "table" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Average latency of operations (classified by read, write, or (other) command).", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 107 + }, + "height": "250px", + "hiddenSeries": false, + "id": 1558, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[5m]) > 0))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{type}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Latency Detail - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "µs", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 115 + }, + "height": "250px", + "hiddenSeries": false, + "id": 1397, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{state}}", + "refId": "J", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Document Operations - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "MongoDB keeps most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 24, + "x": 0, + "y": 123 + }, + "height": "250px", + "hiddenSeries": false, + "id": 1012, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "Metrics", + "expr": "rate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[5m])", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{cache}} - {{type}}", + "refId": "J", + "step": 300 + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_thread_cache_free_bytes{service_name=~\"$service_name\"})", + "interval": "$interval", + "legendFormat": "Free Thread Cache", + "refId": "A" + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_central_cache_free_bytes{service_name=~\"$service_name\"})", + "interval": "$interval", + "legendFormat": "Free Central Cache", + "refId": "B" + }, + { + "datasource": "Metrics", + "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_transfer_cache_free_bytes{service_name=~\"$service_name\"})", + "interval": "$interval", + "legendFormat": "Free Transfer Cache", + "refId": "C" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Cache - $service_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "MongoDB Services Summary", + "type": "row" + }, + { + "collapsed": true, + "datasource": "Metrics", + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 19 + }, + "id": 1403, + "panels": [ + { + "collapsed": false, + "datasource": "Metrics", + "default_title_for_rows": "Node Name", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "center", + "displayMode": "auto", + "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" + } + ], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "orange", + "value": 10 + }, + { + "color": "green", + "value": 20 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "node_name" + }, + "properties": [ + { + "id": "custom.align", + "value": "left" + }, + { + "id": "custom.width" + } + ] + }, + { + "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.displayMode", + "value": "color-text" + }, + { + "id": "custom.width", + "value": 160 + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value #G" + }, + "properties": [ + { + "id": "unit", + "value": "percent" + }, + { + "id": "custom.displayMode", + "value": "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": 9 + }, + "id": 1435, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "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" + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Nodes Summary", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 20 + }, + "id": 1569, + "panels": [ + { + "aliasColors": { + "Max Core Utilization": "#bf1b00", + "idle": "#806EB7", + "iowait": "#E24D42", + "nice": "#1F78C1", + "softirq": "#FFF899", + "steal": "#8F3BB8", + "system": "#EAB839", + "user": "#508642" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 6, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 10 + }, + "height": "", + "hiddenSeries": false, + "id": 337, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": true, + "hideZero": true, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "node_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Max Core Utilization", + "lines": false, + "pointradius": 1, + "points": true, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": true, + "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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CPU Usage - $node_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "percent", + "label": "", + "logBase": 1, + "max": "100", + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "CPU Usage", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 1571, + "panels": [ + { + "aliasColors": { + "Allocated": "#E0752D", + "CPU Load": "#64B0C8", + "IO Load ": "#EA6460", + "Limit": "#1F78C1", + "Max CPU Core Utilization": "#bf1b00", + "Max Core Usage": "#bf1b00", + "Normalized CPU Load": "#6ED0E0" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 11 + }, + "hiddenSeries": false, + "id": 339, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "node_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Max CPU Core Utilization", + "lines": false, + "pointradius": 1, + "points": true, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "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": "" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "CPU Saturation and Max Core Usage - $node_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "percentunit", + "logBase": 1, + "max": "1", + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "CPU Saturation", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 1585, + "panels": [ + { + "aliasColors": { + "Swap In (Reads)": "#6ed0e0", + "Swap Out (Writes)": "#ef843c", + "Total": "#bf1b00" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 35 + }, + "hiddenSeries": false, + "id": 341, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [ + { + "targetBlank": true, + "title": "Disk Performance", + "url": "/graph/d/node-disk/disk-details?$__url_time_range&$__all_variables" + } + ], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "node_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Disk Writes (Page Out)", + "transform": "negative-Y" + }, + { + "alias": "Total", + "legend": false, + "lines": false + }, + { + "alias": "Swap Out (Writes)", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Disk I/O and Swap Activity - $node_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "Bps", + "label": "Page Out (-) / Page In (+)", + "logBase": 1, + "show": true + }, + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "Disk I/O and Swap Activity", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 23 + }, + "id": 1583, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, + "description": "Network traffic refers to the amount of data moving across a network at a given point in time.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 8, + "x": 0, + "y": 36 + }, + "hiddenSeries": false, + "id": 343, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideEmpty": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "node_name", + "repeatDirection": "h", + "seriesOverrides": [ + { + "alias": "Outbound", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "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": "" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Network Traffic - $node_name", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "Bps", + "label": "Outbound (-) / Inbound (+)", + "logBase": 1, + "show": true + }, + { + "format": "bytes", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "title": "Network Traffic", + "type": "row" + } + ], + "refresh": "1m", + "schemaVersion": 37, + "style": "dark", + "tags": [ + "Percona" + ], + "templating": { + "list": [ + { + "allFormat": "glob", + "auto": true, + "auto_count": 200, + "auto_min": "1s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "datasource": "Metrics", + "hide": 0, + "includeAll": false, + "label": "Interval", + "multi": false, + "multiFormat": "glob", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "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, + "skipUrlSync": false, + "type": "interval" + }, + { + "allFormat": "blob", + "current": { + "selected": false, + "text": "igtest", + "value": "igtest" + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_up,cluster)", + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "multiFormat": "glob", + "name": "cluster", + "options": [], + "query": { + "query": "label_values(mongodb_up,cluster)", + "refId": "Metrics-cluster-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query", + "useTags": false + }, + { + "allFormat": "glob", + "current": { + "selected": false, + "text": "shard0", + "value": "shard0" + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", + "hide": 0, + "includeAll": false, + "label": "Replica Set", + "multi": false, + "multiFormat": "glob", + "name": "replset", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", + "refId": "Metrics-replset-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query", + "useTags": false + }, + { + "allFormat": "glob", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "Metrics", + "definition": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)", + "hide": 0, + "includeAll": true, + "label": "Node Name", + "multi": true, + "multiFormat": "glob", + "name": "node_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)", + "refId": "Metrics-node_name-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allFormat": "glob", + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "datasource": "Metrics", + "definition": "", + "hide": 0, + "includeAll": true, + "label": "Service Name", + "multi": true, + "multiFormat": "glob", + "name": "service_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}, service_name)", + "refId": "Metrics-service_name-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allValue": ".*", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "hide": 2, + "includeAll": true, + "label": "Environment", + "multi": true, + "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": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", + "hide": 2, + "includeAll": true, + "label": "Replication Set", + "multi": true, + "name": "replication_set", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", + "refId": "Metrics-replication_set-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", + "hide": 2, + "includeAll": true, + "label": "Database", + "multi": true, + "name": "database", + "options": [], + "query": { + "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", + "refId": "Metrics-database-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", + "hide": 2, + "includeAll": true, + "label": "Type", + "multi": true, + "name": "node_type", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", + "refId": "Metrics-node_type-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", + "hide": 2, + "includeAll": true, + "label": "Type", + "multi": true, + "name": "service_type", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", + "refId": "Metrics-service_type-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", + "hide": 2, + "includeAll": true, + "label": "Schema", + "multi": true, + "name": "schema", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", + "refId": "Metrics-schema-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", + "hide": 2, + "includeAll": true, + "label": "Username", + "multi": true, + "name": "username", + "options": [], + "query": { + "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", + "refId": "Metrics-username-Variable-Query" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "datasource": "Metrics", + "definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)", + "hide": 2, + "includeAll": true, + "label": "Secondary", + "multi": true, + "name": "secondary", + "options": [], + "query": { + "query": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)", + "refId": "Metrics-secondary-Variable-Query" + }, + "refresh": 2, + "regex": "/.*service_name=\"(.*)\",service_type.*/", + "skipUrlSync": false, + "sort": 0, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": { + "hidden": false, + "now": true, + "refresh_intervals": [ + "5s", + "10s", + "30s", + "1m", + "5m", + "15m", + "30m", + "1h", + "2h", + "1d" + ], + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d" + ] + }, + "timezone": "", + "title": "MongoDB ReplSet Summary (Old)", + "uid": "mongodb-replicaset-summary_old", + "version": 1, + "weekStart": "" +} diff --git a/dashboards/MongoDB/MongoDB_Cluster_Summary.json b/dashboards/MongoDB/MongoDB_Cluster_Summary.json index a6236c7153..cdae8309ac 100644 --- a/dashboards/MongoDB/MongoDB_Cluster_Summary.json +++ b/dashboards/MongoDB/MongoDB_Cluster_Summary.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": false, "iconColor": "#e0752d", @@ -26,7 +29,10 @@ }, { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "#6ed0e0", @@ -48,7 +54,6 @@ "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, - "iteration": 1656415942746, "links": [ { "icon": "doc", @@ -147,7 +152,81 @@ "type": "row" }, { - "description": "Sharding is a method for distributing data across multiple machines. MongoDB uses sharding to support deployments with very large data sets and high throughput operations.", + "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", + "value": null + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1227, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "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 in Shard", + "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": { "color": { @@ -174,13 +253,13 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, + "h": 2, + "w": 2, "x": 0, - "y": 1 + "y": 6 }, "hideTimeOverride": true, - "id": 35, + "id": 36, "links": [], "maxDataPoints": 100, "options": { @@ -200,23 +279,25 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"partitioned\"})", + "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": "Sharded DBs", + "title": "Shards", "type": "stat" }, { - "description": "A MongoDB sharded cluster deployment can contain collections that are either unsharded (the default when created) or sharded.", + "description": "Number of mongos routers registered as part of the cluster", "fieldConfig": { "defaults": { "color": { @@ -243,13 +324,13 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 1 + "h": 2, + "w": 2, + "x": 2, + "y": 6 }, "hideTimeOverride": true, - "id": 39, + "id": 1298, "links": [], "maxDataPoints": 100, "options": { @@ -269,350 +350,129 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_databases_total{cluster=\"$cluster\", type=\"unpartitioned\"})", + "editorMode": "code", + "expr": "sum(group by (service_name)(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}))", "interval": "5m", "intervalFactor": 1, - "legendFormat": "Shards", + "legendFormat": "__auto", + "range": true, "refId": "A", "step": 300 } ], "timeFrom": "1m", - "title": "Unsharded DBs", + "title": "Mongos", "type": "stat" }, { - "collapsed": false, - "default_title_for_rows": "DB Name", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "gridPos": { - "h": 12, - "w": 8, - "x": 8, - "y": 1 - }, - "id": 1043, - "pluginVersion": "9.2.20", - "title": "Amount of Collections in Shards", - "type": "table", + "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": { - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "color": "dark-blue", - "index": 0 - } - } - } - ], + "decimals": 0, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": 20 + "color": "red", + "value": 80 } ] }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-" + "unit": "none" }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 2, + "x": 4, + "y": 6 }, + "hideTimeOverride": true, + "id": 1028, + "links": [], + "maxDataPoints": 100, "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "fields": "" + "fields": "", + "values": false }, - "frameIndex": 0, - "sortBy": [ - { - "displayName": "DB Name\\Value", - "desc": false - } - ] - }, - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } + "text": { + "valueSize": 20 }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], + "textMode": "auto" + }, + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max by (db,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\",db!~\"admin|config\"})", - "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "refId": "A" - }, - { - "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}", "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", - "hide": true, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Size", - "refId": "B" + "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 } ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } + "timeFrom": "1m", + "title": "Draining Shards", + "type": "stat" }, { - "default_title_for_rows": "DB Name", - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", - "gridPos": { - "h": 12, - "w": 8, - "x": 16, - "y": 1 - }, - "hide_headers": false, - "id": 1030, - "pluginVersion": "9.2.20", - "title": "Size of Collections in Shards", - "type": "table", + "description": "Total number of user-created databases", "fieldConfig": { "defaults": { - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "color": "dark-blue", - "index": 0, - "text": "0" - } - } - } - ], + "decimals": 0, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": null }, { - "color": "green", - "value": 20 + "color": "red", + "value": 80 } ] }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-", - "unit": "bytes" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] - }, - "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" - ], - "fields": "" - }, - "frameIndex": 0, - "sortBy": [ - { - "displayName": "DB Name\\Value", - "desc": false - } - ] - }, - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], - "targets": [ - { - "expr": "max by (db,shard) (mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})", - "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "refId": "A" - } - ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } - }, - { - "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", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "none" + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 4 + "h": 2, + "w": 2, + "x": 6, + "y": 6 }, "hideTimeOverride": true, - "id": 36, + "id": 35, "links": [], "maxDataPoints": 100, "options": { @@ -632,23 +492,25 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_shards_total{cluster=\"$cluster\"})", + "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": "Shards", + "title": "DBs", "type": "stat" }, { - "description": "A chunk consists of a subset of sharded data.", + "description": "Number of collections that are sharded", "fieldConfig": { "defaults": { "color": { @@ -675,13 +537,13 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 4 + "h": 2, + "w": 3, + "x": 8, + "y": 6 }, "hideTimeOverride": true, - "id": 11, + "id": 10, "links": [], "maxDataPoints": 100, "options": { @@ -701,41 +563,58 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "sum(mongodb_mongos_sharding_chunks_total{cluster=\"$cluster\"})", + "editorMode": "code", + "expr": "max by (environment, cluster) (mongodb_ss_shardingStatistics_numShardedCollections{environment=~\"$environment\",cluster=~\"$cluster\"} or mongodb_mongos_sharding_collections_total{environment=~\"$environment\",cluster=~\"$cluster\"})", "interval": "5m", "intervalFactor": 1, - "legendFormat": "Chunks", + "legendFormat": "Shards", + "range": true, "refId": "A", "step": 300 } ], "timeFrom": "1m", - "title": "Chunks", + "title": "Sharded Collections", "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.", + "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ", "fieldConfig": { "defaults": { "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" + "mode": "thresholds" }, "decimals": 0, - "mappings": [], + "mappings": [ + { + "options": { + "0": { + "text": "NO" + }, + "1": { + "text": "YES" + } + }, + "type": "value" + } + ], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", + "color": "rgba(245, 54, 54, 0.9)", "value": null }, { - "color": "red", - "value": 80 + "color": "rgba(237, 129, 40, 0.89)", + "value": 0 + }, + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 1 } ] }, @@ -744,13 +623,13 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 7 + "h": 2, + "w": 3, + "x": 11, + "y": 6 }, "hideTimeOverride": true, - "id": 1028, + "id": 5, "links": [], "maxDataPoints": 100, "options": { @@ -770,23 +649,26 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_shards_draining_total{cluster=\"$cluster\"})", + "editorMode": "code", + "expr": "max(mongodb_mongos_sharding_balancer_enabled{environment=~\"$environment\",cluster=~\"$cluster\"})", + "format": "time_series", "interval": "5m", "intervalFactor": 1, - "legendFormat": "Draining Total", + "legendFormat": "Cluster Balanced", + "range": true, "refId": "A", "step": 300 } ], "timeFrom": "1m", - "title": "Draining Shards", + "title": "Balancer Enabled", "type": "stat" }, { - "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "description": "A chunk consists of a subset of sharded data.", "fieldConfig": { "defaults": { "color": { @@ -813,13 +695,13 @@ "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 7 + "h": 2, + "w": 7, + "x": 14, + "y": 6 }, "hideTimeOverride": true, - "id": 10, + "id": 11, "links": [], "maxDataPoints": 100, "options": { @@ -839,71 +721,58 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_collections_total{cluster=\"$cluster\"})", + "editorMode": "code", + "expr": "sum(mongodb_mongos_sharding_chunks_total{environment=~\"$environment\",cluster=~\"$cluster\"})", "interval": "5m", "intervalFactor": 1, - "legendFormat": "Shards", + "legendFormat": "Chunks", + "range": true, "refId": "A", "step": 300 } ], "timeFrom": "1m", - "title": "Sharded Collections", + "title": "Total amount of Chunks", "type": "stat" }, { - "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. ", + "description": "Time since the most recent election of any member of the cluster", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "decimals": 0, - "mappings": [ - { - "options": { - "0": { - "text": "NO" - }, - "1": { - "text": "YES" - } - }, - "type": "value" - } - ], + "decimals": 1, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)", + "color": "green", "value": null }, { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 1 + "color": "red", + "value": 80 } ] }, - "unit": "none" + "unit": "s" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 10 + "h": 2, + "w": 3, + "x": 21, + "y": 6 }, - "hideTimeOverride": true, - "id": 5, + "hideTimeOverride": false, + "id": 1293, "links": [], "maxDataPoints": 100, "options": { @@ -923,79 +792,59 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "max(mongodb_mongos_sharding_balancer_enabled{cluster=\"$cluster\"})", - "format": "time_series", + "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": "Cluster Balanced", + "legendFormat": "", + "metric": "", + "range": true, "refId": "A", "step": 300 } ], - "timeFrom": "1m", - "title": "Balancer Enabled", + "title": "Last Election", "type": "stat" }, { - "description": "When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.", + "description": "Show the chunk distribution between all the shards involved", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, - "decimals": 0, - "mappings": [ - { - "options": { - "0": { - "text": "NO" - }, - "1": { - "text": "YES" - } - }, - "type": "value" - } - ], + "mappings": [], + "max": 1, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)", + "color": "green", "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 0 - }, - { - "color": "rgba(50, 172, 45, 0.97)", - "value": 1 } ] }, - "unit": "none" + "unit": "percentunit" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 4, - "y": 10 + "h": 7, + "w": 24, + "x": 0, + "y": 8 }, - "hideTimeOverride": true, - "id": 4, - "links": [], - "maxDataPoints": 100, + "id": 1267, "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -1003,629 +852,442 @@ "fields": "", "values": false }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "showUnfilled": true }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", + "repeatDirection": "v", "targets": [ { - "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})", + "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", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "Cluster Balancer is Running", - "refId": "A", - "step": 300 - } - ], - "timeFrom": "1m", - "title": "Chunks Balancer is running", - "type": "stat" + "hide": false, + "instant": true, + "interval": "$interval", + "legendFormat": "{{shard}} ", + "range": false, + "refId": "A" + } + ], + "title": "Chunks distribution", + "type": "bargauge" }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "Config services 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.", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, "gridPos": { - "h": 5, + "h": 8, "w": 12, "x": 0, - "y": 13 + "y": 15 }, - "id": 1229, - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "defaultClickThroughNewTab": true, - "defaultClickThroughSanitize": true, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": false, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "ops", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#8F3BB8", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "name", - "tooltipTimestampEnabled": true, - "valueEnabled": true + "hiddenSeries": false, + "id": 1269, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "rangeMaps": [ + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ { - "from": "null", - "text": "N/A", - "to": "null" + "alias": "/repl.*/", + "yaxis": 2 } ], - "repeatDirection": "v", - "savedComposites": [], - "savedOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { - "expr": "sum by (service_name) (mongodb_connections{cluster=\"$cluster\", state=\"current\"} * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))", + "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, - "instant": false, "interval": "$interval", - "legendFormat": "Config - {{service_name}} ", - "refId": "A" + "intervalFactor": 1, + "legendFormat": "repl_{{legacy_op_type}}", + "range": true, + "refId": "A", + "step": 300 }, { - "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set!~\"$shard\"}))", + "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", - "legendFormat": "{{service_name}}", - "refId": "B" - } - ], - "title": "QPS of Config Services", - "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] - }, - { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "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.", - "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 13 - }, - "id": 1231, - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 + "intervalFactor": 1, + "legendFormat": "ttl_delete", + "range": true, + "refId": "B", + "step": 300 }, { - "name": "range to text", - "value": 2 + "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 } ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "defaultClickThroughNewTab": true, - "defaultClickThroughSanitize": true, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": false, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "ops", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#8AB8FF", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "name", - "tooltipTimestampEnabled": true, - "valueEnabled": true + "thresholds": [], + "timeRegions": [], + "title": "Command Operations", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" ], - "repeatDirection": "v", - "savedComposites": [], - "savedOverrides": [ + "yaxes": [ { - "clickThrough": "", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": "", - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "", - "newTabEnabled": true, - "operatorName": "avg", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [], - "unitFormat": "short" - } - ], - "targets": [ + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, { - "exemplar": true, - "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",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\"})))", - "format": "time_series", - "instant": false, - "interval": "$interval", - "legendFormat": "{{service_name}} ", - "refId": "A" + "format": "ops", + "label": "", + "logBase": 1, + "min": "0", + "show": true } ], - "title": "QPS of Mongos Service", - "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "yaxis": { + "align": false + } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "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.", + "description": "Show the 5 collections that are most frequently read.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, "gridPos": { - "h": 5, - "w": 24, - "x": 0, - "y": 18 + "h": 8, + "w": 12, + "x": 12, + "y": 15 }, - "id": 1227, - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 + "id": 1271, + "links": [], + "options": { + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - { - "name": "range to text", - "value": 2 - } - ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "defaultClickThroughNewTab": true, - "defaultClickThroughSanitize": true, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": false, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "ops", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "name", - "tooltipTimestampEnabled": true, - "valueEnabled": true + "showUnfilled": true, + "text": {} }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "repeat": "shard", + "pluginVersion": "9.2.20", "repeatDirection": "v", - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": "", - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "", - "newTabEnabled": true, - "operatorName": "avg", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [], - "unitFormat": "short" - } - ], "targets": [ { - "expr": "(sum by (service_name) (rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m])) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\",set=~\"$shard\"}))", - "format": "time_series", - "instant": false, - "interval": "$interval", - "legendFormat": "{{service_name}} ", + "editorMode": "code", + "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\"})[$interval]))", + "hide": true, + "legendFormat": "{{database}}.{{collection}}", + "range": true, + "refId": "B" + }, + { + "editorMode": "code", + "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, + "interval": "", + "legendFormat": "{{database}}.{{collection}}", + "range": true, "refId": "A" } ], - "title": "QPS of Services in Shard - $shard", - "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "title": "Top Hottest Collections by Read", + "transformations": [], + "type": "bargauge" }, { - "collapsed": false, + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Average latency of operations (classified by read, write, or (other) command)", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, "gridPos": { - "h": 1, - "w": 24, + "h": 8, + "w": 12, "x": 0, "y": 23 }, - "id": 1199, - "panels": [], - "title": "Chunks in Shards", - "type": "row" - }, - { - "id": 1215, - "gridPos": { - "h": 4, - "w": 24, - "x": 0, - "y": 24 + "hiddenSeries": false, + "id": 1297, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true }, - "type": "state-timeline", - "title": "Chunks Balancer is running", - "description": "The MongoDB balancer is a background process that monitors the number of chunks on each shard. When the number of chunks on a given shard reaches specific migration thresholds, the balancer attempts to automatically migrate chunks between shards and reach an equal number of chunks per shard.", + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { - "expr": "min(mongodb_mongos_sharding_chunks_is_balancer_running{cluster=\"$cluster\"})", + "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": "$cluster", + "legendFormat": "{{op_type}}", + "range": true, "refId": "A" } ], - "options": { - "mergeValues": true, - "showValue": "always", - "alignValue": "center", - "rowHeight": 0.9, - "legend": { - "showLegend": true, - "displayMode": "list", - "placement": "bottom" + "thresholds": [], + "timeRegions": [], + "title": "Query execution times", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "µs", + "logBase": 1, + "min": "0", + "show": true }, - "tooltip": { - "mode": "single", - "sort": "none" + { + "format": "short", + "logBase": 1, + "show": false } - }, + ], + "yaxis": { + "align": false + } + }, + { + "description": "Show the 5 collections that are most frequently written to.", "fieldConfig": { "defaults": { - "custom": { - "lineWidth": 0, - "fillOpacity": 100, - "spanNulls": true - }, "color": { - "mode": "palette-classic" + "fixedColor": "blue", + "mode": "fixed" }, - "mappings": [ - { - "type": "value", - "options": { - "0": { - "text": "NO", - "index": 2, - "color": "red" - }, - "1": { - "text": "YES", - "index": 1, - "color": "green" - } - } - }, - { - "type": "range", - "options": { - "from": 0, - "to": 1, - "result": { - "text": "N/A", - "color": "text", - "index": 0 - } - } - } - ], + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "value": null, "color": "green" - }, - { - "value": 80, - "color": "red" } ] }, - "unit": "short" + "unit": "ops" }, "overrides": [] - } - }, - { - "default_title_for_rows": "Shard Name", - "description": "A chunk consists of a subset of sharded data.", + }, "gridPos": { "h": 8, - "w": 8, - "x": 0, - "y": 28 - }, - "hide_headers": false, - "id": 1200, - "pluginVersion": "9.2.20", - "title": "Amount of Chunks in Shards", - "type": "table", - "fieldConfig": { - "defaults": { - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 - } - ] - }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-" - }, - "overrides": [ - { - "matcher": { - "id": "byName", - "options": "Chunks" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - } - ] - } - ] + "w": 12, + "x": 12, + "y": 23 }, + "id": 1273, "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "fields": "" - } + "fields": "", + "values": false + }, + "showUnfilled": true }, - "transformations": [ - { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": { - "shard": "Shard Name", - "Value": "Chunks" - } - } - } - ], + "pluginVersion": "9.2.20", "targets": [ { - "expr": "avg by (shard) (mongodb_mongos_sharding_shard_chunks_total{cluster=\"$cluster\",db!~\"admin|config\"})", "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{shard}} | Chunks", + "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": false, + "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", + "legendFormat": "{{database}}.{{collection}}", + "range": true, "refId": "A" + }, + { + "editorMode": "code", + "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, + "legendFormat": "{{database}}.{{collection}}", + "range": true, + "refId": "B" } ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } + "title": "Top Hottest Collections by Write", + "type": "bargauge" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "decimals": 2, - "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.", + "decimals": 0, + "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", + "editable": true, + "error": false, "fieldConfig": { "defaults": { "links": [ { "targetBlank": true, - "title": "MongoDB ReplSet Summary", + "title": "MongoDB ReplSet Summary - ${__series.name}", "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" } ] }, "overrides": [] }, - "fill": 2, + "fill": 6, "fillGradient": 0, + "grid": {}, "gridPos": { "h": 8, - "w": 16, - "x": 8, - "y": 28 + "w": 12, + "x": 0, + "y": 31 }, "hiddenSeries": false, - "id": 1201, + "id": 30, "legend": { "alignAsTable": true, "avg": true, "current": false, + "hideEmpty": false, + "hideZero": false, "max": true, "min": true, - "rightSide": true, + "rightSide": false, "show": true, "sort": "avg", "sortDesc": true, @@ -1634,32 +1296,39 @@ }, "lines": true, "linewidth": 2, + "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, + "pluginVersion": "9.2.20", + "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "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]))", + "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", - "legendFormat": "{{shard}}", - "refId": "A" + "intervalFactor": 1, + "legendFormat": "{{set}}", + "range": true, + "refId": "A", + "step": 300 } ], "thresholds": [], "timeRegions": [], - "title": "Dynamic of Chunks", + "title": "Operations Per Shard", "tooltip": { + "msResolution": false, "shared": true, "sort": 5, "value_type": "individual" @@ -1673,9 +1342,10 @@ "yaxes": [ { "decimals": 2, - "format": "cps", + "format": "ops", + "label": "", "logBase": 1, - "min": "0", + "min": 0, "show": true }, { @@ -1689,188 +1359,171 @@ } }, { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", + "description": "", "fieldConfig": { "defaults": { - "links": [] + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "displayMode": "auto", + "inspect": false + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + } + ] + } }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 36 - }, - "hiddenSeries": false, - "id": 1212, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "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" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Chunks Split Events", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Time" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service_name" + }, + "properties": [ + { + "id": "displayName", + "value": "Service Name" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "links", + "value": [] + }, + { + "id": "custom.align" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "mongodb" + }, + "properties": [ + { + "id": "displayName", + "value": "Version" + }, + { + "id": "unit", + "value": "short" + }, + { + "id": "decimals", + "value": 2 + }, + { + "id": "custom.align", + "value": "auto" + }, + { + "id": "custom.width" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "custom.hidden", + "value": true + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "service_name" + }, + "properties": [ + { + "id": "custom.width" + } + ] + } + ] }, - "fill": 2, - "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, - "y": 36 - }, - "hiddenSeries": false, - "id": 1216, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true + "y": 31 }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", + "hideTimeOverride": true, + "id": 1289, + "links": [], "options": { - "alertThreshold": true + "footer": { + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true, + "sortBy": [] }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.20", "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" + "editorMode": "code", + "exemplar": false, + "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"}) or (avg by (service_name,mongodb) (mongodb_version_info)) * on (service_name) group_right (mongodb) (avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}) / avg by (service_name) (mongodb_mongos_db_collections_total{cluster=~\"$cluster\"}))", + "format": "table", + "instant": true, + "interval": "5m", + "legendFormat": "{{mongodb}}", + "refId": "B" } ], - "thresholds": [], - "timeRegions": [], - "title": "Chunks Move Events", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, + "timeFrom": "1m", + "title": "MongoDB Versions", + "transformations": [ { - "format": "short", - "logBase": 1, - "show": false + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Time": 1, + "Value": 3, + "mongodb": 2, + "service_name": 0 + }, + "renameByName": {} + } } ], - "yaxis": { - "align": false - } + "type": "table" }, { "collapsed": false, @@ -1878,1197 +1531,436 @@ "h": 1, "w": 24, "x": 0, - "y": 44 + "y": 39 }, - "id": 1045, + "id": 1285, "panels": [], - "title": "Indexes in Shards", + "title": "Node States", "type": "row" }, { - "default_title_for_rows": "DB Name", - "description": "Indexes are special data structures that store a small portion of the collection’s data set in an easy to traverse form. ", - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 45 - }, - "hide_headers": false, - "id": 1040, - "pluginVersion": "9.2.20", - "title": "Amount of Indexes in Shards", - "type": "table", + "description": "ReplSet statuses during the select time range.", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false + "fillOpacity": 100, + "lineWidth": 0, + "spanNulls": true }, "mappings": [ { "options": { "0": { - "color": "dark-red", - "index": 0, - "text": "No data" + "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" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "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" + }, + { + "options": { + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "range" } ], "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", - "value": null + "color": "green" }, { - "color": "green", - "value": 20 + "color": "red", + "value": 80 } ] }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-" + "unit": "short" }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] + "overrides": [] }, - "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" - ], - "fields": "" - }, - "frameIndex": 0, - "sortBy": [ - { - "displayName": "DB Name\\Value", - "desc": false - } - ] + "gridPos": { + "h": 7, + "w": 8, + "x": 0, + "y": 40 }, - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } + "id": 1281, + "options": { + "alignValue": "right", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" } - ], + }, + "pluginVersion": "6.5.1", + "repeat": "set", + "repeatDirection": "h", "targets": [ { - "expr": "avg by (db,shard) (mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"})", "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\",service_name=~\"$service_name\"})", "hide": false, - "instant": true, "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", + "legendFormat": "{{service_name}}", + "range": true, "refId": "A" - }, - { - "expr": "mongodb_mongos_db_data_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}", - "editorMode": "code", - "range": false, - "exemplar": false, - "format": "table", - "hide": true, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Size", - "refId": "B" } ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } + "title": "$set Node States", + "type": "state-timeline" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, + "collapsed": false, "gridPos": { - "h": 8, - "w": 16, - "x": 8, - "y": 45 - }, - "hiddenSeries": false, - "id": 1042, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "avg by (db,shard) (rate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or irate(mongodb_mongos_db_indexes_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{shard}}-{{db}}", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Dynamic of Indexes", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "h": 1, + "w": 24, + "x": 0, + "y": 47 }, - "yaxes": [ - { - "decimals": 2, - "format": "cps", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } + "id": 1279, + "panels": [], + "title": "Collection Details", + "type": "row" }, { "default_title_for_rows": "DB Name", - "description": "The index stores the value of a specific field or set of fields, ordered by the value of the field. ", - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 53 - }, - "hide_headers": false, - "id": 1072, - "pluginVersion": "9.2.20", - "title": "Size of Indexes in Shards", - "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", "displayMode": "auto", - "inspect": false, - "filterable": false + "filterable": false, + "inspect": true }, "mappings": [ { "options": { "0": { - "color": "dark-red", + "color": "dark-blue", "index": 0, - "text": "No data" + "text": "0" } }, "type": "value" } ], + "noValue": "0", "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 + "color": "red" } ] }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-", "unit": "bytes" }, "overrides": [ { "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" + "id": "byName", + "options": "Collection Name" }, "properties": [ { "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] + "value": "auto" } ] } ] }, + "gridPos": { + "h": 8, + "w": 11, + "x": 0, + "y": 48 + }, + "hide_headers": false, + "id": 1030, "options": { - "showHeader": true, "footer": { - "show": false, + "fields": "", "reducer": [ "sum" ], - "fields": "" + "show": false }, "frameIndex": 0, - "sortBy": [ - { - "displayName": "DB Name\\Value", - "desc": false - } - ] + "showHeader": true, + "sortBy": [] }, - "transformations": [ + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "targets": [ { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } + "editorMode": "code", + "exemplar": false, + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{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" }, { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], - "targets": [ - { "editorMode": "code", "exemplar": false, - "expr": "avg by (db,shard) (mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"})", + "expr": "max by(rs_nm, collection, database) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\", db!~\"admin|config|local\", rs_nm=~\"$set\"})", "format": "table", "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "refId": "A" - } - ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 16, - "x": 8, - "y": 53 - }, - "hiddenSeries": false, - "id": 1073, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "avg by (db,shard) (rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or rate(mongodb_mongos_db_index_size_bytes{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{shard}}-{{db}}", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Dynamic of Indexes Size", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "Bps", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 61 - }, - "id": 1071, - "panels": [ - { - "default_title_for_rows": "DB Name", - "description": "Documents in MongoDB are objects stored in a format called BSON, a binary-encoded superset of JSON that supports additional data types.", - "gridPos": { - "h": 8, - "w": 8, - "x": 0, - "y": 29 - }, - "hide_headers": false, - "id": 1066, - "pluginVersion": "9.2.20", - "title": "Amount of Objects in Shards", - "type": "table", - "fieldConfig": { - "defaults": { - "custom": { - "align": "left", - "displayMode": "auto", - "inspect": false, - "filterable": false - }, - "mappings": [ - { - "options": { - "0": { - "color": "dark-red", - "index": 0, - "text": "No data" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "red", - "value": null - }, - { - "color": "green", - "value": 20 - } - ] - }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-" - }, - "overrides": [ - { - "matcher": { - "id": "byRegexp", - "options": "^((?!(DB Name)).)*$" - }, - "properties": [ - { - "id": "custom.displayMode", - "value": "color-background-solid" - }, - { - "id": "color", - "value": { - "mode": "fixed", - "fixedColor": "dark-blue" - } - }, - { - "id": "links", - "value": [ - { - "title": "", - "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-interval=$__auto_interval_interval&var-replset=${__field.name}" - } - ] - } - ] - } - ] - }, - "options": { - "showHeader": true, - "footer": { - "show": false, - "reducer": [ - "sum" - ], - "fields": "" - }, - "frameIndex": 0, - "sortBy": [ - { - "displayName": "DB Name\\Value", - "desc": false - } - ] - }, - "transformations": [ - { - "id": "groupingToMatrix", - "options": { - "columnField": "shard", - "rowField": "db", - "valueField": "Value" - } - }, - { - "id": "organize", - "options": { - "excludeByName": {}, - "indexByName": {}, - "renameByName": { - "db\\shard": "DB Name", - "rs1": "" - } - } - } - ], - "targets": [ - { - "datasource": "Metrics", - "exemplar": false, - "expr": "avg by (db,shard) (mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"})", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{db}} | {{shard}} | Collections", - "refId": "A" - } - ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 16, - "x": 8, - "y": 29 - }, - "hiddenSeries": false, - "id": 1067, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "7.5.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "exemplar": true, - "expr": "avg by (db,shard) (increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[$interval]) or increase(mongodb_mongos_db_objects_total{cluster=\"$cluster\",db!~\"admin|config\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{shard}}-{{db}}", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Dynamic of Objects", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - } - ], - "title": "Objects in Shards", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 81, - "panels": [], - "title": "Connections", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "description": "TCP connections (Incoming) in mongod processes.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 63 - }, - "hiddenSeries": false, - "id": 37, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Total", - "color": "#C4162A", - "fill": 0, - "legend": false, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (set) (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "refId": "B", - "step": 300 - }, - { - "expr": "sum by () (avg by (service_name,set) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,set) (mongodb_mongod_replset_my_state{cluster=\"$cluster\"}/ mongodb_mongod_replset_my_state{cluster=\"$cluster\"}))", - "hide": false, - "interval": "$interval", - "legendFormat": "Total", - "refId": "A" - }, - { - "expr": "sum by (shard) (avg by (service_name,shard) (mongodb_connections{cluster=\"$cluster\", state=\"current\"}) * on (service_name) group_right avg by (service_name,shard) (mongodb_mongos_db_collections_total{cluster=\"$cluster\"} / mongodb_mongos_db_collections_total{cluster=\"$cluster\"}))", - "format": "time_series", - "hide": true, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{shard}}", - "refId": "C", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Current Connections Per Shard", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "description": "Incoming connections to mongos nodes.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 63 - }, - "hiddenSeries": false, - "id": 7, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (state) (max_over_time(mongodb_connections{cluster=\"$cluster\"}[$interval]) or max_over_time(mongodb_connections{cluster=\"$cluster\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{state}}", - "refId": "J", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Total Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 2, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 71 - }, - "id": 50, - "panels": [], - "title": "Connections Details", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 72 - }, - "hiddenSeries": false, - "id": 1178, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "maxPerRow": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"current\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "J", - "step": 300 + "instant": true, + "interval": "$interval", + "legendFormat": "{{db}} | {{shard}} | Collections", + "range": false, + "refId": "B" } ], - "thresholds": [], - "timeRegions": [], - "title": "Current Connections ", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ + "title": "Size of Collections in Shards", + "transformations": [ { - "decimals": 2, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true + "id": "calculateField", + "options": { + "binary": { + "left": "collection", + "reducer": "sum", + "right": "database" + }, + "mode": "reduceRow", + "reduce": { + "include": [ + "database", + "collection" + ], + "reducer": "allValues" + }, + "replaceFields": false + } }, { - "format": "short", - "logBase": 1, - "show": 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" + } + } } ], - "yaxis": { - "align": false - } + "type": "table" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "editable": true, - "error": false, + "collapsed": false, + "default_title_for_rows": "DB Name", + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", "fieldConfig": { "defaults": { - "links": [] + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, + "custom": { + "align": "left", + "displayMode": "auto", + "filterable": false, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0 + } + }, + "type": "value" + } + ], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + } }, "overrides": [] }, - "fill": 6, - "fillGradient": 0, - "grid": {}, "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 79 - }, - "hiddenSeries": false, - "id": 1177, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true + "h": 8, + "w": 13, + "x": 11, + "y": 48 }, - "lines": true, - "linewidth": 2, - "links": [], - "maxPerRow": 2, - "nullPointMode": "null", + "id": 1043, "options": { - "alertThreshold": true + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" + } + ] + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, "targets": [ { - "expr": "sum by (service_name) (max_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[$interval]) or \nmax_over_time(mongodb_connections{cluster=\"$cluster\",service_name=~\"$service_name\",state=\"available\"}[5m]))", - "format": "time_series", + "editorMode": "code", + "exemplar": false, + "expr": "max by (rs_nm, database) (mongodb_mongod_db_collections_total{cluster=\"$cluster\",database!~\"admin|config|system|local\",rs_nm=~\"$set\"})", + "format": "table", "hide": false, + "instant": true, "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "J", - "step": 300 + "legendFormat": "{{db}} | {{rs_nm}} | Collections", + "range": false, + "refId": "C" } ], - "thresholds": [], - "timeRegions": [], - "title": "Available Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ + "title": "Number of Collections in Shards", + "transformations": [ { - "decimals": 2, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true + "id": "groupingToMatrix", + "options": { + "columnField": "rs_nm", + "rowField": "database", + "valueField": "Value" + } }, { - "format": "short", - "logBase": 1, - "show": false + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": {}, + "renameByName": { + "database\\rs_nm": "DB Name", + "shard0": "" + } + } } ], - "yaxis": { - "align": false - } + "type": "table" }, { "collapsed": false, @@ -3076,11 +1968,11 @@ "h": 1, "w": 24, "x": 0, - "y": 86 + "y": 56 }, - "id": 1149, + "id": 81, "panels": [], - "title": "Cursors", + "title": "Connections", "type": "row" }, { @@ -3088,8 +1980,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "decimals": 0, - "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution. ", + "description": "TCP connections (Incoming) in mongod processes.", "editable": true, "error": false, "fieldConfig": { @@ -3108,23 +1999,24 @@ "fillGradient": 0, "grid": {}, "gridPos": { - "h": 8, - "w": 12, + "h": 7, + "w": 24, "x": 0, - "y": 87 + "y": 57 }, "hiddenSeries": false, - "id": 25, + "id": 37, "legend": { "alignAsTable": true, "avg": true, "current": false, + "hideEmpty": false, "hideZero": false, "max": true, "min": true, - "rightSide": false, + "rightSide": true, "show": true, - "sort": "avg", + "sort": "current", "sortDesc": true, "total": false, "values": true @@ -3137,7 +2029,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3155,31 +2047,28 @@ "steppedLine": false, "targets": [ { - "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)", + "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": "{{set}}", - "refId": "A", + "legendFormat": "{{rs_nm}}", + "range": true, + "refId": "B", "step": 300 - }, - { - "expr": "sum(sum(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"} or mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}) by (service_name) * on (service_name) group_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"})", - "interval": "$interval", - "legendFormat": "Total", - "refId": "B" } ], "thresholds": [], "timeRegions": [], - "title": "Cursors Per Shard", + "title": "Current Connections Per Shard", "tooltip": { "msResolution": false, "shared": true, - "sort": 5, - "value_type": "cumulative" + "sort": 0, + "value_type": "individual" }, + "transformations": [], "type": "graph", "xaxis": { "mode": "time", @@ -3209,7 +2098,8 @@ "bars": false, "dashLength": 10, "dashes": false, - "description": "The Cursor is a MongoDB Collection of the document which is returned upon the find method execution.", + "decimals": 2, + "description": "", "editable": true, "error": false, "fieldConfig": { @@ -3218,23 +2108,24 @@ }, "overrides": [] }, - "fill": 2, + "fill": 6, "fillGradient": 0, "grid": {}, "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 87 + "h": 7, + "w": 24, + "x": 0, + "y": 64 }, "hiddenSeries": false, - "id": 31, + "id": 1177, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, + "rightSide": true, "show": true, "sort": "avg", "sortDesc": true, @@ -3244,37 +2135,40 @@ "lines": true, "linewidth": 2, "links": [], + "maxPerRow": 2, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", + "repeatDirection": "h", "seriesOverrides": [], "spaceLength": 10, - "stack": false, + "stack": true, "steppedLine": false, "targets": [ { - "exemplar": true, - "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", + "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": "$interval", - "legendFormat": "Cursors", + "interval": "", + "legendFormat": "{{service_name}}", + "range": true, "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Mongos Cursors", + "title": "Available Connections", "tooltip": { "msResolution": false, "shared": true, - "sort": 5, - "value_type": "cumulative" + "sort": 0, + "value_type": "individual" }, "type": "graph", "xaxis": { @@ -3284,6 +2178,7 @@ }, "yaxes": [ { + "decimals": 2, "format": "short", "label": "", "logBase": 1, @@ -3293,7 +2188,7 @@ { "format": "short", "logBase": 1, - "show": true + "show": false } ], "yaxis": { @@ -3301,176 +2196,155 @@ } }, { - "collapsed": true, + "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 95 + "y": 71 }, - "id": 62, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "", - "editable": true, - "error": false, - "fill": 6, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 49 - }, - "hiddenSeries": false, - "id": 1179, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true + "id": 1199, + "panels": [], + "title": "Chunks in Shards", + "type": "row" + }, + { + "default_title_for_rows": "Shard Name", + "description": "A chunk consists of a subset of sharded data.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "dataLinks": [] + "custom": { + "align": "left", + "displayMode": "auto", + "filterable": false, + "inspect": false }, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Total", - "color": "#C4162A", - "fill": 0, - "legend": false, - "stack": false - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "expr": "sum by (service_name) (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", - "hide": false, - "interval": "$interval", - "legendFormat": "{{service_name}}", - "refId": "A" + "mappings": [], + "noValue": "-", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red" + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Shard Name" }, - { - "expr": "sum by () (\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or max_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{cluster=\"$cluster\", state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{cluster=\"$cluster\", state=\"total_open\"}[5m])\n)", - "interval": "$interval", - "legendFormat": "Total", - "refId": "B" - } + "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": 72 + }, + "hide_headers": false, + "id": 1200, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" ], - "thresholds": [], - "timeRegions": [], - "title": "Mongos Cursors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true + "show": false + }, + "showHeader": true + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "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 }, - { - "format": "short", - "logBase": 1, - "show": false + "indexByName": {}, + "renameByName": { + "Value": "Chunks", + "shard": "Shard Name" } - ], - "yaxis": { - "align": false } } ], - "title": "Cursors Details", - "type": "row" - }, - { - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 96 - }, - "id": 1056, - "title": "Mongos Operations", - "type": "row" + "type": "table" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, - "decimals": 0, - "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", - "editable": true, - "error": false, + "decimals": 2, + "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": { "links": [ { "targetBlank": true, - "title": "MongoDB ReplSet Summary - ${__series.name}", + "title": "MongoDB ReplSet Summary", "url": "/graph/d/mongodb-replicaset-summary/mongodb-replset-summary?var-replset=${__series.name}&$__url_time_range" } ] }, "overrides": [] }, - "fill": 6, + "fill": 2, "fillGradient": 0, - "grid": {}, "gridPos": { "h": 8, - "w": 12, - "x": 0, - "y": 97 + "w": 18, + "x": 6, + "y": 72 }, "hiddenSeries": false, - "id": 30, + "id": 1201, "legend": { "alignAsTable": true, "avg": true, "current": false, - "hideEmpty": false, - "hideZero": false, "max": true, "min": true, - "rightSide": false, + "rightSide": true, "show": true, "sort": "avg", "sortDesc": true, @@ -3479,39 +2353,32 @@ }, "lines": true, "linewidth": 2, - "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, + "pluginVersion": "9.2.20", + "pointradius": 2, "points": false, "renderer": "flot", - "seriesOverrides": [ - {} - ], + "seriesOverrides": [], "spaceLength": 10, - "stack": true, + "stack": false, "steppedLine": false, "targets": [ { - "expr": "sum(sum(rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\"}[5m])) by (instance) * on (instance) \ngroup_right mongodb_mongod_replset_my_state{cluster=\"$cluster\"} / mongodb_mongod_replset_my_state{cluster=\"$cluster\"}) by (set)", - "format": "time_series", - "hide": false, + "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", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "refId": "A", - "step": 300 + "legendFormat": "{{shard}}", + "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Operations Per Shard", + "title": "Dynamic of Chunks", "tooltip": { - "msResolution": false, "shared": true, "sort": 5, "value_type": "individual" @@ -3525,10 +2392,9 @@ "yaxes": [ { "decimals": 2, - "format": "ops", - "label": "", + "format": "cps", "logBase": 1, - "min": 0, + "min": "0", "show": true }, { @@ -3543,13 +2409,11 @@ }, { "aliasColors": {}, - "bars": false, + "bars": true, "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Ops/sec, classified by legacy wire protocol type (query, insert, update, delete, getmore).", - "editable": true, - "error": false, + "description": "MongoDB migrates chunks in a sharded cluster to distribute the chunks of a sharded collection evenly among shards. ", "fieldConfig": { "defaults": { "links": [] @@ -3558,21 +2422,18 @@ }, "fill": 2, "fillGradient": 0, - "grid": {}, "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 97 + "h": 7, + "w": 24, + "x": 0, + "y": 80 }, "hiddenSeries": false, - "id": 46, - "interval": "", + "id": 1216, "legend": { "alignAsTable": true, "avg": true, "current": false, - "hideZero": true, "max": true, "min": true, "rightSide": false, @@ -3582,16 +2443,15 @@ "total": false, "values": true }, - "lines": true, + "lines": false, "linewidth": 2, - "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, + "pluginVersion": "9.2.20", + "pointradius": 2, "points": false, "renderer": "flot", "seriesOverrides": [], @@ -3600,24 +2460,20 @@ "steppedLine": false, "targets": [ { - "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=~\"$cluster\", type!=\"command\"}[5m]))", - "format": "time_series", - "hide": false, + "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", - "intervalFactor": 1, - "legendFormat": "{{type}}", - "refId": "J", - "step": 300 + "legendFormat": "{{event}}", + "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Total Mongos Operations", + "title": "Chunks Move Events", "tooltip": { - "msResolution": false, "shared": true, "sort": 5, - "value_type": "cumulative" + "value_type": "individual" }, "type": "graph", "xaxis": { @@ -3628,44 +2484,28 @@ "yaxes": [ { "decimals": 2, - "format": "ops", - "label": "", + "format": "short", "logBase": 1, - "min": 0, + "min": "0", "show": true }, { "format": "short", "logBase": 1, - "show": true + "show": false } ], "yaxis": { "align": false } }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 105 - }, - "id": 52, - "panels": [], - "title": "Operations Details", - "type": "row" - }, { "aliasColors": {}, - "bars": false, + "bars": true, "dashLength": 10, "dashes": false, "decimals": 2, - "description": "", - "editable": true, - "error": false, + "description": "MongoDB splits chunks when they grow beyond the configured chunk size. Both inserts and updates can trigger a chunk split.", "fieldConfig": { "defaults": { "links": [] @@ -3674,21 +2514,18 @@ }, "fill": 2, "fillGradient": 0, - "grid": {}, "gridPos": { "h": 7, "w": 24, "x": 0, - "y": 106 + "y": 87 }, "hiddenSeries": false, - "id": 53, - "interval": "", + "id": 1212, "legend": { "alignAsTable": true, "avg": true, "current": false, - "hideZero": true, "max": true, "min": true, "rightSide": false, @@ -3698,45 +2535,37 @@ "total": false, "values": true }, - "lines": true, + "lines": false, "linewidth": 2, - "links": [], - "maxPerRow": 2, "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, + "pluginVersion": "9.2.20", + "pointradius": 2, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "sum by (type) (rate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_op_counters_total{cluster=\"$cluster\", type!=\"command\",service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "hide": false, + "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", - "intervalFactor": 1, - "legendFormat": "{{type}}", - "refId": "J", - "step": 300 + "legendFormat": "{{event}}", + "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Operations $service_name", + "title": "Chunks Split Events", "tooltip": { - "msResolution": false, "shared": true, "sort": 5, - "value_type": "cumulative" + "value_type": "individual" }, "type": "graph", "xaxis": { @@ -3747,16 +2576,15 @@ "yaxes": [ { "decimals": 2, - "format": "ops", - "label": "", + "format": "short", "logBase": 1, - "min": 0, + "min": "0", "show": true }, { "format": "short", "logBase": 1, - "show": true + "show": false } ], "yaxis": { @@ -3769,11 +2597,11 @@ "h": 1, "w": 24, "x": 0, - "y": 113 + "y": 94 }, "id": 97, "panels": [], - "title": "Other", + "title": "Replication", "type": "row" }, { @@ -3802,7 +2630,7 @@ "h": 8, "w": 12, "x": 0, - "y": 114 + "y": 95 }, "hiddenSeries": false, "id": 14, @@ -3828,7 +2656,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3838,19 +2666,17 @@ "steppedLine": false, "targets": [ { - "expr": "max by (set) (max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[$interval]) > 0) by (service_name,set) or max(max_over_time(mongodb_mongod_replset_member_replication_lag{cluster=\"$cluster\",state!=\"ARBITER\"}[5m]) > 0) by (service_name,set))", - "format": "time_series", + "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, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{set}}", - "refId": "B", - "step": 300 + "legendFormat": "__auto", + "range": true, + "refId": "A" } ], "thresholds": [], "timeRegions": [], - "title": "Replication Lag by Set", + "title": "Replication Lag by Shard", "tooltip": { "msResolution": false, "shared": true, @@ -3908,7 +2734,7 @@ "h": 8, "w": 12, "x": 12, - "y": 114 + "y": 95 }, "hiddenSeries": false, "id": 27, @@ -3934,7 +2760,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3956,7 +2782,7 @@ ], "thresholds": [], "timeRegions": [], - "title": "Oplog Range by Set", + "title": "Oplog Range by Shard", "tooltip": { "msResolution": false, "shared": true, @@ -3986,101 +2812,10 @@ "yaxis": { "align": false } - }, - { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Count, over last 10 minutes, of all types of config db changelog events.", - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 122 - }, - "hiddenSeries": false, - "id": 1213, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "rate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[$interval]) or\nirate(mongodb_mongos_sharding_changelog_10min_total{cluster=\"$cluster\", event=~\".*(shard|Shard).*\"}[5m])", - "interval": "$interval", - "legendFormat": "{{event}}", - "refId": "A" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Change Log Events", - "tooltip": { - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } } ], - "refresh": "1m", - "schemaVersion": 34, + "refresh": false, + "schemaVersion": 37, "style": "dark", "tags": [ "MongoDB_HA", @@ -4148,127 +2883,19 @@ } ], "query": "1s,5s,1m,5m,1h,6h,1d", + "queryValue": "", "refresh": 2, "skipUrlSync": false, "type": "interval" }, - { - "allFormat": "glob", - "current": { - "selected": false, - "text": "mongodb_cluster", - "value": "mongodb_cluster" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up,cluster)", - "hide": 0, - "includeAll": false, - "label": "Cluster", - "multi": false, - "multiFormat": "glob", - "name": "cluster", - "options": [], - "query": { - "query": "label_values(mongodb_up,cluster)", - "refId": "Metrics-cluster-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)", - "hide": 2, - "includeAll": true, - "label": "Service Name", - "multi": true, - "name": "service_name", - "options": [], - "query": { - "query": "label_values(mongodb_up{cluster=\"$cluster\"},service_name)", - "refId": "Metrics-service_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", - "hide": 2, - "includeAll": true, - "label": "Shard Name", - "multi": true, - "name": "shard", - "options": [], - "query": { - "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", - "refId": "Metrics-shard-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", - "hide": 2, - "includeAll": true, - "label": "Node Name", - "multi": true, - "name": "node_name", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_name)", - "refId": "Metrics-node_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, { "current": { "selected": false, "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "hide": 2, + "hide": 0, "includeAll": true, "label": "Environment", "multi": true, @@ -4288,56 +2915,28 @@ "useTags": false }, { + "allFormat": "glob", "current": { "selected": false, - "text": "All", - "value": "$__all" + "text": "", + "value": "" }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "hide": 2, - "includeAll": true, - "label": "Replication Set", - "multi": true, - "name": "replication_set", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "multiFormat": "glob", + "name": "cluster", "options": [], "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "refId": "Metrics-replication_set-Variable-Query" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "hide": 2, - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": { - "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "refId": "Metrics-database-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", "type": "query", "useTags": false }, @@ -4347,19 +2946,18 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", + "definition": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", "hide": 2, "includeAll": true, - "label": "Type", + "label": "Shard Name", "multi": true, - "name": "node_type", + "name": "shard", "options": [], "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "refId": "Metrics-node_type-Variable-Query" + "query": "label_values(mongodb_mongos_db_collections_total{cluster=\"$cluster\"},shard)", + "refId": "Metrics-shard-Variable-Query" }, - "refresh": 1, + "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, @@ -4370,23 +2968,26 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", "hide": 2, "includeAll": true, - "label": "Type", + "label": "Replica Set", "multi": true, - "name": "service_type", + "name": "set", "options": [], "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "refId": "Metrics-service_type-Variable-Query" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "refId": "StandardVariableQuery" }, - "refresh": 1, + "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, @@ -4401,19 +3002,18 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", - "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", "hide": 2, "includeAll": true, - "label": "Username", + "label": "Node", "multi": true, - "name": "username", + "name": "service_name", "options": [], "query": { - "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "refId": "Metrics-username-Variable-Query" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$set\"}, service_name)", + "refId": "StandardVariableQuery" }, - "refresh": 1, + "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, @@ -4421,18 +3021,6 @@ "tagsQuery": "", "type": "query", "useTags": false - }, - { - "current": {}, - "hide": 2, - "includeAll": true, - "label": "Schema", - "multi": true, - "name": "schema", - "options": [], - "query": "", - "skipUrlSync": false, - "type": "custom" } ] }, @@ -4464,8 +3052,8 @@ "30d" ] }, - "timezone": "", - "title": "MongoDB Cluster Summary", + "timezone": "browser", + "title": "MongoDB Sharded Cluster Summary", "uid": "mongodb-cluster-summary", "version": 1, "weekStart": "" diff --git a/dashboards/Experimental/MongoDB_Collections_Overview.json b/dashboards/MongoDB/MongoDB_Collections_Overview.json similarity index 64% rename from dashboards/Experimental/MongoDB_Collections_Overview.json rename to dashboards/MongoDB/MongoDB_Collections_Overview.json index 4f3a2f35cf..42a4b684a8 100644 --- a/dashboards/Experimental/MongoDB_Collections_Overview.json +++ b/dashboards/MongoDB/MongoDB_Collections_Overview.json @@ -42,47 +42,45 @@ "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, - "iteration": 1659441366721, "links": [ { - "asDropdown": false, "icon": "doc", "includeVars": true, "keepTime": true, - "tags": [], + "tags": [ + "Home" + ], "targetBlank": false, "title": "Home", - "tooltip": "", "type": "link", "url": "/graph/d/pmm-home/home-dashboard" }, { - "asDropdown": false, "icon": "dashboard", "includeVars": true, "keepTime": true, - "tags": [], + "tags": [ + "Query Analytics" + ], "targetBlank": false, "title": "Query Analytics", - "tooltip": "", "type": "link", "url": "/graph/d/pmm-qan/pmm-query-analytics" }, { - "asDropdown": false, "icon": "bolt", "includeVars": true, "keepTime": true, - "tags": [], + "tags": [ + "Compare" + ], "targetBlank": false, "title": "Compare", - "tooltip": "", "type": "link", "url": "/graph/d/mongodb-instance-compare/mongodb-instances-compare" }, { "asDropdown": true, - "icon": "external link", "includeVars": true, "keepTime": true, "tags": [ @@ -90,13 +88,10 @@ ], "targetBlank": false, "title": "MongoDB", - "tooltip": "", - "type": "dashboards", - "url": "" + "type": "dashboards" }, { "asDropdown": true, - "icon": "external link", "includeVars": true, "keepTime": true, "tags": [ @@ -104,13 +99,10 @@ ], "targetBlank": false, "title": "HA", - "tooltip": "", - "type": "dashboards", - "url": "" + "type": "dashboards" }, { "asDropdown": true, - "icon": "external link", "includeVars": false, "keepTime": true, "tags": [ @@ -118,21 +110,18 @@ ], "targetBlank": false, "title": "Services", - "tooltip": "", - "type": "dashboards", - "url": "" + "type": "dashboards" }, { "asDropdown": true, - "icon": "external link", "includeVars": false, "keepTime": true, - "tags": [], + "tags": [ + "PMM" + ], "targetBlank": false, "title": "PMM", - "tooltip": "", - "type": "dashboards", - "url": "" + "type": "dashboards" } ], "liveNow": false, @@ -151,57 +140,21 @@ "type": "row" }, { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, "description": "Provides the names and sizes of the 5 largest databases in an instance/cluster. Data showing only from Primary node in replica set.", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "decmbytes" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { "h": 8, @@ -209,24 +162,40 @@ "x": 0, "y": 1 }, + "hiddenSeries": false, "id": 31, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "last" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { - "datasource": "Metrics", "exemplar": true, "expr": "avg by (database) (topk(5, mongodb_dbstats_dataSize{rs_state=\"1\",cluster=~\"$cluster\"})/1024/1024)", "interval": "$interval", @@ -234,16 +203,53 @@ "refId": "A" } ], + "thresholds": [], + "timeRegions": [], "title": "Top 5 Databases By Size", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "decmbytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { - "datasource": "Metrics", "description": "Provides the number of collections in the selected databases", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "mappings": [], "thresholds": { @@ -283,14 +289,16 @@ }, "textMode": "auto" }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "count(mongodb_top_commands_time{database=~\"$database\"})", + "expr": "count(mongodb_top_commands_time{database=~\"$database\",service_name=~\"$service_name\"})", "interval": "$interval", "legendFormat": "", + "range": true, "refId": "A" } ], @@ -298,12 +306,12 @@ "type": "stat" }, { - "datasource": "Metrics", "description": "Provides the number of indexes in the selected databases", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "mappings": [], "thresholds": { @@ -343,14 +351,16 @@ }, "textMode": "auto" }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum(mongodb_dbstats_indexes{database=~\"$database\"})", + "expr": "sum(mongodb_dbstats_indexes{database=~\"$database\",service_name=~\"$service_name\"})", "interval": "$interval", "legendFormat": "", + "range": true, "refId": "A" } ], @@ -358,286 +368,328 @@ "type": "stat" }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "Average size of each document in bytes. dataSize divided by number of documents", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { - "h": 9, - "w": 12, + "h": 8, + "w": 24, "x": 0, "y": 12 }, + "hiddenSeries": false, "id": 37, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, - "pluginVersion": "8.3.5", + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum(mongodb_dbstats_avgObjSize{database=~\"$database\"})", + "expr": "sum(mongodb_dbstats_avgObjSize{ service_name=~\"$service_name\", database=~\"$database\"})", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "$database", + "legendFormat": "{{database}}", + "range": true, "refId": "A", "step": 300 } ], + "thresholds": [], + "timeRegions": [], "title": "Avg Object Size in Database ($database)", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "decmbytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "Total size of all indexes in a given database", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 12 + "h": 8, + "w": 24, + "x": 0, + "y": 20 }, + "hiddenSeries": false, "id": 39, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, - "pluginVersion": "8.3.5", + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum(mongodb_dbstats_indexSize{database=~\"$database\"})", + "expr": "sum(mongodb_dbstats_indexSize{database=~\"$database\", service_name=~\"$service_name\"})", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "$database", + "legendFormat": "{{database}}", + "range": true, "refId": "A", "step": 300 } ], + "thresholds": [], + "timeRegions": [], "title": "Index Size in Database ($database)", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "decmbytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "Total size of uncompressed data in a database in bytes. May be larger than storageSize due to WT compression. ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 20, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": 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", - "value": null - } - ] - }, - "unit": "none" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { - "h": 7, + "h": 8, "w": 24, "x": 0, - "y": 21 + "y": 28 }, + "hiddenSeries": false, "id": 41, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "mean", - "max", - "min" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, - "pluginVersion": "8.3.5", + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum(mongodb_dbstats_dataSize{database=~\"$database\"})", + "expr": "sum(mongodb_dbstats_dataSize{database=~\"$database\",service_name=~\"$service_name\"})", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "$database", + "legendFormat": "{{database}}", + "range": true, "refId": "A", "step": 300 } ], + "thresholds": [], + "timeRegions": [], "title": "Data Size for Database ($database)", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "decmbytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { "collapsed": false, @@ -646,7 +698,7 @@ "h": 1, "w": 24, "x": 0, - "y": 28 + "y": 36 }, "id": 16, "panels": [], @@ -660,7 +712,6 @@ "type": "row" }, { - "datasource": "Metrics", "description": "Show summary information on the top 5 collections that are most frequently read.", "fieldConfig": { "defaults": { @@ -678,8 +729,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -718,7 +768,7 @@ "h": 7, "w": 12, "x": 0, - "y": 29 + "y": 37 }, "id": 3, "links": [], @@ -732,12 +782,13 @@ }, "showHeader": true }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": false, - "expr": "topk (5,sum by (collection) (mongodb_top_queries_count))", + "expr": "topk (5,sum by (database, collection) (mongodb_top_queries_count{database =~ \"$database\",service_name=~\"$service_name\"}))", "format": "table", "hide": false, "instant": true, @@ -755,8 +806,9 @@ "options": { "include": { "names": [ - "collection", - "Value" + "Value", + "database", + "collection" ] } } @@ -767,12 +819,23 @@ "regex": "(.*)", "renamePattern": "$1" } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Value": 2, + "collection": 1, + "database": 0 + }, + "renameByName": {} + } } ], "type": "table" }, { - "datasource": "Metrics", "description": "Show summary information on the top 5 collections that are most frequently written to (insert, update, delete, etc.).", "fieldConfig": { "defaults": { @@ -790,8 +853,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -841,7 +903,7 @@ "h": 7, "w": 12, "x": 12, - "y": 29 + "y": 37 }, "id": 19, "links": [], @@ -861,13 +923,14 @@ } ] }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "repeatDirection": "v", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": false, - "expr": "topk(5,sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_remove_count)+sum by (collection) (mongodb_top_update_count))", + "expr": "topk(5,sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_remove_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (database,collection) (mongodb_top_update_count{database =~ \"$database\",service_name=~\"$service_name\"}))", "format": "table", "hide": false, "instant": true, @@ -886,7 +949,8 @@ "include": { "names": [ "collection", - "Value" + "Value", + "database" ] } } @@ -896,25 +960,36 @@ "options": { "reducers": [] } + }, + { + "id": "organize", + "options": { + "excludeByName": {}, + "indexByName": { + "Value": 2, + "collection": 1, + "database": 0 + }, + "renameByName": {} + } } ], "type": "table" }, { - "datasource": "Metrics", "description": "Show the 5 collections that are most frequently read.", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -925,7 +1000,7 @@ "h": 7, "w": 12, "x": 0, - "y": 36 + "y": 44 }, "id": 24, "links": [], @@ -944,19 +1019,20 @@ "showUnfilled": true, "text": {} }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "repeatDirection": "v", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": false, - "expr": "topk (5, rate(sum by (collection) (mongodb_top_queries_count)[$interval]))", + "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_queries_count{database =~ \"$database\",service_name=~\"$service_name\"})[$interval]))", "format": "time_series", "hide": false, "instant": true, "interval": "", "intervalFactor": 1, - "legendFormat": "{{collection}}", + "legendFormat": "{{ database }}.{{ collection }}", "refId": "A", "step": 10 } @@ -966,20 +1042,19 @@ "type": "bargauge" }, { - "datasource": "Metrics", "description": "Show the 5 collections that are most frequently written to (insert, update, delete, etc.).", "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "fixedColor": "blue", + "mode": "fixed" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -990,7 +1065,7 @@ "h": 7, "w": 12, "x": 12, - "y": 36 + "y": 44 }, "id": 20, "links": [], @@ -1009,19 +1084,20 @@ "showUnfilled": true, "text": {} }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "repeatDirection": "v", "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": false, - "expr": "topk (5, rate(sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_insert_count)+sum by (collection) (mongodb_top_remove_count)+sum by (collection) (mongodb_top_update_count)))", + "expr": "topk (5, rate(sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_insert_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_remove_count{database =~ \"$database\",service_name=~\"$service_name\"})+sum by (environment, cluster, database, collection) (mongodb_top_update_count{database =~ \"$database\",service_name=~\"$service_name\"})))", "format": "time_series", "hide": false, "instant": true, "interval": "", "intervalFactor": 2, - "legendFormat": "{{database}}", + "legendFormat": "{{ database }}.{{ collection }}", "refId": "A", "step": 10 } @@ -1037,7 +1113,7 @@ "h": 1, "w": 24, "x": 0, - "y": 43 + "y": 51 }, "id": 12, "panels": [], @@ -1051,287 +1127,328 @@ "type": "row" }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "Provides information on the rate of activity against the database then breaks down into activity type over the selected time period", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "short" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { "h": 8, "w": 24, "x": 0, - "y": 44 + "y": 52 }, + "hiddenSeries": false, "id": 8, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, - "pluginVersion": "8.3.5", - "repeat": "Database", + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", "repeatDirection": "v", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "rate(sum by (database) (mongodb_top_commands_count {database=~\"$database\"}[$interval]))", + "expr": "rate(sum by (database) (mongodb_top_commands_count{database=~\"$database\",service_name=~\"$service_name\"}[$interval]))", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 2, - "legendFormat": "Commands", + "legendFormat": "Commands - {{database}}", "refId": "A", "step": 10 }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "rate(sum by (database) (mongodb_top_insert_count {database=~\"$database\"}[$interval]))", + "expr": "rate(sum by (database) (mongodb_top_insert_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval]))", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 2, - "legendFormat": "Insert", + "legendFormat": "Insert - {{database}}", "refId": "B", "step": 10 }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "rate(sum by (database) (mongodb_top_update_count {database=~\"$database\"}[$interval]))", + "expr": "rate(sum by (database) (mongodb_top_update_count {database=~\"$database\", service_name=~\"$service_name\"}[$interval]))", "format": "time_series", "hide": false, "instant": false, "interval": "", - "legendFormat": "Update", + "legendFormat": "Update - {{database}}", "refId": "C" }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "rate(sum by (database) (mongodb_top_remove_count {database=~\"$database\"}[$interval]))", + "expr": "rate(sum by (database) (mongodb_top_remove_count {database=~\"$database\", service_name=~\"$service_name\"}[$interval]))", "format": "time_series", "hide": false, "instant": false, "interval": "", - "legendFormat": "Remove", + "legendFormat": "Remove - {{database}}", "refId": "D" }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "rate(sum by (database) (mongodb_top_getmore_count {database=~\"$database\"}[$interval]))", + "expr": "rate(sum by (database) (mongodb_top_getmore_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval]))", "hide": false, "interval": "", - "legendFormat": "Getmore", + "legendFormat": "Getmore - {{database}}", + "range": true, "refId": "E" } ], + "thresholds": [], + "timeRegions": [], "title": "Collections statistics for $database (rate)", - "transformations": [], - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "Provides summary information on the activity running against the database then breaks down into activity type over the selected time period", + "editable": true, + "error": false, "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 10, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "never", - "spanNulls": true, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, "unit": "short" }, "overrides": [] }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, "gridPos": { "h": 8, "w": 24, "x": 0, - "y": 52 + "y": 60 }, + "hiddenSeries": false, "id": 25, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, - "pluginVersion": "8.3.5", + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", "repeatDirection": "v", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum by (database) (mongodb_top_commands_count {database=~\"$database\"}[$interval])", + "expr": "sum by (database) (mongodb_top_commands_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 2, - "legendFormat": "Commands", + "legendFormat": "Commands - {{database}}", "refId": "A", "step": 10 }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum by (database) (mongodb_top_insert_count {database=~\"$database\"}[$interval])", + "expr": "sum by (database) (mongodb_top_insert_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", "intervalFactor": 2, - "legendFormat": "Insert", + "legendFormat": "Insert - {{database}}", "refId": "B", "step": 10 }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum by (database) (mongodb_top_update_count {database=~\"$database\"}[$interval])", + "expr": "sum by (database) (mongodb_top_update_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", - "legendFormat": "Update", + "legendFormat": "Update - {{database}}", "refId": "C" }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum by (database) (mongodb_top_remove_count {database=~\"$database\"}[$interval])", + "expr": "sum by (database) (mongodb_top_remove_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])", "format": "time_series", "hide": false, "instant": false, "interval": "", - "legendFormat": "Remove", + "legendFormat": "Remove - {{database}}", "refId": "D" }, { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "sum by (database) (mongodb_top_getmore_count {database=~\"$database\"}[$interval])", + "expr": "sum by (database) (mongodb_top_getmore_count {database=~\"$database\",service_name=~\"$service_name\"}[$interval])", "hide": false, "interval": "", - "legendFormat": "Getmore", + "legendFormat": "Getmore - {{database}}", + "range": true, "refId": "E" } ], + "thresholds": [], + "timeRegions": [], "title": "Collections statistics for $database (summary)", - "transformations": [], - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { "datasource": "Metrics", @@ -1352,8 +1469,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] }, @@ -1444,7 +1560,7 @@ "h": 7, "w": 24, "x": 0, - "y": 60 + "y": 68 }, "id": 27, "options": { @@ -1463,7 +1579,7 @@ } ] }, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "repeat": "database", "repeatDirection": "v", "targets": [ @@ -1549,11 +1665,11 @@ } ], "refresh": "1m", - "schemaVersion": 34, + "schemaVersion": 37, "style": "dark", "tags": [ "Percona", - "MongoDB_HA" + "MongoDB" ], "templating": { "list": [ @@ -1620,9 +1736,13 @@ { "allValue": ".*", "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, "definition": "label_values({__name__=~\"mongodb_up\"}, environment)", "hide": 0, @@ -1644,11 +1764,14 @@ { "allValue": ".*", "current": { - "selected": false, - "text": "", - "value": "" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)", "hide": 0, "includeAll": true, @@ -1673,7 +1796,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)", "hide": 2, "includeAll": true, @@ -1693,20 +1815,23 @@ }, { "current": { - "selected": false, - "text": "", - "value": "" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", + "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", "hide": 0, - "includeAll": false, - "label": "Service Name", + "includeAll": true, + "label": "Replication Set", "multi": true, - "name": "service_name", + "name": "replication_set", "options": [], "query": { - "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", + "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", "refId": "StandardVariableQuery" }, "refresh": 2, @@ -1717,21 +1842,23 @@ }, { "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", - "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", + "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replication_set\"}, service_name)", "hide": 0, - "includeAll": false, - "label": "Replication Set", + "includeAll": true, + "label": "MongoDB Node", "multi": true, - "name": "replication_set", + "name": "service_name", "options": [], "query": { - "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", + "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\",replication_set=~\"$replication_set\"}, service_name)", "refId": "StandardVariableQuery" }, "refresh": 2, @@ -1742,21 +1869,23 @@ }, { "current": { - "isNone": true, - "selected": false, - "text": "None", - "value": "" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", - "definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)", + "definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\",service_name=~\"$service_name\"}, database)", "hide": 0, - "includeAll": false, + "includeAll": true, "label": "Database", "multi": true, "name": "database", "options": [], "query": { - "query": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)", + "query": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\",service_name=~\"$service_name\"}, database)", "refId": "StandardVariableQuery" }, "refresh": 2, @@ -1770,12 +1899,10 @@ }, { "current": { - "isNone": true, "selected": false, - "text": "None", + "text": "", "value": "" }, - "datasource": "Metrics", "definition": "label_values(mongodb_top_commands_count{database=~\"$database\"}, collection)", "hide": 2, "includeAll": false, @@ -1808,15 +1935,12 @@ "notice": false, "now": true, "refresh_intervals": [ + "1s", "5s", - "10s", - "30s", "1m", "5m", - "15m", - "30m", "1h", - "2h", + "6h", "1d" ], "status": "Stable", @@ -1833,7 +1957,7 @@ ], "type": "timepicker" }, - "timezone": "", + "timezone": "browser", "title": "MongoDB Collections Overview", "uid": "mongodb-collections-overview", "version": 1, diff --git a/dashboards/MongoDB/MongoDB_MMAPv1_Details.json b/dashboards/MongoDB/MongoDB_MMAPv1_Details.json index a3b886726b..54b35d9942 100644 --- a/dashboards/MongoDB/MongoDB_MMAPv1_Details.json +++ b/dashboards/MongoDB/MongoDB_MMAPv1_Details.json @@ -3404,7 +3404,6 @@ "schemaVersion": 34, "style": "dark", "tags": [ - "MongoDB", "Percona" ], "templating": { diff --git a/dashboards/Experimental/MongoDB_Oplog_Details.json b/dashboards/MongoDB/MongoDB_Oplog_Details.json similarity index 87% rename from dashboards/Experimental/MongoDB_Oplog_Details.json rename to dashboards/MongoDB/MongoDB_Oplog_Details.json index 146196bfc9..463e5c0924 100644 --- a/dashboards/Experimental/MongoDB_Oplog_Details.json +++ b/dashboards/MongoDB/MongoDB_Oplog_Details.json @@ -142,7 +142,7 @@ "panels": [ { "collapsed": false, - "datasource": "Metrics", + "datasource": "Metrics", "gridPos": { "h": 1, "w": 24, @@ -165,7 +165,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "This panel provides details about your recovery window over a time interval based on your oplog activities. It coordinates with replication and backup activities.", "editable": true, @@ -218,7 +218,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -281,7 +281,6 @@ ], "yaxes": [ { - "$$hashKey": "object:1859", "decimals": 2, "format": "s", "label": "", @@ -290,7 +289,6 @@ "show": true }, { - "$$hashKey": "object:1860", "format": "s", "logBase": 1, "show": true @@ -302,12 +300,12 @@ }, { "collapsed": false, - "datasource": "Metrics", + "datasource": "Metrics", "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 73 + "y": 41 }, "id": 1070, "panels": [], @@ -325,7 +323,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "Repl buffer ops applied per sec.", "editable": true, @@ -353,7 +351,7 @@ "h": 8, "w": 12, "x": 0, - "y": 74 + "y": 42 }, "hiddenSeries": false, "id": 85, @@ -379,7 +377,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -421,7 +419,6 @@ ], "yaxes": [ { - "$$hashKey": "object:1943", "decimals": 2, "format": "ops", "label": "", @@ -430,7 +427,6 @@ "show": true }, { - "$$hashKey": "object:1944", "format": "short", "logBase": 1, "show": false @@ -445,7 +441,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "Provides information related to the number of getmore commands erlated to the local db oplog.rs collection", "editable": true, @@ -473,7 +469,7 @@ "h": 8, "w": 12, "x": 12, - "y": 74 + "y": 42 }, "hiddenSeries": false, "id": 79, @@ -499,7 +495,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -541,7 +537,6 @@ ], "yaxes": [ { - "$$hashKey": "object:140", "decimals": 2, "format": "ms", "label": "", @@ -550,7 +545,6 @@ "show": true }, { - "$$hashKey": "object:141", "format": "short", "logBase": 1, "show": false @@ -565,7 +559,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "Times spent per second A) pre-loading oplog ops into parallel-executable batches B) Times spent pre-loading index values and C) repl batch apply phase.", "editable": true, @@ -593,7 +587,7 @@ "h": 8, "w": 24, "x": 0, - "y": 82 + "y": 50 }, "hiddenSeries": false, "id": 84, @@ -618,7 +612,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -682,7 +676,6 @@ ], "yaxes": [ { - "$$hashKey": "object:216", "decimals": 2, "format": "ms", "label": "", @@ -691,7 +684,6 @@ "show": true }, { - "$$hashKey": "object:217", "format": "short", "logBase": 1, "show": false @@ -706,7 +698,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "Provides info on the current usage and actual size of the replication buffer as defined by the maximum oplog size", "editable": true, @@ -734,7 +726,7 @@ "h": 8, "w": 24, "x": 0, - "y": 154 + "y": 90 }, "hiddenSeries": false, "id": 80, @@ -759,7 +751,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -818,7 +810,6 @@ ], "yaxes": [ { - "$$hashKey": "object:288", "decimals": 2, "format": "bytes", "label": "", @@ -827,7 +818,6 @@ "show": true }, { - "$$hashKey": "object:289", "format": "short", "logBase": 1, "show": false @@ -842,7 +832,7 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "Metrics", + "datasource": "Metrics", "decimals": 2, "description": "Provides information on the number of write operations recorded in the oplog collection over a period of time", "editable": true, @@ -870,7 +860,7 @@ "h": 8, "w": 24, "x": 0, - "y": 226 + "y": 130 }, "hiddenSeries": false, "id": 81, @@ -895,7 +885,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "9.1.2", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -959,7 +949,6 @@ ], "yaxes": [ { - "$$hashKey": "object:364", "decimals": 2, "format": "ops", "label": "", @@ -968,7 +957,6 @@ "show": true }, { - "$$hashKey": "object:365", "format": "short", "logBase": 1, "show": false @@ -980,12 +968,12 @@ }, { "collapsed": false, - "datasource": "Metrics", + "datasource": "Metrics", "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 298 + "y": 170 }, "id": 1551, "panels": [], @@ -999,166 +987,174 @@ "type": "row" }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, "description": "The average amount of data in GB that the PRIMARY generate per hour", - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - } - ] - }, - "unit": "bytes" - }, - "overrides": [] + "editable": true, + "error": false, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 }, "gridPos": { - "h": 10, + "h": 8, "w": 24, "x": 0, - "y": 299 + "y": 171 }, + "hiddenSeries": false, "id": 1549, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", + "editorMode": "code", "exemplar": true, - "expr": "avg by (service_name) (rate(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{rs_state=\"1\"})[$interval])", + "expr": "avg by (service_name) (rate(mongodb_oplog_stats_wt_cache_bytes_written_from_cache{rs_state=\"1\",service_name=~\"$service_name\"})[$interval])", "interval": "$interval", "legendFormat": "{{service_name}}", + "range": true, "refId": "A" } ], + "thresholds": [], + "timeRegions": [], "title": "Oplog GB/Hour", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { - "datasource": "Metrics", + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": "Metrics", + "decimals": 2, "description": "Provides information about the contents of your oplog. The difference between the first and latest entries provides info data regarding which operations can possibly be repeated if necessary. ", + "editable": true, + "error": false, "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "hour" + "unit": "h" }, "overrides": [] }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, "gridPos": { - "h": 11, + "h": 8, "w": 24, "x": 0, - "y": 309 + "y": 211 }, + "hiddenSeries": false, "id": 1553, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", "options": { - "legend": { - "calcs": [ - "lastNotNull" - ], - "displayMode": "table", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "alertThreshold": true }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "repeat": "service_name", + "repeatDirection": "h", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, "targets": [ { "datasource": "Metrics", @@ -1169,8 +1165,45 @@ "refId": "A" } ], + "thresholds": [], + "timeRegions": [], "title": "Oplog Window", - "type": "timeseries" + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "ms", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "h", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } } ], "refresh": "", @@ -1178,7 +1211,7 @@ "style": "dark", "tags": [ "Percona", - "MongoDB_HA" + "MongoDB" ], "templating": { "list": [ @@ -1254,7 +1287,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", "hide": 0, "includeAll": true, @@ -1283,7 +1315,6 @@ "text": "", "value": "" }, - "datasource": "Metrics", "definition": "label_values(mongodb_up{environment=~\"$environment\"},cluster)", "hide": 0, "includeAll": false, @@ -1306,15 +1337,13 @@ { "allFormat": "glob", "current": { - "isNone": true, "selected": false, - "text": "None", - "value": "" + "text": "All", + "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", "hide": 0, - "includeAll": false, + "includeAll": true, "label": "Replica Set", "multi": true, "multiFormat": "glob", @@ -1338,9 +1367,8 @@ "text": "", "value": "" }, - "datasource": "Metrics", "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\"}, node_name)", - "hide": 0, + "hide": 2, "includeAll": false, "label": "Node Name", "multi": true, @@ -1366,17 +1394,16 @@ "text": "", "value": "" }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$replset\"}, service_name)", "hide": 0, "includeAll": false, - "label": "Service Name", - "multi": true, + "label": "MongoDB Node", + "multi": false, "multiFormat": "glob", "name": "service_name", "options": [], "query": { - "query": "label_values(mongodb_up{environment=~\"$environment\",cluster=~\"$cluster\",node_name=~\"$node_name\"}, service_name)", + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$replset\"}, service_name)", "refId": "StandardVariableQuery" }, "refresh": 2, @@ -1389,15 +1416,13 @@ }, { "current": { - "isNone": true, "selected": false, - "text": "None", - "value": "" + "text": "All", + "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", "hide": 2, - "includeAll": false, + "includeAll": true, "label": "Replication Set", "multi": true, "name": "replication_set", @@ -1417,12 +1442,10 @@ }, { "current": { - "isNone": true, "selected": false, - "text": "None", + "text": "", "value": "" }, - "datasource": "Metrics", "definition": "label_values(mongodb_top_commands_count{cluster=~\"$cluster\"}, database)", "hide": 2, "includeAll": false, @@ -1449,7 +1472,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", "hide": 2, "includeAll": true, @@ -1476,7 +1498,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", "hide": 2, "includeAll": true, @@ -1503,7 +1524,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", "hide": 2, "includeAll": true, @@ -1530,7 +1550,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", "hide": 2, "includeAll": true, @@ -1555,12 +1574,10 @@ "allFormat": "blob", "allValue": ".*", "current": { - "isNone": true, "selected": false, - "text": "None", + "text": "", "value": "" }, - "datasource": "Metrics", "definition": "label_values(mongodb_mongod_replset_my_state{set=~\"$replset\"},cluster)", "hide": 2, "includeAll": false, @@ -1571,7 +1588,7 @@ "options": [], "query": { "query": "label_values(mongodb_mongod_replset_my_state{set=~\"$replset\"},cluster)", - "refId": "Metrics-current_cluster-Variable-Query" + "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", @@ -1586,7 +1603,6 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", "definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)", "hide": 2, "includeAll": true, @@ -1620,15 +1636,12 @@ "notice": false, "now": true, "refresh_intervals": [ + "1s", "5s", - "10s", - "30s", "1m", "5m", - "15m", - "30m", "1h", - "2h", + "6h", "1d" ], "status": "Stable", @@ -1645,7 +1658,7 @@ ], "type": "timepicker" }, - "timezone": "", + "timezone": "browser", "title": "MongoDB Oplog Details", "uid": "mongodb-oplog-details", "version": 1, diff --git a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json index 066e4ccc3d..ba98b88ae8 100644 --- a/dashboards/MongoDB/MongoDB_ReplSet_Summary.json +++ b/dashboards/MongoDB/MongoDB_ReplSet_Summary.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": false, "iconColor": "#e0752d", @@ -28,7 +31,10 @@ }, { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "#6ed0e0", @@ -50,7 +56,6 @@ "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, - "iteration": 1656496368829, "links": [ { "icon": "doc", @@ -143,54 +148,134 @@ "x": 0, "y": 0 }, - "id": 1022, + "id": 1030, "panels": [], - "title": "Overview", + "repeat": "service_name", + "repeatDirection": "h", + "title": "Overview - $service_name", "type": "row" }, { - "description": "", + "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" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "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" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, "gridPos": { - "h": 3, - "w": 5, + "h": 4, + "w": 2, "x": 0, "y": 1 }, - "id": 1228, - "links": [], + "id": 1586, "options": { - "content": "
$cluster
", - "mode": "html" + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "value" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "mysql_global_variables_innodb_buffer_pool_size{service_name=~\"$service_name\"} ", - "format": "time_series", + "editorMode": "code", + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "legendFormat": "{{set}}", + "range": true, + "refId": "A" } ], - "title": "Cluster Name", - "type": "text" + "title": "State", + "type": "stat" }, { - "description": "This shows how many members are configured in the replica set.", + "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": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" + "mode": "thresholds" }, - "decimals": 0, + "links": [], "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -204,25 +289,156 @@ } ] }, - "unit": "none" + "unit": "percent" }, - "overrides": [] + "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": 3, - "w": 4, - "x": 5, + "h": 4, + "w": 2.5, + "x": 2, "y": 1 }, - "hideTimeOverride": false, - "id": 59, + "id": 1071, "links": [], - "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -230,36 +446,36 @@ "fields": "", "values": false }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "count by (set) (group by (service_name, set) (mongodb_mongod_replset_number_of_members{cluster=~\"$cluster\",set=~\"$replset\"} or mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=~\"$replset\"}))", - "interval": "5m", + "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": "", - "metric": "", - "refId": "A", - "step": 300 + "legendFormat": "{{ mode }}", + "range": true, + "refId": "B" } ], - "title": "ReplSet Members", - "type": "stat" + "title": "CPU Usage", + "type": "gauge" }, { - "description": "This shows the time since the last election.", + "description": "Estimated how much memory can be used without swapping", "fieldConfig": { "defaults": { "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" + "mode": "thresholds" }, - "decimals": 2, + "links": [], "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -273,25 +489,20 @@ } ] }, - "unit": "s" + "unit": "percentunit" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 9, + "h": 4, + "w": 2.5, + "x": 4.5, "y": 1 }, - "hideTimeOverride": false, - "id": 1227, + "id": 1060, "links": [], - "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -299,36 +510,37 @@ "fields": "", "values": false }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "expr": "time() - max(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"})", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "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": "ReplSet Last Election", - "type": "stat" + "title": "Memory Used", + "type": "gauge" }, { - "description": "This panel shows how far behind in replication this member is if it is a secondary. This number may be high it the instance is running as a delayed secondary member.", + "description": "Shows disk Utilization as a percentage of the time when there was at least one IO request in flight. It is designed to match utilization available in iostat tool. The graph augments the IO latency and Disk Load Graphs, allowing to determine if the disk load was evenly distributed in time or consuming the IO momentarily. Higher utilization increases the likeliness of IO queuing. Always consider this metric along with response time and IO queue depth.", "fieldConfig": { "defaults": { "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" + "mode": "thresholds" }, - "decimals": 2, + "decimals": 1, + "links": [], "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -342,25 +554,20 @@ } ] }, - "unit": "s" + "unit": "percentunit" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 13, + "h": 4, + "w": 2.5, + "x": 7, "y": 1 }, - "hideTimeOverride": true, - "id": 77, + "id": 1073, "links": [], - "maxDataPoints": 100, "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", + "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" @@ -368,229 +575,104 @@ "fields": "", "values": false }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "showThresholdLabels": false, + "showThresholdMarkers": true }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { - "datasource": "Metrics", - "exemplar": false, - "expr": "avg by (set) (max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$service_name\"}[${__range}]))", - "format": "time_series", - "hide": false, - "instant": true, + "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": "", + "legendFormat": "{{ node_name }}", + "range": true, "refId": "B" } ], - "timeFrom": "1m", - "title": "Avg ReplSet Lag", - "type": "stat" + "title": "Disk IO Utilization", + "type": "gauge" }, { - "columns": [], - "description": "", - "fontSize": "100%", - "gridPos": { - "h": 11, - "w": 7, - "x": 17, - "y": 1 - }, - "hideTimeOverride": true, - "id": 78, - "links": [], - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "align": "auto", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Service Name", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "link": true, - "linkTargetBlank": true, - "linkTooltip": "MongoDB Instance Summary - ${__cell}", - "linkUrl": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__cell}", - "mappingType": 1, - "pattern": "service_name", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Version", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "mongodb", - "thresholds": [], - "type": "string", - "unit": "short" + "description": "Shows information about the disk space usage of the specified mountpoint.\n\n**Used** is the amount of space used.\n\n**Free** is the amount of space not in use.\n\n**Used+Free** is the total disk space allocated to the mountpoint.\n\nHaving *Free* close to 0 B is not good because of the risk to have a “disk full” error that can block one of the services or even cause a crash of the entire system.\n\nIn case Free is close to 0 B consider to remove unused files or to expand the space allocated to the mountpoint.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" }, - { - "alias": "", - "align": "auto", - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2.5, + "x": 9.5, + "y": 1 + }, + "id": 1062, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 2, - "mappingType": 1, - "pattern": "Value", - "thresholds": [], - "type": "hidden", - "unit": "short" - } - ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "repeatDirection": "h", "targets": [ { - "datasource": "Metrics", - "exemplar": false, - "expr": "avg by (service_name,engine) (mongodb_mongod_storage_engine{service_name=~\"$service_name\"})", - "format": "table", - "hide": true, - "instant": true, - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "{{ engine }}", - "metric": "", - "refId": "A", - "step": 300 + "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" }, { - "datasource": "Metrics", - "exemplar": false, - "expr": "avg by (service_name,mongodb) (mongodb_version_info{service_name=~\"$service_name\"})", - "format": "table", - "instant": true, - "interval": "5m", - "legendFormat": "{{mongodb}}", - "refId": "B" + "editorMode": "code", + "expr": "avg(mongodb_dbstats_fsUsedSize{service_name=~\"$service_name\"})", + "hide": true, + "interval": "$interval", + "legendFormat": "Usage", + "range": true, + "refId": "C" } ], - "timeFrom": "1m", - "title": "MongoDB Versions", - "transform": "table", - "type": "table-old" + "title": "Disk Space Utilization", + "type": "gauge" }, { - "id": null, - "gridPos": { - "h": 8, - "w": 17, - "x": 0, - "y": 4 - }, - "type": "state-timeline", - "title": "ReplSet States", - "transformations": [], - "pluginVersion": "6.5.1", - "description": "ReplSet statuses during the select time range.", + "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": { - "custom": { - "lineWidth": 0, - "fillOpacity": 100, - "spanNulls": false - }, "color": { - "mode": "palette-classic", - "fixedColor": "blue" + "fixedColor": "blue", + "mode": "fixed" }, - "mappings": [ - { - "type": "value", - "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" - }, - "6": { - "index": 8, - "text": "UNKNOWN" - }, - "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": "range", - "options": { - "from": 0, - "to": 1, - "result": { - "index": 0, - "text": "N/A" - } - } - } - ], + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ @@ -600,335 +682,459 @@ }, { "color": "red", - "value": 6 + "value": 80 } ] - }, - "unit": "short" + } }, "overrides": [] }, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 1 + }, + "id": 1076, + "links": [], "options": { - "mergeValues": true, - "showValue": "auto", - "alignValue": "right", - "rowHeight": 0.9, - "legend": { - "showLegend": true, - "displayMode": "list", - "placement": "bottom" + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "mode": "single", - "sort": "none" - } + "textMode": "auto" }, + "pluginVersion": "9.2.20", "targets": [ { + "calculatedInterval": "2m", + "datasourceErrors": {}, "editorMode": "code", - "exemplar": false, - "expr": "max by (service_name) (mongodb_mongod_replset_my_state{set=~\"$replset\",service_name=~\"$service_name\"})", + "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, - "instant": false, "interval": "$interval", - "legendFormat": "{{service_name}}", + "intervalFactor": 1, + "legendFormat": "Write", + "metric": "", "range": true, - "refId": "A" + "refId": "B", + "step": 300, + "target": "" } - ] - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 1024, - "panels": [], - "title": "Replication Lag", - "type": "row" + ], + "title": "Disk IOPS", + "type": "stat" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "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.", - "editable": true, - "error": false, + "description": "Network traffic refers to the amount of data moving across a network at a given point in time.", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "decimals": 0, "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" + "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", + "value": null + } + ] + }, + "unit": "Bps" }, "overrides": [] }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 13 - }, - "hiddenSeries": false, - "id": 14, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true + "h": 4, + "w": 4, + "x": 16, + "y": 1 }, - "lines": true, - "linewidth": 2, + "id": 1052, "links": [], - "nullPointMode": "null as zero", "options": { - "alertThreshold": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Avg", - "color": "#C4162A", - "fill": 0, - "legend": false, - "stack": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.20", "targets": [ { - "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))", + "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": "{{service_name}}", - "refId": "A", - "step": 300 + "legendFormat": "Inbound", + "metric": "", + "range": true, + "refId": "B", + "step": 300, + "target": "" }, { - "expr": "avg by (service_name) ((max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[$interval]) > 0) by (service_name,set)) or (max(max_over_time(mongodb_mongod_replset_member_replication_lag{set=\"$replset\",state=\"SECONDARY\",self=~\"|1\",service_name=~\"$secondary\"}[5m]) > 0) by (service_name,set)))", - "hide": true, + "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", - "legendFormat": "Avg", - "refId": "B" + "intervalFactor": 1, + "legendFormat": "Outbound", + "metric": "", + "range": true, + "refId": "A", + "step": 300, + "target": "" } ], - "thresholds": [], - "timeRegions": [], - "title": "Replication Lag", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" + "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)", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 300 + }, + { + "color": "rgba(50, 172, 45, 0.97)", + "value": 3600 + } + ] + }, + "unit": "s" + }, + "overrides": [] }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "gridPos": { + "h": 4, + "w": 2, + "x": 20, + "y": 1 }, - "y-axis": true, - "y_formats": [ - "s", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "s", - "label": "", - "logBase": 1, - "min": 0, - "show": true + "id": 321, + "interval": "$interval", + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "text": {}, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "format": "short", - "logBase": 1, - "show": false + "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 } ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 1019, - "panels": [], - "title": "Operations", - "type": "row" + "title": "Uptime", + "type": "stat" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Operations are classified by legacy wire protocol type (insert, update, and delete only).", - "editable": true, - "error": false, + "description": "", "fieldConfig": { "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "string" }, "overrides": [] }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 22 - }, - "hiddenSeries": false, - "id": 1020, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true + "h": 4, + "w": 2, + "x": 22, + "y": 1 }, - "lines": true, - "linewidth": 2, - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - $service_name", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=$service_name$__url_time_range" - } - ], - "nullPointMode": "null", + "id": 1039, + "interval": "$interval", + "links": [], + "maxDataPoints": 100, "options": { - "alertThreshold": true + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^mongodb$/", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "9.2.20", "targets": [ { - "expr": "avg by (service_name,type) (rate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", + "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": "repl - {{type}}", + "legendFormat": "{{mongodb}}", + "metric": "", + "range": false, "refId": "A", "step": 300 - }, - { - "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_op_counters_repl_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "legendFormat": "repl - {{type}}", - "refId": "B" - }, - { - "expr": "avg by (service_name,type) (rate(mongodb_op_counters_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "legendFormat": "{{type}}", - "refId": "C" } ], - "thresholds": [], - "timeRegions": [], - "title": "Operations - $service_name", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "title": "Version", + "type": "stat" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 15 }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true + "id": 1150, + "panels": [], + "title": "States - $rs_nm", + "type": "row" + }, + { + "description": "ReplSet statuses during the selected time range.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "palette-classic" + }, + "custom": { + "fillOpacity": 100, + "lineWidth": 0, + "spanNulls": false + }, + "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" + }, + "6": { + "index": 8, + "text": "UNKNOWN" + }, + "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" + }, + { + "options": { + "from": 0, + "result": { + "index": 0, + "text": "N/A" + }, + "to": 1 + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 6 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 16 + }, + "id": 1587, + "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", + "targets": [ { - "format": "short", - "logBase": 1, - "show": false + "editorMode": "code", + "expr": "max by (service_name) (mongodb_mongod_replset_my_state{environment=~\"$environment\", cluster=~\"$cluster\", set=~\"$rs_nm\", service_name=~\"$service_name\"})", + "interval": "$interval", + "legendFormat": "{{set}}", + "range": true, + "refId": "A" } ], - "yaxis": { - "align": false - } + "title": "Node States", + "transformations": [], + "type": "state-timeline" }, { "collapsed": false, @@ -936,11 +1142,11 @@ "h": 1, "w": 24, "x": 0, - "y": 30 + "y": 22 }, "id": 1170, "panels": [], - "title": "Max Member Ping Time", + "title": "Details", "type": "row" }, { @@ -949,18 +1155,12 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "This metric can show a correlation with the replication lag value.", + "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.", "editable": true, "error": false, "fieldConfig": { "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] + "links": [] }, "overrides": [] }, @@ -973,20 +1173,22 @@ }, "gridPos": { "h": 8, - "w": 24, + "w": 12, "x": 0, - "y": 31 + "y": 23 }, "hiddenSeries": false, - "id": 13, + "id": 15, "legend": { "alignAsTable": true, - "avg": false, + "avg": true, "current": false, + "hideZero": false, "max": true, - "min": false, + "min": true, + "rightSide": false, "show": true, - "sort": "max", + "sort": "avg", "sortDesc": true, "total": false, "values": true @@ -1000,49 +1202,65 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], + "seriesOverrides": [ + { + "alias": "/repl.*/", + "yaxis": 2 + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "avg by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{service_name=~\"$service_name\"})\n* on (name) group_right(state) avg by (service_name,state,name) ((max_over_time(mongodb_mongod_replset_my_name[$interval]) or max_over_time(mongodb_mongod_replset_my_name[5m])))", + "editorMode": "code", + "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcountersRepl{service_name=~\"$service_name\", legacy_op_type!~\"(command|query|getmore)\"}[$interval]))", "format": "time_series", - "hide": true, + "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{service_name}} - {{name}} - {{state}}", + "legendFormat": "repl_{{legacy_op_type}}", + "range": true, "refId": "A", "step": 300 }, { - "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"}) or mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"}", - "hide": true, + "editorMode": "code", + "expr": "avg by () (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))", + "format": "time_series", + "hide": false, "interval": "$interval", - "legendFormat": "{{service_name}} - {{name}} - {{state}}", - "refId": "B" + "intervalFactor": 1, + "legendFormat": "ttl_delete ", + "range": true, + "refId": "B", + "step": 300 }, { - "expr": "max by (service_name,name,state) (mongodb_mongod_replset_member_ping_ms{set=~\"$replset\",service_name=~\"$service_name\"} or label_replace(label_replace(mongodb_rs_members_pingMs{service_name=~\"$service_name\", member_state!=\"\"},\"state\", \"$1\", \"member_state\", \"(.*)\"),\"name\", \"$1\", \"member_idx\", \"(.*)\"))", + "editorMode": "code", + "expr": "avg by (legacy_op_type) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))", + "format": "time_series", + "hide": false, "interval": "$interval", - "legendFormat": "{{service_name}} - {{name}}{{member_idx}} - {{state}}{{member_state}}", - "refId": "D" + "intervalFactor": 1, + "legendFormat": "{{legacy_op_type}} ", + "range": true, + "refId": "C", + "step": 300 } ], "thresholds": [], "timeRegions": [], - "title": "Max Member Ping Time - $service_name", + "title": "Command Operations", "tooltip": { "msResolution": false, "shared": true, - "sort": 5, - "value_type": "cumulative" + "sort": 2, + "value_type": "individual" }, "type": "graph", "x-axis": true, @@ -1053,22 +1271,25 @@ }, "y-axis": true, "y_formats": [ - "ms", + "short", "short" ], "yaxes": [ { "decimals": 2, - "format": "ms", + "format": "ops", "label": "", "logBase": 1, "min": 0, "show": true }, { - "format": "short", + "decimals": 2, + "format": "ops", + "label": "", "logBase": 1, - "show": false + "min": "0", + "show": true } ], "yaxis": { @@ -1076,17 +1297,67 @@ } }, { - "collapsed": false, + "description": "Show the 5 collections that are most frequently read.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "noValue": "0", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 39 + "h": 8, + "w": 12, + "x": 12, + "y": 23 }, - "id": 1017, - "panels": [], - "title": "Max Heartbeat Time / Elections", - "type": "row" + "id": 1024, + "links": [], + "options": { + "displayMode": "gradient", + "minVizHeight": 9, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "text": {} + }, + "pluginVersion": "9.2.20", + "repeatDirection": "v", + "targets": [ + { + "editorMode": "code", + "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, + "interval": "", + "legendFormat": "{{database}}.{{collection}}", + "range": true, + "refId": "B" + } + ], + "title": "Top Hottest Collections by Read", + "transformations": [], + "type": "bargauge" }, { "aliasColors": {}, @@ -1094,36 +1365,23 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Time span between now and last heartbeat from replicaset members.", - "editable": true, - "error": false, + "description": "Average latency of operations (classified by read, write, or (other) command)", "fieldConfig": { "defaults": { - "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" - } - ] + "links": [] }, "overrides": [] }, "fill": 2, "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, "gridPos": { "h": 8, "w": 12, "x": 0, - "y": 40 + "y": 31 }, "hiddenSeries": false, - "id": 75, + "id": 1064, "legend": { "alignAsTable": true, "avg": true, @@ -1139,14 +1397,174 @@ }, "lines": true, "linewidth": 2, - "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "editorMode": "code", + "expr": "avg by (op_type) (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}}", + "range": true, + "refId": "A" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Query execution times", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "µs", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "description": "Show the 5 collections that are most frequently written to.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 31 + }, + "id": 1028, + "options": { + "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "editorMode": "code", + "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": false, + "interval": "", + "key": "Q-bf62f68c-ad8e-4fb5-83bb-df50324b416b-0", + "legendFormat": "{{database}}.{{collection}}", + "range": true, + "refId": "A" + } + ], + "title": "Top Hottest Collections by Write", + "type": "bargauge" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 39 + }, + "height": "250px", + "hiddenSeries": false, + "id": 1066, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -1156,31 +1574,38 @@ "steppedLine": false, "targets": [ { - "expr": "time() - avg by (service_name) (max(mongodb_mongod_replset_member_last_heartbeat{service_name=~\"$service_name\"}) by (name)) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "(sum by ()(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 ()(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": "{{service_name}}", - "metric": "", + "legendFormat": "Scanned objects / returned", + "range": true, "refId": "J", "step": 300 }, { - "expr": "avg by (service_name) (max(mongodb_rs_heartbeatIntervalMillis{service_name=~\"$service_name\"}) by (name) / 1000) * on (name) group_right avg by (service_name) (mongodb_mongod_replset_my_name{service_name=~\"$service_name\"})", - "hide": true, + "editorMode": "code", + "expr": "(sum by ()(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 ()(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", - "legendFormat": "Interval - {service_name}}", - "refId": "B" + "intervalFactor": 1, + "legendFormat": "Scanned idx / returned", + "range": true, + "refId": "A", + "step": 300 } ], "thresholds": [], "timeRegions": [], - "title": "Max Heartbeat Time", + "title": "Query Efficiency", "tooltip": { "msResolution": false, "shared": true, - "sort": 5, - "value_type": "individual" + "sort": "none", + "value_type": "cumulative" }, "type": "graph", "x-axis": true, @@ -1191,20 +1616,20 @@ }, "y-axis": true, "y_formats": [ - "s", - "short" + "", + "" ], "yaxes": [ { "decimals": 2, - "format": "s", + "format": "", "label": "", "logBase": 1, "min": 0, "show": true }, { - "format": "short", + "format": "", "logBase": 1, "show": false } @@ -1219,18 +1644,12 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Count of elections. Usually zero; 1 count by each healthy node will appear in each election. Happens when the primary role changes due to either normal maintenance or trouble events.", + "description": "Operations queued due to a lock.", "editable": true, "error": false, "fieldConfig": { "defaults": { - "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" - } - ] + "links": [] }, "overrides": [] }, @@ -1245,14 +1664,16 @@ "h": 8, "w": 12, "x": 12, - "y": 40 + "y": 39 }, + "height": "250px", "hiddenSeries": false, - "id": 12, + "id": 1036, "legend": { "alignAsTable": true, "avg": true, "current": false, + "hideZero": false, "max": true, "min": true, "show": true, @@ -1270,7 +1691,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -1280,17 +1701,30 @@ "steppedLine": false, "targets": [ { - "expr": "max by (service_name) (changes(mongodb_mongod_replset_member_election_date{service_name=~\"$service_name\"}[$interval]))", + "editorMode": "code", + "expr": "max by (type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", + "format": "time_series", + "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A", + "legendFormat": "{{type}}", + "range": true, + "refId": "J", "step": 300 } ], - "thresholds": [], + "thresholds": [ + { + "colorMode": "critical", + "fill": true, + "line": true, + "op": "gt", + "value": 0, + "yaxis": "left" + } + ], "timeRegions": [], - "title": "Elections", + "title": "Queued Operations", "tooltip": { "msResolution": false, "shared": true, @@ -1312,7 +1746,7 @@ "yaxes": [ { "decimals": 2, - "format": "short", + "format": "ops", "label": "", "logBase": 1, "min": 0, @@ -1328,37 +1762,18 @@ "align": false } }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 48 - }, - "id": 1547, - "panels": [], - "title": "Oplog Recovery Window", - "type": "row" - }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", + "description": "", "editable": true, "error": false, "fieldConfig": { "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] + "links": [] }, "overrides": [] }, @@ -1371,12 +1786,13 @@ }, "gridPos": { "h": 8, - "w": 24, + "w": 12, "x": 0, - "y": 49 + "y": 47 }, + "height": "250px", "hiddenSeries": false, - "id": 27, + "id": 1067, "legend": { "alignAsTable": true, "avg": true, @@ -1392,52 +1808,66 @@ "lines": true, "linewidth": 2, "links": [], - "nullPointMode": "null", + "nullPointMode": "null as zero", "options": { "alertThreshold": true }, "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", + "percentage": true, + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [ - { - "alias": "Oplog Range", - "yaxis": 2 - } - ], + "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by() (mongodb_ss_globalLock_activeClients_readers{service_name=~\"$service_name\"})", + "format": "time_series", "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Now to End", - "metric": "", + "legendFormat": "Active Readers", + "range": true, "refId": "J", "step": 300 }, { - "expr": "avg by (service_name) (mongodb_mongod_replset_oplog_head_timestamp{service_name=~\"$service_name\"}-mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by() (mongodb_ss_globalLock_activeClients_writers{service_name=~\"$service_name\"})", + "format": "time_series", "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Oplog Range", - "metric": "", + "legendFormat": "Active Writers", + "range": true, "refId": "A", "step": 300 + }, + { + "editorMode": "code", + "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"readers\"})", + "hide": false, + "legendFormat": "Queued Readers", + "range": true, + "refId": "B" + }, + { + "editorMode": "code", + "expr": "avg by() (mongodb_ss_globalLock_currentQueue{service_name=~\"$service_name\",count_type=\"writers\"})", + "hide": false, + "interval": "", + "legendFormat": "Queued Writers", + "range": true, + "refId": "C" } ], "thresholds": [], "timeRegions": [], - "title": "Oplog Recovery Window - $service_name", + "title": "Reads & Writes", "tooltip": { "msResolution": false, "shared": true, @@ -1453,22 +1883,21 @@ }, "y-axis": true, "y_formats": [ - "s", + "short", "short" ], "yaxes": [ { - "decimals": 2, - "format": "s", + "format": "none", "label": "", "logBase": 1, "min": 0, "show": true }, { - "format": "s", + "format": "none", "logBase": 1, - "show": true + "show": false } ], "yaxis": { @@ -1476,651 +1905,121 @@ } }, { - "collapsed": true, + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "MongoDB Connections", + "fieldConfig": { + "defaults": { + "links": [], + "unit": "none" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 57 + "h": 8, + "w": 12, + "x": 12, + "y": 47 }, - "id": 1070, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Repl buffer ops applied per sec.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 60 - }, - "hiddenSeries": false, - "id": 85, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_count{service_name=~\"$service_name\"})", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Buffered Operations", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "ms", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Time spent per second waiting for or fetching oplog docs in replication.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "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" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 60 - }, - "hiddenSeries": false, - "id": 79, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_network_getmores_total_milliseconds{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Getmore Time", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "ms", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ms", - "label": "", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } + "hiddenSeries": false, + "id": 1074, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Times spent per second A) pre-loading oplog ops into parallel-executable batches B) Times spent pre-loading index values and C) repl batch apply phase.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 68 - }, - "hiddenSeries": false, - "id": 84, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_total_milliseconds{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Document Preload", - "refId": "A", - "step": 300 - }, - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Index Preload", - "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds", - "refId": "B", - "step": 300 - }, - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_batches_total_milliseconds{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Batch Apply", - "metric": "mongodb_mongod_metrics_repl_preload_indexes_total_milliseconds", - "refId": "C", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Processing Time - $service_name", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "ms", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ms", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } + "editorMode": "code", + "expr": "avg by () (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"current\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Current", + "range": true, + "refId": "J", + "step": 300 }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Current hard-coded max and actual size of repl batch buffer.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 76 - }, - "hiddenSeries": false, - "id": 80, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [ - { - "alias": "Max", - "color": "#C4162A", - "fill": 0 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_size_bytes{service_name=~\"$service_name\"})", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Used", - "refId": "A", - "step": 300 - }, - { - "expr": "avg by (service_name) (mongodb_mongod_metrics_repl_buffer_max_size_bytes{service_name=~\"$service_name\"})", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Max", - "refId": "B", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Buffer Capacity - $service_name", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "ms", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "bytes", - "label": "", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } + "editorMode": "code", + "expr": "avg by() (mongodb_ss_connections{service_name=~\"$service_name\",conn_type=~\"available\"})", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Available", + "range": true, + "refId": "A", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Connections", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "show": true }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Count of A) getmores executed B) index values pre-loaded C) oplog docs applied per second against oplog collection in replication.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MongoDB Instance Summary - ${__field.labels.service_name}", - "url": "/graph/d/mongodb-instance-summary/mongodb-instance-summary?var-service_name=${__field.labels.service_name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 84 - }, - "hiddenSeries": false, - "id": 81, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_docs_num_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Document Preload", - "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total", - "refId": "A", - "step": 300 - }, - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_preload_indexes_num_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Index Preload", - "metric": "mongodb_mongod_metrics_repl_preload_indexes_num_total", - "refId": "B", - "step": 300 - }, - { - "expr": "avg by (service_name) (rate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_mongod_metrics_repl_apply_ops_total{service_name=~\"$service_name\"}[5m]))", - "interval": "$interval", - "intervalFactor": 2, - "legendFormat": "Batch Apply", - "refId": "C", - "step": 120 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Oplog Operations - $service_name", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "cumulative" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "y-axis": true, - "y_formats": [ - "ms", - "short" - ], - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } - ], - "yaxis": { - "align": false - } + "format": "short", + "logBase": 1, + "show": true } ], - "title": "Oplog Details", - "type": "row" + "yaxis": { + "align": false + } }, { "collapsed": true, @@ -2128,248 +2027,458 @@ "h": 1, "w": 24, "x": 0, - "y": 58 + "y": 55 }, - "id": 1306, + "id": 1056, "panels": [ { - "collapsed": false, - "gridPos": { - "h": 10, - "w": 24, - "x": 0, - "y": 61 - }, - "id": 1352, - "pluginVersion": "9.2.20", - "default_title_for_rows": "Service Name", - "title": "Services Details", - "type": "table", + "default_title_for_rows": "DB Name", + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, "custom": { - "align": "center", + "align": "left", "displayMode": "auto", - "inspect": false, - "filterable": false + "filterable": true, + "inspect": false }, "mappings": [ { "options": { "0": { - "color": "#8b0000", + "color": "dark-blue", "index": 0, - "text": "No Data" - }, - "-": { - "index": 1, - "text": "No Data" + "text": "0" } }, "type": "value" } ], + "noValue": "N/A", "thresholds": { "mode": "absolute", "steps": [ - { - "color": "green", - "value": null - }, { "color": "red", - "value": 80 + "value": null } ] }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "noValue": "-", - "decimals": 2 + "unit": "bytes" }, "overrides": [ { "matcher": { - "id": "byName", - "options": "Value #E" + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" }, "properties": [ { - "id": "custom.displayMode", - "value": "color-background-solid" + "id": "color", + "value": { + "fixedColor": "dark-blue", + "mode": "fixed" + } } ] }, { "matcher": { "id": "byName", - "options": "service_name" + "options": "Node" }, "properties": [ { - "id": "custom.align", - "value": "left" + "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": 11, + "x": 0, + "y": 56 + }, + "hide_headers": false, + "id": 1043, + "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ { - "matcher": { - "id": "byName", - "options": "Value #C" + "desc": false, + "displayName": "DB Name\\Value" + } + ] + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,collection,service_name) (mongodb_collstats_storageStats_storageSize{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",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" + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "cluster": true, + "environment": false, + "rs_nm": true }, - "properties": [ - { - "id": "unit", - "value": "s" - } - ] - }, - { - "matcher": { - "id": "byName", - "options": "Value #B" + "indexByName": { + "Time": 0, + "Value": 6, + "cluster": 1, + "collection": 4, + "database": 3, + "rs_nm": 5, + "service_name": 2 }, - "properties": [ + "renameByName": { + "Value": "Size", + "database": "DB Name", + "db\\shard": "DB Name", + "rs1": "", + "service_name": "Node" + } + } + } + ], + "type": "table" + }, + { + "collapsed": false, + "default_title_for_rows": "DB Name", + "description": "MongoDB stores documents in collections. Collections are analogous to tables in relational databases.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "transparent", + "mode": "fixed" + }, + "custom": { + "align": "left", + "displayMode": "auto", + "filterable": true, + "inspect": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "dark-blue", + "index": 0 + } + }, + "type": "value" + } + ], + "noValue": "N/A", + "thresholds": { + "mode": "absolute", + "steps": [ { - "id": "unit", - "value": "µs" + "color": "red", + "value": null } ] - }, + } + }, + "overrides": [ { "matcher": { - "id": "byName", - "options": "Value #D" + "id": "byRegexp", + "options": "^((?!(DB Name)).)*$" }, "properties": [ { - "id": "decimals" + "id": "custom.displayMode", + "value": "color-background-solid" } ] }, { "matcher": { "id": "byName", - "options": "Value #A" + "options": "Node" }, "properties": [ { - "id": "unit", - "value": "ops" + "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": 13, + "x": 11, + "y": 56 + }, + "id": 1045, "options": { - "showHeader": true, "footer": { + "enablePagination": true, + "fields": "", + "reducer": [ + "sum" + ], "show": false - } + }, + "frameIndex": 0, + "showHeader": true, + "sortBy": [ + { + "desc": false, + "displayName": "DB Name\\Value" + } + ] }, - "transformations": [ + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, + "targets": [ { - "id": "merge", - "options": {} - }, + "editorMode": "code", + "exemplar": false, + "expr": "max by (environment,cluster,rs_nm,database,service_name) (mongodb_mongod_db_collections_total{cluster=~\"$cluster\",rs_nm=~\"$rs_nm\",db!~\"admin|config\"})", + "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, - "agent_id": true, - "agent_type": true, - "environment": true, - "instance": true, - "job": true, - "machine_id": true, - "node_id": true, - "node_name": true, - "node_type": true, - "service_name": false + "cluster": true, + "rs_nm": true }, "indexByName": { "Time": 0, - "Value #A": 6, - "Value #B": 4, - "Value #C": 3, - "Value #D": 5, - "Value #E": 2, - "service_name": 1 + "Value": 5, + "cluster": 1, + "database": 3, + "rs_nm": 4, + "service_name": 2 }, "renameByName": { - "Value #A": "QPS", - "Value #B": "Average Latency", - "Value #C": "Uptime", - "Value #D": "Open Connections", - "Value #E": "Cursors", - "service_name": "Service Name" + "1710776522937": "", + "Value": "Count", + "database": "DB Name", + "service_name": "Node" } } } ], - "targets": [ - { - "editorMode": "code", - "exemplar": false, - "expr": "avg by (service_name) (mongodb_instance_uptime_seconds{service_name=~\"$service_name\"})", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{service_name}} | Uptime", - "range": false, - "refId": "C" + "type": "table" + } + ], + "title": "Collection Details", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 56 + }, + "id": 1049, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "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" + } + ] }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 57 + }, + "hiddenSeries": false, + "id": 1038, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null as zero", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ { - "editorMode": "code", - "exemplar": false, - "expr": "sum by (service_name) (rate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_mongod_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]) or rate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[$interval]) or irate(mongodb_op_counters_total{service_name=~\"$service_name\",type!=\"command\"}[5m]))", - "format": "table", - "hide": false, - "instant": true, - "interval": "$interval", - "legendFormat": "{{service_name}} | QPS", - "range": false, - "refId": "A" - }, + "alias": "Avg", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { "editorMode": "code", - "exemplar": false, - "expr": "avg by (service_name) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[$interval]) > 0) or\nirate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\",type=\"command\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\",type=\"command\"}[5m]) > 0))", - "format": "table", - "instant": true, + "expr": "max_over_time(mongodb_mongod_replset_member_replication_lag{environment=~\"$environment\",cluster=~\"$cluster\",set=\"$rs_nm\",service_name=~\"$secondary\"}[$interval]) > 0 ", "interval": "$interval", - "legendFormat": "{{service_name}} | Latency", - "range": false, - "refId": "B" - }, + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A", + "step": 300 + } + ], + "thresholds": [ { - "editorMode": "code", - "exemplar": false, - "expr": "avg by (service_name) (max_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or \nmax_over_time(mongodb_mongod_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_mongos_connections{service_name=~\"$service_name\", state=\"current\"}[5m]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[$interval]) or\nmax_over_time(mongodb_connections{service_name=~\"$service_name\", state=\"current\"}[5m]))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{service_name}} | Connections", - "range": false, - "refId": "D" + "colorMode": "critical", + "fill": false, + "line": true, + "op": "gt", + "value": 10, + "yaxis": "left" + } + ], + "timeRegions": [], + "title": "Replication Lag", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "s", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "s", + "label": "", + "logBase": 1, + "min": 0, + "show": true }, { - "editorMode": "code", - "exemplar": false, - "expr": "avg by (service_name) (max_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongod_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[$interval]) or \nmax_over_time(mongodb_mongos_metrics_cursor_open{service_name=~\"$service_name\",state=\"total\"}[5m]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[$interval]) or\nmax_over_time(mongodb_mongos_cursors{service_name=~\"$service_name\",state=\"total\"}[5m]))", - "format": "table", - "instant": true, - "interval": "$interval", - "legendFormat": "{{service_name}} | Cursors ", - "refId": "E" + "format": "short", + "logBase": 1, + "show": false } ], - "sorting_props": { - "col_index": -1, - "direction": "desc" + "yaxis": { + "align": false } }, { @@ -2378,12 +2487,18 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Average latency of operations (classified by read, write, or (other) command).", + "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", "editable": true, "error": false, "fieldConfig": { "defaults": { - "links": [] + "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" + } + ] }, "overrides": [] }, @@ -2395,14 +2510,13 @@ "rightLogBase": 1 }, "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 67 + "h": 7, + "w": 12, + "x": 12, + "y": 57 }, - "height": "250px", "hiddenSeries": false, - "id": 1558, + "id": 1025, "legend": { "alignAsTable": true, "avg": true, @@ -2419,37 +2533,45 @@ "lines": true, "linewidth": 2, "links": [], - "nullPointMode": "null", + "nullPointMode": "null as zero", "options": { "alertThreshold": true }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], + "seriesOverrides": [ + { + "alias": "Avg", + "color": "#C4162A", + "fill": 0, + "legend": false, + "stack": false + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[5m]) > 0))", - "format": "time_series", + "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": "{{type}}", - "refId": "J", + "legendFormat": "{{ service_name }}", + "metric": "", + "range": true, + "refId": "A", "step": 300 } ], "thresholds": [], "timeRegions": [], - "title": "Latency Detail - $service_name", + "title": "Oplog Recovery Window", "tooltip": { "msResolution": false, "shared": true, @@ -2465,13 +2587,13 @@ }, "y-axis": true, "y_formats": [ - "short", + "s", "short" ], "yaxes": [ { "decimals": 2, - "format": "µs", + "format": "s", "label": "", "logBase": 1, "min": 0, @@ -2486,38 +2608,44 @@ "yaxis": { "align": false } - }, + } + ], + "title": "Replication", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 57 + }, + "id": 1054, + "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "decimals": 2, - "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)", - "editable": true, - "error": false, + "description": "Average latency of operations (classified by read, write, or (other) command)", "fieldConfig": { "defaults": { "links": [] }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 + "overrides": [] }, + "fill": 2, + "fillGradient": 0, "gridPos": { - "h": 8, - "w": 24, + "h": 7, + "w": 12, "x": 0, - "y": 75 + "y": 58 }, - "height": "250px", "hiddenSeries": false, - "id": 1397, + "id": 1020, "legend": { "alignAsTable": true, "avg": true, @@ -2533,69 +2661,71 @@ }, "lines": true, "linewidth": 2, - "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, - "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, + "pluginVersion": "9.2.20", + "pointradius": 2, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], + "seriesOverrides": [ + { + "alias": "/fc_count.*/", + "yaxis": 2 + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "avg by (service_name,state) (rate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[$interval]) or \nirate(mongodb_mongod_metrics_document_total{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", + "editorMode": "code", + "expr": "max(rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", + "interval": "$interval", + "legendFormat": "fc_count", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "max(rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", "hide": false, "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{state}}", - "refId": "J", - "step": 300 + "legendFormat": "fc_time", + "range": true, + "refId": "B" } ], "thresholds": [], "timeRegions": [], - "title": "Document Operations - $service_name", + "title": "Flow Control", "tooltip": { - "msResolution": false, "shared": true, - "sort": 5, - "value_type": "cumulative" + "sort": 2, + "value_type": "individual" }, "type": "graph", - "x-axis": true, "xaxis": { "mode": "time", "show": true, "values": [] }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], "yaxes": [ { "decimals": 2, - "format": "ops", + "format": "µs", "label": "", "logBase": 1, - "min": 0, + "min": "0", "show": true }, { "format": "short", "logBase": 1, - "show": false + "min": "0", + "show": true } ], "yaxis": { @@ -2608,31 +2738,27 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "MongoDB keeps most recently used data in RAM. If you have created indexes for your queries and your working data set fits in RAM, MongoDB serves all queries from memory.", + "description": "A WT 'ticket' is assigned out for every operation running simultaneously in the WT storage engine. \"Available\" = hardcoded high value - \"Out\".", "editable": true, "error": false, "fieldConfig": { "defaults": { - "links": [] + "links": [], + "unit": "none" }, "overrides": [] }, "fill": 2, "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1 - }, + "grid": {}, "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 83 + "h": 7, + "w": 12, + "x": 12, + "y": 58 }, - "height": "250px", "hiddenSeries": false, - "id": 1012, + "id": 1041, "legend": { "alignAsTable": true, "avg": true, @@ -2655,49 +2781,47 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", - "repeat": "service_name", - "repeatDirection": "h", - "seriesOverrides": [], + "seriesOverrides": [ + { + "alias": "write", + "transform": "negative-Y" + } + ], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { - "expr": "rate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[$interval]) or irate(mongodb_tcmalloc_cache_bytes{service_name=~\"$service_name\"}[5m])", - "format": "time_series", - "hide": false, + "editorMode": "code", + "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"read\"}[5m])))", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{cache}} - {{type}}", - "refId": "J", + "legendFormat": "read", + "metric": "", + "range": true, + "refId": "B", "step": 300 }, { - "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_thread_cache_free_bytes{service_name=~\"$service_name\"})", - "interval": "$interval", - "legendFormat": "Free Thread Cache", - "refId": "A" - }, - { - "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_central_cache_free_bytes{service_name=~\"$service_name\"})", - "interval": "$interval", - "legendFormat": "Free Central Cache", - "refId": "B" - }, - { - "expr": "avg by (service_name) (mongodb_ss_tcmalloc_tcmalloc_transfer_cache_free_bytes{service_name=~\"$service_name\"})", + "editorMode": "code", + "expr": "avg by (type) ((max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_total_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])) -\n(max_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[$interval]) or\nmax_over_time(mongodb_mongod_wiredtiger_concurrent_transactions_out_tickets{service_name=~\"$service_name\",txn_rw=\"write\"}[5m])))", + "hide": false, "interval": "$interval", - "legendFormat": "Free Transfer Cache", - "refId": "C" + "intervalFactor": 1, + "legendFormat": "write", + "metric": "", + "range": true, + "refId": "A", + "step": 300 } ], "thresholds": [], "timeRegions": [], - "title": "Cache - $service_name", + "title": "WiredTiger Concurrency Tickets Available", "tooltip": { "msResolution": false, "shared": true, @@ -2705,24 +2829,17 @@ "value_type": "cumulative" }, "type": "graph", - "x-axis": true, "xaxis": { "mode": "time", "show": true, "values": [] }, - "y-axis": true, - "y_formats": [ - "short", - "short" - ], "yaxes": [ { - "decimals": 2, - "format": "bytes", + "decimals": 0, + "format": "none", "label": "", "logBase": 1, - "min": 0, "show": true }, { @@ -2736,41 +2853,40 @@ } } ], - "title": "MongoDB Services Summary", + "repeat": "service_name", + "repeatDirection": "h", + "title": "Performance - $service_name", "type": "row" }, { "collapsed": true, + "datasource": "Metrics", "gridPos": { "h": 1, "w": 24, "x": 0, - "y": 59 + "y": 60 }, "id": 1403, "panels": [ { "collapsed": false, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 62 - }, - "id": 1435, - "pluginVersion": "9.2.20", + "datasource": "Metrics", "default_title_for_rows": "Node Name", - "title": "Nodes Overview", - "type": "table", "fieldConfig": { "defaults": { + "color": { + "fixedColor": "text", + "mode": "thresholds" + }, "custom": { "align": "center", "displayMode": "auto", - "inspect": false, "filterable": false, + "inspect": false, "width": 100 }, + "decimals": 2, "mappings": [ { "options": { @@ -2787,12 +2903,12 @@ "type": "value" } ], + "noValue": "-", "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", - "value": null + "color": "red" }, { "color": "orange", @@ -2803,13 +2919,7 @@ "value": 20 } ] - }, - "color": { - "fixedColor": "text", - "mode": "thresholds" - }, - "decimals": 2, - "noValue": "-" + } }, "overrides": [ { @@ -2824,6 +2934,15 @@ }, { "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}" + } + ] } ] }, @@ -2933,60 +3052,31 @@ } ] }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 61 + }, + "id": 1435, "options": { - "showHeader": true, "footer": { + "fields": "", + "reducer": [ + "sum" + ], "show": false - } - }, - "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" - } - } - } - ], + "showHeader": true + }, + "pluginVersion": "9.2.20", + "sorting_props": { + "col_index": -1, + "direction": "desc" + }, "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\"}))", @@ -2998,6 +3088,7 @@ "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]))", @@ -3009,6 +3100,7 @@ "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)", @@ -3020,6 +3112,7 @@ "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\"})", @@ -3031,6 +3124,7 @@ "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\"})", @@ -3041,6 +3135,7 @@ "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))", @@ -3051,6 +3146,7 @@ "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", @@ -3061,11 +3157,75 @@ "refId": "G" } ], - "sorting_props": { - "col_index": -1, - "direction": "desc" - } - }, + "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" + } + ], + "targets": [ + { + "datasource": "Metrics", + "refId": "A" + } + ], + "title": "Nodes Summary", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 61 + }, + "id": 1569, + "panels": [ { "aliasColors": { "Max Core Utilization": "#bf1b00", @@ -3080,6 +3240,7 @@ "bars": false, "dashLength": 10, "dashes": false, + "datasource": "Metrics", "decimals": 2, "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.", "editable": true, @@ -3095,9 +3256,9 @@ "grid": {}, "gridPos": { "h": 8, - "w": 24, + "w": 8, "x": 0, - "y": 68 + "y": 62 }, "height": "", "hiddenSeries": false, @@ -3126,7 +3287,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3146,6 +3307,7 @@ "steppedLine": true, "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", @@ -3154,6 +3316,7 @@ "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, @@ -3163,6 +3326,7 @@ "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, @@ -3171,6 +3335,7 @@ "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, @@ -3214,7 +3379,21 @@ "yaxis": { "align": false } - }, + } + ], + "title": "CPU Usage", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 62 + }, + "id": 1571, + "panels": [ { "aliasColors": { "Allocated": "#E0752D", @@ -3228,6 +3407,7 @@ "bars": false, "dashLength": 10, "dashes": false, + "datasource": "Metrics", "decimals": 2, "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.", "editable": true, @@ -3243,9 +3423,9 @@ "grid": {}, "gridPos": { "h": 8, - "w": 24, + "w": 8, "x": 0, - "y": 76 + "y": 63 }, "hiddenSeries": false, "id": 339, @@ -3272,7 +3452,7 @@ }, "paceLength": 10, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3293,6 +3473,7 @@ "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\"})))", @@ -3308,6 +3489,7 @@ }, { "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)", @@ -3356,7 +3538,21 @@ "yaxis": { "align": false } - }, + } + ], + "title": "CPU Saturation", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 63 + }, + "id": 1585, + "panels": [ { "aliasColors": { "Swap In (Reads)": "#6ed0e0", @@ -3366,6 +3562,7 @@ "bars": false, "dashLength": 10, "dashes": false, + "datasource": "Metrics", "decimals": 2, "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.", "editable": true, @@ -3381,9 +3578,9 @@ "grid": {}, "gridPos": { "h": 8, - "w": 24, + "w": 8, "x": 0, - "y": 84 + "y": 64 }, "hiddenSeries": false, "id": 341, @@ -3415,7 +3612,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3442,6 +3639,7 @@ "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)", @@ -3456,6 +3654,7 @@ }, { "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))", @@ -3469,6 +3668,7 @@ "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", @@ -3477,6 +3677,7 @@ "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", @@ -3485,6 +3686,7 @@ "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", @@ -3526,12 +3728,27 @@ "yaxis": { "align": false } - }, + } + ], + "title": "Disk I/O and Swap Activity", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 64 + }, + "id": 1583, + "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, + "datasource": "Metrics", "decimals": 2, "description": "Network traffic refers to the amount of data moving across a network at a given point in time.", "editable": true, @@ -3547,9 +3764,9 @@ "grid": {}, "gridPos": { "h": 8, - "w": 24, + "w": 8, "x": 0, - "y": 92 + "y": 65 }, "hiddenSeries": false, "id": 343, @@ -3575,7 +3792,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "pointradius": 5, "points": false, "renderer": "flot", @@ -3593,6 +3810,7 @@ "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]))", @@ -3607,6 +3825,7 @@ }, { "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]))", @@ -3655,12 +3874,12 @@ } } ], - "title": "Nodes Summary", + "title": "Network Traffic", "type": "row" } ], - "refresh": "1m", - "schemaVersion": 34, + "refresh": "", + "schemaVersion": 37, "style": "dark", "tags": [ "MongoDB_HA", @@ -3728,56 +3947,57 @@ } ], "query": "1s,5s,1m,5m,1h,6h,1d", + "queryValue": "", "refresh": 2, "skipUrlSync": false, "type": "interval" }, { - "allFormat": "blob", + "allValue": ".*", "current": { "selected": false, - "text": "", + "text": "None", "value": "" }, - "datasource": "Metrics", - "definition": "label_values(mongodb_up,cluster)", + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", "hide": 0, - "includeAll": false, - "label": "Cluster", + "includeAll": true, + "label": "Environment", "multi": false, - "multiFormat": "glob", - "name": "cluster", + "name": "environment", "options": [], "query": { - "query": "label_values(mongodb_up,cluster)", - "refId": "Metrics-cluster-Variable-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": "", "skipUrlSync": false, "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", "type": "query", "useTags": false }, { - "allFormat": "glob", + "allFormat": "blob", + "allValue": ".*", "current": { "selected": false, "text": "", "value": "" }, - "datasource": "Metrics", - "definition": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", "hide": 0, "includeAll": false, - "label": "Replica Set", + "label": "Cluster", "multi": false, "multiFormat": "glob", - "name": "replset", + "name": "cluster", "options": [], "query": { - "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\"}, set)", - "refId": "Metrics-replset-Variable-Query" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", @@ -3787,32 +4007,27 @@ "useTags": false }, { - "allFormat": "glob", "current": { "selected": false, - "text": "All", - "value": "$__all" + "text": "", + "value": "" }, - "datasource": "Metrics", - "definition": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)", - "hide": 2, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "hide": 0, "includeAll": false, - "label": "Node Name", + "label": "Replica Set", "multi": false, - "multiFormat": "glob", - "name": "node_name", + "name": "rs_nm", "options": [], "query": { - "query": "label_values(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"}, node_name)", - "refId": "Metrics-node_name-Variable-Query" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "refId": "StandardVariableQuery" }, - "refresh": 2, + "refresh": 1, "regex": "", "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false + "sort": 0, + "type": "query" }, { "allFormat": "glob", @@ -3821,213 +4036,52 @@ "text": "All", "value": "$__all" }, - "datasource": "Metrics", - "definition": "", + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", "hide": 0, "includeAll": true, - "label": "Service Name", - "multi": true, + "label": "MongoDB Node", + "multi": false, "multiFormat": "glob", "name": "service_name", "options": [], "query": { - "query": "label_values(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}, service_name)", - "refId": "Metrics-service_name-Variable-Query" - }, - "refresh": 2, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": ".*", - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", - "hide": 2, - "includeAll": true, - "label": "Environment", - "multi": true, - "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" + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}, service_name)", + "refId": "StandardVariableQuery" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, - "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { + "allFormat": "glob", "current": { "selected": false, - "text": "All", - "value": "$__all" + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", + "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", "hide": 2, "includeAll": true, - "label": "Replication Set", + "label": "Node Name", "multi": true, - "name": "replication_set", + "name": "node_name", "options": [], "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", - "refId": "Metrics-replication_set-Variable-Query" + "query": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", + "refId": "Metrics-node_name-Variable-Query" }, "refresh": 2, "regex": "", "skipUrlSync": false, "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "hide": 2, - "includeAll": true, - "label": "Database", - "multi": true, - "name": "database", - "options": [], - "query": { - "query": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", - "refId": "Metrics-database-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "node_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", - "refId": "Metrics-node_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "hide": 2, - "includeAll": true, - "label": "Type", - "multi": true, - "name": "service_type", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", - "refId": "Metrics-service_type-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "hide": 2, - "includeAll": true, - "label": "Schema", - "multi": true, - "name": "schema", - "options": [], - "query": { - "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", - "refId": "Metrics-schema-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "current": { - "selected": false, - "text": "All", - "value": "$__all" - }, - "datasource": "Metrics", - "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "hide": 2, - "includeAll": true, - "label": "Username", - "multi": true, - "name": "username", - "options": [], - "query": { - "query": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", - "refId": "Metrics-username-Variable-Query" - }, - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 5, - "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false @@ -4035,29 +4089,24 @@ { "current": { "selected": false, - "text": "All", - "value": "$__all" + "text": "", + "value": "" }, - "datasource": "Metrics", - "definition": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)", + "definition": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", "hide": 2, - "includeAll": true, - "label": "Secondary", + "includeAll": false, "multi": true, "name": "secondary", "options": [], "query": { - "query": "query_result(mongodb_mongod_replset_my_state{cluster=~\"$cluster\",set=\"$replset\"}==2)", - "refId": "Metrics-secondary-Variable-Query" + "query": "query_result(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\",set=~\"$rs_nm\"}==2)", + "refId": "StandardVariableQuery" }, - "refresh": 2, + "refresh": 1, "regex": "/.*service_name=\"(.*)\",service_type.*/", "skipUrlSync": false, "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" } ] }, @@ -4069,15 +4118,12 @@ "hidden": false, "now": true, "refresh_intervals": [ + "1s", "5s", - "10s", - "30s", "1m", "5m", - "15m", - "30m", "1h", - "2h", + "6h", "1d" ], "time_options": [ @@ -4092,7 +4138,7 @@ "30d" ] }, - "timezone": "", + "timezone": "browser", "title": "MongoDB ReplSet Summary", "uid": "mongodb-replicaset-summary", "version": 1, diff --git a/dashboards/MongoDB/MongoDB_Router_Summary.json b/dashboards/MongoDB/MongoDB_Router_Summary.json new file mode 100644 index 0000000000..263579fb9d --- /dev/null +++ b/dashboards/MongoDB/MongoDB_Router_Summary.json @@ -0,0 +1,1732 @@ +{ + "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" + } + ] + }, + "description": "", + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 1, + "id": null, + "links": [ + { + "icon": "doc", + "includeVars": true, + "keepTime": true, + "tags": [ + "Home" + ], + "targetBlank": false, + "title": "Home", + "type": "link", + "url": "/graph/d/pmm-home/home-dashboard" + }, + { + "icon": "dashboard", + "includeVars": true, + "keepTime": true, + "tags": [ + "Query Analytics" + ], + "targetBlank": false, + "title": "Query Analytics", + "type": "link", + "url": "/graph/d/pmm-qan/pmm-query-analytics" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "Services" + ], + "targetBlank": false, + "title": "Services", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": false, + "keepTime": true, + "tags": [ + "PMM" + ], + "targetBlank": false, + "title": "PMM", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB" + ], + "targetBlank": false, + "title": "MongoDB", + "type": "dashboards" + }, + { + "asDropdown": true, + "includeVars": true, + "keepTime": true, + "tags": [ + "MongoDB_HA" + ], + "targetBlank": false, + "title": "HA", + "type": "dashboards" + } + ], + "liveNow": false, + "panels": [ + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 1032, + "panels": [ + { + "description": "", + "gridPos": { + "h": 4, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1034, + "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, + "content": "#### \ud83d\udece\ufe0f Important\n\nThis Dashboard is an experimental MongoDB Router Summary dashboard in Percona Monitoring and Management (PMM) that is not a part of the official PMM deployment and might be updated.\nWe ship this Dashboard to obtain feedback from our users. Once we officially release this Dashboard, it will be moved to the appropriate folder. \n\nTo provide feedback on the Dashboard, please use [our](https://forums.percona.com) forum.\ud83d\ude4f", + "mode": "markdown" + }, + "pluginVersion": "9.2.20", + "transparent": true, + "type": "text" + } + ], + "title": "\u26a0\ufe0f Disclaimer", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1030, + "panels": [], + "repeat": "node_name", + "repeatDirection": "h", + "title": "Overview - $node_name", + "type": "row" + }, + { + "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": "thresholds" + }, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "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": "#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": 0, + "y": 2 + }, + "id": 1071, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "editorMode": "code", + "expr": "100 - (avg by (node_name) (rate(node_cpu_seconds_total{node_name=~\"$node_name\",mode=\"idle\"}[1m])) * 100)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{ mode }}", + "range": true, + "refId": "B" + } + ], + "title": "CPU Usage", + "type": "gauge" + }, + { + "description": "Estimated how much memory can be used without swapping", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 3, + "y": 2 + }, + "id": 1060, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "1 - avg(node_memory_MemAvailable_bytes{node_name=~\"$node_name\"})/ avg(node_memory_MemTotal_bytes{node_name=~\"$node_name\"})", + "hide": false, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A" + } + ], + "title": "Memory Used", + "type": "gauge" + }, + { + "description": "Shows disk Utilization as a percentage of the time when there was at least one IO request in flight. It is designed to match utilization available in iostat tool. The graph augments the IO latency and Disk Load Graphs, allowing to determine if the disk load was evenly distributed in time or consuming the IO momentarily. Higher utilization increases the likeliness of IO queuing. Always consider this metric along with response time and IO queue depth.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 1, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 6, + "y": 2 + }, + "id": 1073, + "links": [], + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "editorMode": "code", + "expr": "sum by (node_name) (rate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[$interval]) or irate(node_disk_io_time_seconds_total{node_name=~\"$node_name\"}[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 specified mountpoint.\n\n**Used** is the amount of space used.\n\n**Free** is the amount of space not in use.\n\n**Used+Free** is the total disk space allocated to the mountpoint.\n\nHaving *Free* close to 0 B is not good because of the risk to have a \u201cdisk full\u201d error that can block one of the services or even cause a crash of the entire system.\n\nIn case Free is close to 0 B consider to remove unused files or to expand the space allocated to the mountpoint.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "links": [], + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 3, + "x": 9, + "y": 2 + }, + "id": 1062, + "options": { + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true + }, + "pluginVersion": "9.2.20", + "repeatDirection": "h", + "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": "blue", + "mode": "fixed" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 12, + "y": 2 + }, + "id": 1076, + "links": [], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "avg by (node_name) (sum(\n(rate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_reads_completed_total{node_name=~\"$node_name\"}[5m]))\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": "avg by (node_name) (sum(\n(rate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[$interval]) or \nirate(node_disk_writes_completed_total{node_name=~\"$node_name\"}[5m])) \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": "Network traffic refers to the amount of data moving across a network at a given point in time.", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "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", + "value": null + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 16, + "y": 2 + }, + "id": 1052, + "links": [], + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "2s", + "datasourceErrors": {}, + "errors": {}, + "expr": "sum by (node_name) (rate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_receive_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or sum by (node_name) (max_over_time(rdsosmetrics_network_rx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (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", + "datasourceErrors": {}, + "errors": {}, + "expr": "sum by (node_name) (rate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[$interval])) or sum by (node_name) (irate(node_network_transmit_bytes_total{node_name=~\"$node_name\", device!=\"lo\"}[5m])) or\nsum by (node_name) (max_over_time(rdsosmetrics_network_tx{node_name=~\"$node_name\"}[$interval])) or sum by (node_name) (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", + "type": "stat" + }, + { + "description": "The parameter shows how long a system has been \u201cup\u201d and running without a shut down or restart.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgba(245, 54, 54, 0.9)", + "value": null + }, + { + "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": 2 + }, + "id": 321, + "interval": "$interval", + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "exemplar": true, + "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": "time_series", + "hide": false, + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Uptime", + "type": "stat" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + }, + "unit": "string" + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 2, + "x": 22, + "y": 2 + }, + "id": 1039, + "interval": "$interval", + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/^mongodb$/", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "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": 11 + }, + "id": 1172, + "panels": [], + "title": "Node States", + "type": "row" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "fillOpacity": 100, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "#F2495C", + "index": 1, + "text": "DOWN" + }, + "1": { + "color": "rgb(107, 152, 102)", + "index": 2, + "text": "UP" + } + }, + "type": "value" + }, + { + "options": { + "result": { + "index": 0, + "text": "N/A" + } + }, + "type": "range" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 12 + }, + "id": 1174, + "options": { + "alignValue": "center", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "editorMode": "code", + "expr": "max by (service_name) (mongodb_up{environment=~\"$environment\", cluster=~\"$cluster\", service_name=~\"$service_name\"})", + "interval": "$interval", + "legendFormat": "{{service_name}}", + "range": true, + "refId": "A" + } + ], + "title": "$service_name states", + "type": "state-timeline" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 18 + }, + "id": 1170, + "panels": [], + "title": "Details", + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 19 + }, + "hiddenSeries": false, + "id": 15, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "/repl.*/", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "editorMode": "code", + "expr": "avg by (service_name, legacy_op_type) (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 (service_name, legacy_op_type) (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 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Command Operations", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "short" + ], + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "description": "MongoDB Connections", + "fieldConfig": { + "defaults": { + "links": [], + "unit": "none" + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 7, + "w": 12, + "x": 12, + "y": 19 + }, + "hiddenSeries": false, + "id": 1074, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "editorMode": "code", + "expr": "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 + }, + { + "editorMode": "code", + "expr": "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 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Connections", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "format": "none", + "logBase": 1, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Average latency of operations (classified by read, write, or (other) command)", + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 26 + }, + "hiddenSeries": false, + "id": 1064, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "editorMode": "code", + "expr": "avg by (service_name,op_type) (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" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Query execution times", + "tooltip": { + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "\u00b5s", + "logBase": 1, + "min": "0", + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "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.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 26 + }, + "height": "250px", + "hiddenSeries": false, + "id": 1066, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "hideZero": false, + "max": true, + "min": true, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "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 + }, + { + "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 + }, + { + "editorMode": "code", + "expr": "avg by (service_name,type) (rate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[$interval]) / (rate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[$interval]) > 0) or irate(mongodb_mongod_op_latencies_latency_total{service_name=~\"$service_name\"}[5m]) / (irate(mongodb_mongod_op_latencies_ops_total{service_name=~\"$service_name\"}[5m]) > 0))", + "hide": false, + "legendFormat": "{{type}} - {{ service_name}}", + "range": true, + "refId": "B" + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Query Efficiency", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": "none", + "value_type": "cumulative" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "", + "" + ], + "yaxes": [ + { + "decimals": 2, + "format": "", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + } + ], + "refresh": false, + "schemaVersion": 37, + "style": "dark", + "tags": [ + "Experimental", + "MongoDB_HA", + "Percona" + ], + "templating": { + "list": [ + { + "allFormat": "glob", + "auto": true, + "auto_count": 200, + "auto_min": "1s", + "current": { + "selected": false, + "text": "auto", + "value": "$__auto_interval_interval" + }, + "datasource": "Metrics", + "hide": 0, + "includeAll": false, + "label": "Interval", + "multi": false, + "multiFormat": "glob", + "name": "interval", + "options": [ + { + "selected": true, + "text": "auto", + "value": "$__auto_interval_interval" + }, + { + "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", + "queryValue": "", + "refresh": 2, + "skipUrlSync": false, + "type": "interval" + }, + { + "allValue": ".*", + "current": { + "isNone": true, + "selected": false, + "text": "", + "value": "" + }, + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "hide": 0, + "includeAll": false, + "label": "Environment", + "multi": false, + "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": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allFormat": "blob", + "allValue": ".*", + "current": { + "selected": false, + "text": "", + "value": "" + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "multiFormat": "glob", + "name": "cluster", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query", + "useTags": false + }, + { + "current": { + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] + }, + "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", + "hide": 2, + "includeAll": true, + "label": "", + "multi": true, + "name": "node_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 1, + "type": "query" + }, + { + "allFormat": "glob", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "definition": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", + "hide": 0, + "includeAll": true, + "label": "Router", + "multi": true, + "multiFormat": "glob", + "name": "service_name", + "options": [], + "query": { + "query": "label_values(mongodb_mongos_sharding_shards_total{environment=~\"$environment\",cluster=~\"$cluster\"}, service_name)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagsQuery": "", + "type": "query", + "useTags": false + } + ] + }, + "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 Router Summary", + "uid": "mongodb-router-summary", + "version": 1, + "weekStart": "" +} diff --git a/pmm-app/src/module.ts b/pmm-app/src/module.ts index 13c8cd1fde..5931dbc9c3 100755 --- a/pmm-app/src/module.ts +++ b/pmm-app/src/module.ts @@ -1,3 +1,3 @@ -export class ConfigCtrl { - static template = '

PMM App

'; -} +import { AppPlugin } from '@grafana/data'; + +export const plugin = new AppPlugin(); diff --git a/pmm-app/src/plugin.json b/pmm-app/src/plugin.json index 2d51026949..675457a6a6 100755 --- a/pmm-app/src/plugin.json +++ b/pmm-app/src/plugin.json @@ -17,8 +17,8 @@ "small": "img/pmm-logo.svg", "large": "img/pmm-logo.svg" }, - "version": "2.32.0", - "updated": "2022-11-07" + "version": "3.0.0", + "updated": "2024-06-20" }, "includes": [ { @@ -180,7 +180,7 @@ { "type": "dashboard", "name": "NUMA Details", - "path":"dashboards/OS/NUMA_Details.json" + "path": "dashboards/OS/NUMA_Details.json" }, { "type": "dashboard", @@ -192,10 +192,7 @@ "name": "MySQL Group Replication Summary", "path": "dashboards/MySQL/MySQL_Group_Replication_Summary.json" }, - { "type": "dashboard", - "name": "Network Details", - "path": "dashboards/OS/Network_Details.json" - }, + { "type": "dashboard", "name": "Network Details", "path": "dashboards/OS/Network_Details.json" }, { "type": "dashboard", "name": "Nodes Compare", @@ -292,9 +289,8 @@ "path": "dashboards/Experimental/Environments_Overview.json" } ], - "dependencies": { - "grafanaDependency": ">=7.x.x", + "grafanaDependency": ">=10.x.x", "plugins": [] } } diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts index 6bc68c17a9..1f981d5f59 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Details.service.ts @@ -14,7 +14,7 @@ const getExample = async ({ tables, }; - return apiRequestQAN.post('/ObjectDetails/GetQueryExample', data); + return apiRequestQAN.post('/query:getExample', data); }; export default { diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts index 0da80a4f70..24e2c4ae05 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Explain/Explain.tools.ts @@ -80,7 +80,7 @@ export const fetchExplains = async ( }; const [classicResult, jsonResult] = await Promise.all([ - mysqlMethods.getExplainTraditional(payload).then(getActionResult), + mysqlMethods.getExplain(payload).then(getActionResult), mysqlMethods.getExplainJSON(payload).then(getActionResult), ]); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts index 6ebbe8dcd1..7f1b6da853 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Metrics/Metrics.service.ts @@ -1,4 +1,4 @@ -import { apiRequestQAN } from 'shared/components/helpers/api'; +import { apiRequest } from 'shared/components/helpers/api'; import { getLabelQueryParams } from 'pmm-qan/panel/QueryAnalytics.tools'; import { HistogramRequest, HistogramResponse } from './Metrics.types'; @@ -15,7 +15,7 @@ export const getMetrics = async ({ totals, }; - return apiRequestQAN.post('/ObjectDetails/GetMetrics', body); + return apiRequest.post('/v1/qan:getMetrics', body); }; export const getHistogram = async ({ @@ -28,7 +28,7 @@ export const getHistogram = async ({ period_start_to: to, }; - return apiRequestQAN.post('/ObjectDetails/GetHistogram', body); + return apiRequest.post('/v1/qan:getHistogram', body); }; export default { diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts index 5f51b13d86..3ad61b3732 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.service.ts @@ -8,7 +8,7 @@ export const PlanService = { }; return apiRequestQAN - .post('/ObjectDetails/GetQueryPlan', body) + .get(`/query/${body.queryid}/plan`) .then(({ planid, query_plan }) => ( planid && query_plan ? { id: planid, plan: query_plan } : undefined )); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts index f8415f7cde..d1e73f602e 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.styles.ts @@ -1,7 +1,7 @@ import { css } from '@emotion/css'; import { GrafanaTheme } from '@grafana/data'; -export const getStyles = ({ spacing, colors }: GrafanaTheme) => ({ +export const getStyles = ({ spacing }: GrafanaTheme) => ({ planWrapper: css` position: relative; `, @@ -10,7 +10,4 @@ export const getStyles = ({ spacing, colors }: GrafanaTheme) => ({ top: ${spacing.sm}; right: ${spacing.sm}; `, - tippy: css` - background-color: ${colors.bg2}; - `, }); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx index b7036246b5..46ed13690f 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx +++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx @@ -6,6 +6,14 @@ jest.mock('shared/components/helpers/notification-manager'); jest.mock('./Plan.hooks'); describe('Plan::', () => { + beforeEach(() => { + console.error = jest.fn(); + // TODO: Grafana Tooltip component uses a react 18 hook - useId + // due to enzyme we are currently stuck at react 17, mocking for now + // @ts-ignore + React.useId = () => ''; + }); + it('renders plan query and tooltip', () => { const { container } = render(); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx index f51395fdf5..2af2164a8b 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx +++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.tsx @@ -1,8 +1,7 @@ import React, { FC } from 'react'; -import { Icon, useStyles } from '@grafana/ui'; +import { Icon, useStyles, Tooltip } from '@grafana/ui'; import { Overlay } from 'shared/components/Elements/Overlay/Overlay'; import { Highlight } from 'shared/components/Hightlight/Highlight'; -import Tippy from '@tippyjs/react'; import { getStyles } from './Plan.styles'; import { Messages } from './Plan.messages'; import { usePlan } from './Plan.hooks'; @@ -21,16 +20,15 @@ export const Plan: FC = () => { {plan?.plan || ''}
- - - +
+ +
+
) : ( diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts index 5f4a62e483..e748aa4e4a 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/mongodb.ts @@ -9,7 +9,7 @@ export const mongodbMethods = { query: example.example, }); - return result.action_id; + return result.mongodb_explain.action_id; } catch (e) { console.error(e); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts index 61d9218d6b..e5ff2d592c 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mongodb/service.ts @@ -1,7 +1,9 @@ -import { apiRequestManagement } from 'shared/components/helpers/api'; +import { apiRequest } from 'shared/components/helpers/api'; export default { getTraditionalExplainJSONMongo(body) { - return apiRequestManagement.post('/Actions/StartMongoDBExplain', body); + const requestBody = { mongodb_explain: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, }; diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts index 5e812a3329..315b50e0b5 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/mysql.ts @@ -13,7 +13,7 @@ export const mysqlMethods = { service_id: example.service_id, }); - return result.action_id; + return result.mysql_show_create_table.action_id; }, getIndexes: async ({ example, tableName, database }) => { @@ -27,7 +27,7 @@ export const mysqlMethods = { service_id: example.service_id, }); - return result.action_id; + return result.mysql_show_index.action_id; }, getStatuses: async ({ example, tableName, database }) => { @@ -41,16 +41,16 @@ export const mysqlMethods = { service_id: example.service_id, }); - return result.action_id; + return result.mysql_show_table_status.action_id; }, getExplainJSON: async ({ example, queryId, placeholders }) => { try { const payload = getExplainPayload(example, queryId, placeholders); - const result = await MysqlDatabaseService.getTraditionalExplainJSONMysql(payload); + const result = await MysqlDatabaseService.getExplainJSON(payload); - return result.action_id; + return result.mysql_explain_json.action_id; } catch (e) { console.error(e); @@ -58,13 +58,13 @@ export const mysqlMethods = { } }, - getExplainTraditional: async ({ example, queryId, placeholders }) => { + getExplain: async ({ example, queryId, placeholders }) => { try { const payload = getExplainPayload(example, queryId, placeholders); - const result = await MysqlDatabaseService.getTraditionalExplainMysql(payload); + const result = await MysqlDatabaseService.getExplain(payload); - return result.action_id; + return result.mysql_explain.action_id; } catch (e) { console.error(e); diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts index 30e7284062..13c0e8b491 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/mysql/service.ts @@ -1,23 +1,33 @@ -import { apiRequestManagement } from 'shared/components/helpers/api'; +import { apiRequest } from 'shared/components/helpers/api'; export default { getShowCreateTableMySQL(body) { - return apiRequestManagement.post('/Actions/StartMySQLShowCreateTable', body); + const requestBody = { mysql_show_create_table: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, getMysqlTableStatus(body) { - return apiRequestManagement.post('/Actions/StartMySQLShowTableStatus', body); + const requestBody = { mysql_show_table_status: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, getMysqlIndex(body) { - return apiRequestManagement.post('/Actions/StartMySQLShowIndex', body); + const requestBody = { mysql_show_index: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, - getTraditionalExplainJSONMysql(body) { - return apiRequestManagement.post('/Actions/StartMySQLExplainJSON', body); + getExplainJSON(body) { + const requestBody = { mysql_explain_json: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, - getTraditionalExplainMysql(body) { - return apiRequestManagement.post('/Actions/StartMySQLExplain', body); + getExplain(body) { + const requestBody = { mysql_explain: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, }; diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts index 3d7494e80e..c44a775176 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/postgresql.ts @@ -12,7 +12,7 @@ export const postgresqlMethods = { database, }); - return result.action_id; + return result.postgresql_show_create_table.action_id; }, getIndexes: async ({ example, tableName, database }) => { if (!tableName) { @@ -25,6 +25,6 @@ export const postgresqlMethods = { database, }); - return result.action_id; + return result.postgresql_show_index.action_id; }, }; diff --git a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts index d65c0bce5e..43559f8201 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Details/database-models/postgresql/service.ts @@ -1,10 +1,14 @@ -import { apiRequestManagement } from 'shared/components/helpers/api'; +import { apiRequest } from 'shared/components/helpers/api'; export default { getPostgreSQLIndex(body) { - return apiRequestManagement.post('/Actions/StartPostgreSQLShowIndex', body); + const requestBody = { postgres_show_index: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, getShowCreateTablePostgreSQL(body) { - return apiRequestManagement.post('/Actions/StartPostgreSQLShowCreateTable', body); + const requestBody = { postgres_show_create_table: body }; + + return apiRequest.post('/v1/actions:startServiceAction', requestBody); }, }; diff --git a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts index f9aa071c59..601fbd50d0 100644 --- a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts +++ b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.constants.ts @@ -35,7 +35,7 @@ export const FILTERS_GROUPS = [ if (serviceType === Databases.mysql) { dashboardURL = `pxc-cluster-summary/pxc-galera-cluster-summary?var-cluster=${value}`; } else if (serviceType === Databases.mongodb) { - dashboardURL = `mongodb-cluster-summary/mongodb-cluster-summary?var-cluster=${value}`; + dashboardURL = `mongodb-cluster-summary/mongodb-sharded-cluster-summary?var-cluster=${value}`; } return dashboardURL ? `${subURL}${dashboardURL}` : ''; diff --git a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts index ca0ea0189f..59f279393b 100644 --- a/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Filters/Filters.service.ts @@ -29,7 +29,7 @@ export const markCheckedLabels = (labels, paramLabels) => { export default { getQueryOverviewFiltersList: async (paramLabels, from, to, mainMetric) => { - const { labels } = await apiRequestQAN.post('/Filters/Get', { + const { labels } = await apiRequestQAN.post('/metrics:getFilters', { labels: getLabelQueryParams(paramLabels), main_metric_name: mainMetric, period_start_from: from, diff --git a/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts b/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts index 504024e78f..56a8455938 100644 --- a/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts +++ b/pmm-app/src/pmm-qan/panel/components/Overview/Overview.service.ts @@ -20,6 +20,6 @@ export default { search: body.dimensionSearchText, }; - return apiRequestQAN.post('/GetReport', request); + return apiRequestQAN.post('/metrics:getReport', request); }, }; diff --git a/pmm-app/src/shared/components/Actions/Actions.service.ts b/pmm-app/src/shared/components/Actions/Actions.service.ts index 73dacd4db8..d6054df6e4 100644 --- a/pmm-app/src/shared/components/Actions/Actions.service.ts +++ b/pmm-app/src/shared/components/Actions/Actions.service.ts @@ -1,8 +1,8 @@ -import { apiRequestManagement } from '../helpers/api'; +import { apiRequest } from '../helpers/api'; import { ActionRequest, ActionResponse } from './Actions.types'; export const ActionsService = { getActionResult(body: ActionRequest): Promise { - return apiRequestManagement.post('/Actions/Get', body); + return apiRequest.get(`/v1/actions/${body.action_id}`); }, }; diff --git a/pmm-app/src/shared/components/helpers/api.ts b/pmm-app/src/shared/components/helpers/api.ts index eb1f9c3885..f4d7fafd4c 100644 --- a/pmm-app/src/shared/components/helpers/api.ts +++ b/pmm-app/src/shared/components/helpers/api.ts @@ -60,7 +60,7 @@ export class ApiRequest { } export const apiRequest = new ApiRequest({}); -export const apiRequestQAN = new ApiRequest({ baseURL: '/v0/qan' }); +export const apiRequestQAN = new ApiRequest({ baseURL: '/v1/qan' }); export const apiRequestManagement = new ApiRequest({ baseURL: '/v1/management' }); export const apiRequestInventory = new ApiRequest({ baseURL: '/v1/inventory' }); export const apiRequestSettings = new ApiRequest({ baseURL: '/v1/Settings' }); diff --git a/pmm-app/src/shared/core/Settings.service.ts b/pmm-app/src/shared/core/Settings.service.ts index cc279855e8..e97570c7dc 100644 --- a/pmm-app/src/shared/core/Settings.service.ts +++ b/pmm-app/src/shared/core/Settings.service.ts @@ -3,13 +3,13 @@ import { API } from './constants'; import { Settings, SettingsAPIResponse, SettingsPayload } from './types'; export const SettingsService = { - async getSettings(disableNotifications = false): Promise { - const { settings } = await apiRequest.post(API.SETTINGS, {}, disableNotifications) as SettingsAPIResponse; + async getSettings(): Promise { + const { settings } = await apiRequest.get(API.SETTINGS) as SettingsAPIResponse; return toModel(settings); }, }; const toModel = (response: SettingsPayload): Settings => ({ - updatesDisabled: response.updates_disabled, + updatesEnabled: response.updates_enabled, }); diff --git a/pmm-app/src/shared/core/__mocks__/Settings.service.ts b/pmm-app/src/shared/core/__mocks__/Settings.service.ts index b2ae50393d..5d545c0f43 100644 --- a/pmm-app/src/shared/core/__mocks__/Settings.service.ts +++ b/pmm-app/src/shared/core/__mocks__/Settings.service.ts @@ -2,6 +2,6 @@ import { Settings } from '../types'; export const SettingsService = { async getSettings(): Promise { - return Promise.resolve({ updatesDisabled: false }); + return Promise.resolve({ updatesEnabled: true }); }, }; diff --git a/pmm-app/src/shared/core/constants.ts b/pmm-app/src/shared/core/constants.ts index 44f1491f77..db430ec958 100644 --- a/pmm-app/src/shared/core/constants.ts +++ b/pmm-app/src/shared/core/constants.ts @@ -1,8 +1,7 @@ import { Databases } from './types'; export const API = { - ALERTMANAGER: '/alertmanager/api/v2', - SETTINGS: '/v1/Settings/Get', + SETTINGS: '/v1/server/settings', }; export const DATABASE_LABELS = { diff --git a/pmm-app/src/shared/core/types.ts b/pmm-app/src/shared/core/types.ts index c96009c23a..7d7ccbde08 100644 --- a/pmm-app/src/shared/core/types.ts +++ b/pmm-app/src/shared/core/types.ts @@ -7,7 +7,7 @@ export enum Databases { } export interface Settings { - updatesDisabled?: boolean; + updatesEnabled?: boolean; } export interface SettingsAPIResponse { @@ -15,7 +15,7 @@ export interface SettingsAPIResponse { } export interface SettingsPayload { - updates_disabled: boolean; + updates_enabled: boolean; } export interface PaginatedPayload { diff --git a/setup-page/src/App.jsx b/setup-page/src/App.jsx index a48c4fd2f9..78f6f9e3a3 100644 --- a/setup-page/src/App.jsx +++ b/setup-page/src/App.jsx @@ -16,16 +16,13 @@ export function App() { setLoading(true); try { - const response = await fetch('/v1/AWSInstanceCheck', { - method: 'POST', + const response = await fetch(`/v1/server/AWSInstance?instance_id${instanceId.trim()}`, { + method: 'GET', credentials: "include", cache: "no-cache", headers: { "Content-Type": "application/json", - }, - body: JSON.stringify({ - instance_id: instanceId.trim(), - }), + } }); if (!response.ok) {