From 8035b030326f074c92ba25785b3cc1fd7f69651a Mon Sep 17 00:00:00 2001 From: Roman Novikov Date: Mon, 22 Jan 2024 14:17:09 +0200 Subject: [PATCH 1/6] Add files via upload --- ... Instance Summary (new)-1705925741738.json | 2997 +++++++++++++++++ 1 file changed, 2997 insertions(+) create mode 100644 dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json diff --git a/dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json b/dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json new file mode 100644 index 0000000000..70fac2f3f7 --- /dev/null +++ b/dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json @@ -0,0 +1,2997 @@ +{ + "__inputs": [ + { + "name": "DS_METRICS", + "label": "Metrics", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "9.2.20" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph (old)", + "version": "" + }, + { + "type": "panel", + "id": "natel-discrete-panel", + "name": "Discrete", + "version": "0.1.1" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "text", + "name": "Text", + "version": "" + } + ], + "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": 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" + }, + { + "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": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1030, + "panels": [], + "title": "MongoDB Instance Summary", + "type": "row" + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "PA58DA793C7250F1B" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 2 + }, + "id": 1009, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PA58DA793C7250F1B" + }, + "refId": "A" + } + ], + "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", + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "collapsed": false, + "datasource": { + "type": "prometheus", + "uid": "PA58DA793C7250F1B" + }, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 7 + }, + "id": 1011, + "panels": [], + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "PA58DA793C7250F1B" + }, + "refId": "A" + } + ], + "type": "row" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:254", + "alias": "/repl.*/", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:207", + "decimals": 2, + "format": "ops", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:208", + "format": "ops", + "label": "", + "logBase": 1, + "min": "0", + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_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 + } + ], + "title": "Document Operations", + "type": "bargauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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", + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "description": "Show the 5 collections that are most frequently read.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:592", + "decimals": 2, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:593", + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": 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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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 + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:500", + "decimals": 2, + "format": "µs", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:501", + "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, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": 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": [ + { + "$$hashKey": "object:1998", + "alias": "Max Core Utilization", + "lines": false, + "pointradius": 1, + "points": true, + "stack": false + } + ], + "spaceLength": 10, + "stack": true, + "steppedLine": true, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2011", + "decimals": 2, + "format": "percent", + "label": "", + "logBase": 1, + "max": "100", + "min": 0, + "show": true + }, + { + "$$hashKey": "object:2012", + "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, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": 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": [ + { + "$$hashKey": "object:2202", + "alias": "Max CPU Core Utilization", + "lines": false, + "pointradius": 1, + "points": true, + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "targets": [ + { + "calculatedInterval": "2s", + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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", + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:2215", + "decimals": 0, + "format": "short", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "$$hashKey": "object:2216", + "decimals": 2, + "format": "percentunit", + "label": "", + "logBase": 1, + "max": "1", + "min": 0, + "show": true + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:1238", + "alias": "fc_count", + "yaxis": 2 + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": [ + { + "$$hashKey": "object:500", + "decimals": 2, + "format": "µs", + "logBase": 1, + "min": "0", + "show": true + }, + { + "$$hashKey": "object:501", + "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, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": 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": [ + { + "$$hashKey": "object:2095", + "alias": "Disk Writes (Page Out)", + "transform": "negative-Y" + }, + { + "$$hashKey": "object:2096", + "alias": "Total", + "legend": false, + "lines": false + }, + { + "$$hashKey": "object:2097", + "alias": "Swap Out (Writes)", + "transform": "negative-Y" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "targets": [ + { + "calculatedInterval": "2s", + "datasource": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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": { + "type": "prometheus", + "uid": "${DS_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", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 2, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:2118", + "decimals": 2, + "format": "Bps", + "label": "Page Out (-) / Page In (+)", + "logBase": 1, + "show": true + }, + { + "$$hashKey": "object:2119", + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_METRICS}" + }, + "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": "QvMEcl4Sz", + "version": 4, + "weekStart": "" +} \ No newline at end of file From 6e0d2b083d0c47ecf043c8fb6cb7244105f0a3a7 Mon Sep 17 00:00:00 2001 From: Roman Novikov Date: Mon, 22 Jan 2024 14:19:01 +0200 Subject: [PATCH 2/6] Rename MongoDB Instance Summary (new)-1705925741738.json to MongoDB_Instance_Summary_(new).json --- ...)-1705925741738.json => MongoDB_Instance_Summary_(new).json} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename dashboards/Experimental/{MongoDB Instance Summary (new)-1705925741738.json => MongoDB_Instance_Summary_(new).json} (99%) diff --git a/dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json similarity index 99% rename from dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json rename to dashboards/Experimental/MongoDB_Instance_Summary_(new).json index 70fac2f3f7..b0771c24c1 100644 --- a/dashboards/Experimental/MongoDB Instance Summary (new)-1705925741738.json +++ b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json @@ -2994,4 +2994,4 @@ "uid": "QvMEcl4Sz", "version": 4, "weekStart": "" -} \ No newline at end of file +} From ab8aeb081a6050b3fa899e8f36c6d69f8b0429fd Mon Sep 17 00:00:00 2001 From: Roman Novikov Date: Mon, 22 Jan 2024 16:28:06 +0200 Subject: [PATCH 3/6] Update MongoDB_Instance_Summary_(new).json --- .../MongoDB_Instance_Summary_(new).json | 282 +++++++++--------- 1 file changed, 136 insertions(+), 146 deletions(-) diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json index b0771c24c1..cb4f876678 100644 --- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json +++ b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json @@ -1,65 +1,4 @@ { - "__inputs": [ - { - "name": "DS_METRICS", - "label": "Metrics", - "description": "", - "type": "datasource", - "pluginId": "prometheus", - "pluginName": "Prometheus" - } - ], - "__elements": {}, - "__requires": [ - { - "type": "panel", - "id": "bargauge", - "name": "Bar gauge", - "version": "" - }, - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "9.2.20" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph (old)", - "version": "" - }, - { - "type": "panel", - "id": "natel-discrete-panel", - "name": "Discrete", - "version": "0.1.1" - }, - { - "type": "panel", - "id": "piechart", - "name": "Pie chart", - "version": "" - }, - { - "type": "datasource", - "id": "prometheus", - "name": "Prometheus", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "stat", - "name": "Stat", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - } - ], "annotations": { "list": [ { @@ -116,7 +55,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": null, + "id": 72, "links": [ { "icon": "doc", @@ -290,7 +229,7 @@ "crosshairColor": "#8F070C", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).", "display": "timeline", @@ -328,7 +267,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "expr": "sum by (set) (mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", "interval": "$interval", @@ -471,7 +410,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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.", @@ -539,7 +478,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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]))", @@ -555,7 +494,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))", @@ -571,7 +510,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "avg by (service_name, legacy_op_type) (rate(mongodb_ss_opcounters{service_name=~\"$service_name\", legacy_op_type!=\"command\"}[$interval]))", @@ -632,7 +571,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)", "fieldConfig": { @@ -680,7 +619,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -698,7 +637,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Ratio of Documents returned or Index entries scanned / full documents scanned", "fieldConfig": { @@ -755,7 +694,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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]))", @@ -771,7 +710,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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])))", @@ -791,7 +730,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Operations queued due to a lock.", "fieldConfig": { @@ -841,7 +780,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "expr": "avg by (service_name,type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", "format": "time_series", @@ -859,7 +798,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.", "fieldConfig": { @@ -923,7 +862,7 @@ "calculatedInterval": "10m", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "datasourceErrors": {}, "errors": {}, @@ -945,7 +884,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Sum of disk space on all partitions. Note it can be significantly over-reported in some installations", "fieldConfig": { @@ -1020,7 +959,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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))", @@ -1037,7 +976,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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": { @@ -1106,7 +1045,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -1122,7 +1061,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Lowest percent of the disk space available", "fieldConfig": { @@ -1194,7 +1133,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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\"}))", @@ -1210,7 +1149,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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": { @@ -1262,7 +1201,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -1276,7 +1215,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -1293,7 +1232,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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": { @@ -1365,7 +1304,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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\"}))", @@ -1381,7 +1320,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "description": "Show the 5 collections that are most frequently read.", "fieldConfig": { @@ -1394,8 +1333,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" } ] } @@ -1431,7 +1369,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"})[$interval]))", @@ -1448,7 +1386,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "fieldConfig": { "defaults": { @@ -1460,8 +1398,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1498,7 +1435,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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]))", @@ -1519,7 +1456,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "decimals": 2, "description": "TCP connections (Incoming)", @@ -1581,7 +1518,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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\"})", @@ -1644,7 +1581,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "decimals": 2, "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", @@ -1716,7 +1653,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", @@ -1732,7 +1669,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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\"})", @@ -1793,7 +1730,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "decimals": 2, "description": "Average latency of operations (classified by read, write, or (other) command)", @@ -1845,7 +1782,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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))", @@ -1905,7 +1842,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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.", @@ -1974,7 +1911,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -1986,7 +1923,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -1999,7 +1936,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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)", @@ -2011,7 +1948,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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)", @@ -2074,7 +2011,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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.", @@ -2142,7 +2079,7 @@ "calculatedInterval": "2s", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "datasourceErrors": {}, "errors": {}, @@ -2162,7 +2099,7 @@ "calculatedInterval": "2s", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "datasourceErrors": {}, "errors": {}, @@ -2225,7 +2162,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "decimals": 2, "description": "Average latency of operations (classified by read, write, or (other) command)", @@ -2283,7 +2220,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", @@ -2295,7 +2232,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", @@ -2352,7 +2289,7 @@ "dashes": false, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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.", @@ -2433,7 +2370,7 @@ "calculatedInterval": "2s", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "datasourceErrors": {}, "errors": {}, @@ -2451,7 +2388,7 @@ "calculatedInterval": "2s", "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "datasourceErrors": {}, "errors": {}, @@ -2468,7 +2405,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -2480,7 +2417,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -2492,7 +2429,7 @@ { "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "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", @@ -2616,10 +2553,14 @@ { "allFormat": "blob", "allValue": ".*", - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "", "hide": 0, @@ -2642,10 +2583,14 @@ }, { "allFormat": "glob", - "current": {}, + "current": { + "selected": false, + "text": "mongo-60-cfg-0", + "value": "mongo-60-cfg-0" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)", "hide": 0, @@ -2669,10 +2614,14 @@ }, { "allFormat": "glob", - "current": {}, + "current": { + "selected": false, + "text": "mongo-60-cfg-0", + "value": "mongo-60-cfg-0" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", "hide": 2, @@ -2696,10 +2645,14 @@ }, { "allValue": ".*", - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", "hide": 2, @@ -2722,10 +2675,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", "hide": 2, @@ -2748,10 +2705,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", "hide": 2, @@ -2774,10 +2735,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", "hide": 2, @@ -2800,10 +2765,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", "hide": 2, @@ -2826,10 +2795,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", "hide": 2, @@ -2852,10 +2825,14 @@ "useTags": false }, { - "current": {}, + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", "hide": 2, @@ -2878,10 +2855,14 @@ "useTags": false }, { - "current": {}, + "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" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", "hide": 2, @@ -2905,10 +2886,14 @@ }, { "allFormat": "glob", - "current": {}, + "current": { + "selected": false, + "text": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91", + "value": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", "hide": 2, @@ -2932,10 +2917,15 @@ }, { "allFormat": "glob", - "current": {}, + "current": { + "isNone": true, + "selected": false, + "text": "None", + "value": "" + }, "datasource": { "type": "prometheus", - "uid": "${DS_METRICS}" + "uid": "PA58DA793C7250F1B" }, "definition": "label_values(up{service_name=~\"$service_name\"},service_name)", "hide": 2, From 7d9f39cd97fdadad4cf44a1f4935d038dfb95004 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara Date: Wed, 24 Jan 2024 15:37:12 +0530 Subject: [PATCH 4/6] PMM-12750 remove datasources --- .../MongoDB_Instance_Summary_(new).json | 286 +----------------- 1 file changed, 1 insertion(+), 285 deletions(-) diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json index cb4f876678..b02a4597ab 100644 --- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json +++ b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json @@ -191,10 +191,6 @@ }, { "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "gridPos": { "h": 1, "w": 24, @@ -205,10 +201,6 @@ "panels": [], "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "refId": "A" } ], @@ -227,10 +219,6 @@ } ], "crosshairColor": "#8F070C", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Read more about [Replica Set Member States](https://docs.mongodb.com/manual/reference/replica-states/).", "display": "timeline", "expandFromQueryS": 0, @@ -265,10 +253,6 @@ "showTransitionCount": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "expr": "sum by (set) (mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", "interval": "$interval", "legendFormat": "{{set}}", @@ -380,10 +364,6 @@ }, { "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "gridPos": { "h": 1, "w": 24, @@ -394,10 +374,6 @@ "panels": [], "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "refId": "A" } ], @@ -408,10 +384,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -476,10 +448,6 @@ "steppedLine": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -492,10 +460,6 @@ "step": 300 }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_metrics_ttl_deletedDocuments{service_name=~\"$service_name\"}[$interval]))", "format": "time_series", @@ -508,10 +472,6 @@ "step": 300 }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -569,10 +529,6 @@ } }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Docs per second inserted, updated, deleted or returned. (N.b. not 1-to-1 with operation counts.)", "fieldConfig": { "defaults": { @@ -617,10 +573,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -635,10 +587,6 @@ "type": "bargauge" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Ratio of Documents returned or Index entries scanned / full documents scanned", "fieldConfig": { "defaults": { @@ -692,10 +640,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -708,10 +652,6 @@ "step": 300 }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -728,10 +668,6 @@ "type": "piechart" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Operations queued due to a lock.", "fieldConfig": { "defaults": { @@ -778,10 +714,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "expr": "avg by (service_name,type) (mongodb_mongod_global_lock_current_queue{service_name=~\"$service_name\"})", "format": "time_series", "hide": false, @@ -796,10 +728,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "The parameter shows how long a system has been “up” and running without a shut down or restart.", "fieldConfig": { "defaults": { @@ -860,10 +788,6 @@ "targets": [ { "calculatedInterval": "10m", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "datasourceErrors": {}, "errors": {}, "exemplar": true, @@ -882,10 +806,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Sum of disk space on all partitions. Note it can be significantly over-reported in some installations", "fieldConfig": { "defaults": { @@ -957,10 +877,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -974,10 +890,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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": { @@ -1043,10 +955,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1059,10 +967,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Lowest percent of the disk space available", "fieldConfig": { "defaults": { @@ -1131,10 +1035,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1147,10 +1047,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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": { @@ -1199,10 +1095,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1213,10 +1105,6 @@ "step": 300 }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1230,10 +1118,6 @@ "type": "bargauge" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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": { @@ -1302,10 +1186,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1318,10 +1198,6 @@ "type": "stat" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "description": "Show the 5 collections that are most frequently read.", "fieldConfig": { "defaults": { @@ -1367,10 +1243,6 @@ "repeatDirection": "v", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "editorMode": "code", "expr": "topk (5,sum by (service_name,database,collection) (irate(mongodb_top_queries_count{service_name=~\"$service_name\"})[$interval]))", "hide": false, @@ -1384,10 +1256,6 @@ "type": "bargauge" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "fieldConfig": { "defaults": { "color": { @@ -1433,10 +1301,6 @@ "pluginVersion": "9.2.20", "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -1454,10 +1318,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "decimals": 2, "description": "TCP connections (Incoming)", "editable": true, @@ -1516,10 +1376,6 @@ "steppedLine": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1579,10 +1435,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "decimals": 2, "description": "Timespan 'window' between newest and the oldest op in the Oplog collection.", "editable": true, @@ -1651,10 +1503,6 @@ "steppedLine": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "editorMode": "code", "expr": "time()-avg by (service_name) (mongodb_mongod_replset_oplog_tail_timestamp{service_name=~\"$service_name\"})", "hide": false, @@ -1667,10 +1515,6 @@ "step": 300 }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -1728,10 +1572,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "decimals": 2, "description": "Average latency of operations (classified by read, write, or (other) command)", "fieldConfig": { @@ -1780,10 +1620,6 @@ "steppedLine": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1840,10 +1676,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -1909,10 +1741,6 @@ "steppedLine": true, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -1921,10 +1749,6 @@ "refId": "B" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -1934,10 +1758,6 @@ "refId": "C" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -1946,10 +1766,6 @@ "refId": "A" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -2009,10 +1825,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -2077,10 +1889,6 @@ "targets": [ { "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "datasourceErrors": {}, "errors": {}, "exemplar": true, @@ -2097,10 +1905,6 @@ }, { "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "datasourceErrors": {}, "errors": {}, "exemplar": true, @@ -2160,10 +1964,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "decimals": 2, "description": "Average latency of operations (classified by read, write, or (other) command)", "fieldConfig": { @@ -2218,10 +2018,6 @@ "steppedLine": false, "targets": [ { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedCount{service_name=~\"$service_name\"}[$interval]))", "interval": "$interval", @@ -2230,10 +2026,6 @@ "refId": "A" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "editorMode": "code", "expr": "avg by (service_name) (rate(mongodb_ss_flowControl_isLaggedTimeMicros{service_name=~\"$service_name\"}[$interval]))", "hide": false, @@ -2287,10 +2079,6 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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, @@ -2368,10 +2156,6 @@ "targets": [ { "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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)", @@ -2386,10 +2170,6 @@ }, { "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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))", @@ -2403,10 +2183,6 @@ "target": "" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -2415,10 +2191,6 @@ "refId": "C" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -2427,10 +2199,6 @@ "refId": "D" }, { - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "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", @@ -2558,10 +2326,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "", "hide": 0, "includeAll": true, @@ -2588,10 +2352,6 @@ "text": "mongo-60-cfg-0", "value": "mongo-60-cfg-0" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(mongodb_up{cluster=~\"$cluster\"}, service_name)", "hide": 0, "includeAll": false, @@ -2619,10 +2379,6 @@ "text": "mongo-60-cfg-0", "value": "mongo-60-cfg-0" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(mongodb_up{cluster=~\"$cluster\",service_name=~\"$service_name\"}, node_name)", "hide": 2, "includeAll": false, @@ -2650,10 +2406,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", "hide": 2, "includeAll": true, @@ -2680,10 +2432,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", "hide": 2, "includeAll": true, @@ -2710,10 +2458,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", "hide": 2, "includeAll": true, @@ -2740,10 +2484,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", "hide": 2, "includeAll": true, @@ -2770,10 +2510,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", "hide": 2, "includeAll": true, @@ -2800,10 +2536,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", "hide": 2, "includeAll": true, @@ -2830,10 +2562,6 @@ "text": "All", "value": "$__all" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", "hide": 2, "includeAll": true, @@ -2860,10 +2588,6 @@ "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" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "query_result(mongodb_mongod_replset_my_state{service_name=~\"$service_name\"})", "hide": 2, "includeAll": false, @@ -2891,10 +2615,6 @@ "text": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91", "value": "/service_id/7fbc16ca-a6bc-43e2-9af5-8e2786898c91" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(mongodb_up{service_name=~\"$service_name\"}, service_id)", "hide": 2, "includeAll": false, @@ -2923,10 +2643,6 @@ "text": "None", "value": "" }, - "datasource": { - "type": "prometheus", - "uid": "PA58DA793C7250F1B" - }, "definition": "label_values(up{service_name=~\"$service_name\"},service_name)", "hide": 2, "includeAll": false, @@ -2981,7 +2697,7 @@ }, "timezone": "", "title": "MongoDB Instance Summary (new)", - "uid": "QvMEcl4Sz", + "uid": "mongodb-instance-summary-new", "version": 4, "weekStart": "" } From 2859a0399d09531e2b6c29d122c3f1c1ed0aac32 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara Date: Wed, 24 Jan 2024 15:56:18 +0530 Subject: [PATCH 5/6] PMM-12750 Remove rows --- .../MongoDB_Instance_Summary_(new).json | 36 +------------------ 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json index b02a4597ab..524cdecdcf 100644 --- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json +++ b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json @@ -177,7 +177,7 @@ "type": "row" }, { - "collapsed": true, + "collapsed": false, "gridPos": { "h": 1, "w": 24, @@ -189,23 +189,6 @@ "title": "MongoDB Instance Summary", "type": "row" }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 2 - }, - "id": 1009, - "panels": [], - "targets": [ - { - "refId": "A" - } - ], - "type": "row" - }, { "backgroundColor": "rgba(128,128,128,0.1)", "colorMaps": [ @@ -362,23 +345,6 @@ "writeLastValue": true, "writeMetricNames": false }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 7 - }, - "id": 1011, - "panels": [], - "targets": [ - { - "refId": "A" - } - ], - "type": "row" - }, { "aliasColors": {}, "bars": false, From a7f05fbfb8bad1f45920514fce734ffa7d03f282 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara Date: Wed, 24 Jan 2024 21:19:55 +0530 Subject: [PATCH 6/6] PMM-12750 remove hashkey --- .../MongoDB_Instance_Summary_(new).json | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json index 524cdecdcf..11d7ff30eb 100644 --- a/dashboards/Experimental/MongoDB_Instance_Summary_(new).json +++ b/dashboards/Experimental/MongoDB_Instance_Summary_(new).json @@ -404,7 +404,6 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:254", "alias": "/repl.*/", "yaxis": 2 } @@ -473,7 +472,6 @@ ], "yaxes": [ { - "$$hashKey": "object:207", "decimals": 2, "format": "ops", "label": "", @@ -482,7 +480,6 @@ "show": true }, { - "$$hashKey": "object:208", "format": "ops", "label": "", "logBase": 1, @@ -1377,7 +1374,6 @@ ], "yaxes": [ { - "$$hashKey": "object:592", "decimals": 2, "format": "short", "label": "", @@ -1386,7 +1382,6 @@ "show": true }, { - "$$hashKey": "object:593", "format": "short", "logBase": 1, "show": false @@ -1610,7 +1605,6 @@ }, "yaxes": [ { - "$$hashKey": "object:500", "decimals": 2, "format": "µs", "logBase": 1, @@ -1618,7 +1612,6 @@ "show": true }, { - "$$hashKey": "object:501", "format": "short", "logBase": 1, "show": false @@ -1694,7 +1687,6 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:1998", "alias": "Max Core Utilization", "lines": false, "pointradius": 1, @@ -1757,7 +1749,6 @@ }, "yaxes": [ { - "$$hashKey": "object:2011", "decimals": 2, "format": "percent", "label": "", @@ -1767,7 +1758,6 @@ "show": true }, { - "$$hashKey": "object:2012", "format": "short", "logBase": 1, "min": 0, @@ -1841,7 +1831,6 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:2202", "alias": "Max CPU Core Utilization", "lines": false, "pointradius": 1, @@ -1902,7 +1891,6 @@ }, "yaxes": [ { - "$$hashKey": "object:2215", "decimals": 0, "format": "short", "label": "", @@ -1911,7 +1899,6 @@ "show": true }, { - "$$hashKey": "object:2216", "decimals": 2, "format": "percentunit", "label": "", @@ -1974,7 +1961,6 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:1238", "alias": "fc_count", "yaxis": 2 } @@ -2017,7 +2003,6 @@ }, "yaxes": [ { - "$$hashKey": "object:500", "decimals": 2, "format": "µs", "logBase": 1, @@ -2025,7 +2010,6 @@ "show": true }, { - "$$hashKey": "object:501", "format": "short", "logBase": 1, "min": "0", @@ -2100,18 +2084,15 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:2095", "alias": "Disk Writes (Page Out)", "transform": "negative-Y" }, { - "$$hashKey": "object:2096", "alias": "Total", "legend": false, "lines": false }, { - "$$hashKey": "object:2097", "alias": "Swap Out (Writes)", "transform": "negative-Y" } @@ -2190,7 +2171,6 @@ }, "yaxes": [ { - "$$hashKey": "object:2118", "decimals": 2, "format": "Bps", "label": "Page Out (-) / Page In (+)", @@ -2198,7 +2178,6 @@ "show": true }, { - "$$hashKey": "object:2119", "format": "bytes", "logBase": 1, "min": 0,