diff --git a/dashboards/MongoDB/MongoDB_PBM_Details.json b/dashboards/MongoDB/MongoDB_PBM_Details.json new file mode 100644 index 0000000000..ea01903038 --- /dev/null +++ b/dashboards/MongoDB/MongoDB_PBM_Details.json @@ -0,0 +1,811 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": false, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": null, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "No" + }, + "1": { + "color": "green", + "index": 1, + "text": "Yes" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "min by(cluster) (mongodb_pbm_cluster_backup_configured{cluster=~\"$cluster\", replication_set=~\"$rs_nm\"}) OR min by(cluster) (mongodb_pbm_cluster_backup_configured{cluster=~\"$cluster\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{cluster}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Backup Configured", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "fillOpacity": 70, + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false + }, + "mappings": [ + { + "options": { + "0": { + "color": "green", + "index": 0, + "text": "Ok" + }, + "1": { + "color": "red", + "index": 1, + "text": "Fail" + }, + "2": { + "color": "red", + "index": 2, + "text": "Down" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 0 + }, + "id": 2, + "options": { + "alignValue": "center", + "legend": { + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "mergeValues": true, + "rowHeight": 0.9, + "showValue": "auto", + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "expr": "min by(host) (mongodb_pbm_agent_status{cluster=~\"$cluster\", replication_set=~\"$rs_nm\"}) OR min by(host) (mongodb_pbm_agent_status{cluster=~\"$cluster\", replica_set=~\"$rs_nm\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "__auto", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Agent Status", + "type": "state-timeline" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "mappings": [ + { + "options": { + "0": { + "color": "red", + "index": 0, + "text": "No" + }, + "1": { + "color": "green", + "index": 1, + "text": "Yes" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "none", + "justifyMode": "center", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "min by(cluster) (mongodb_pbm_cluster_pitr_backup_enabled{cluster=~\"$cluster\", replication_set=~\"$rs_nm\"}) OR min by(cluster) (mongodb_pbm_cluster_pitr_backup_enabled{cluster=~\"$cluster\"})", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{cluster}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "PITR Enabled", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Size", + "axisPlacement": "left", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 0, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "decbytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 8 + }, + "id": 4, + "options": { + "barRadius": 0, + "barWidth": 0.75, + "colorByField": "name", + "fullHighlight": false, + "groupWidth": 1, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "orientation": "auto", + "showValue": "always", + "stacking": "none", + "text": { + "valueSize": 14 + }, + "tooltip": { + "mode": "single", + "sort": "none" + }, + "xField": "name", + "xTickLabelRotation": 0, + "xTickLabelSpacing": 100 + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "min by(name) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\", replication_set=~\"$rs_nm\",status=~\"done\"}) OR min by(name) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\",status=~\"done\"})", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": true, + "legendFormat": "{{name}}", + "range": false, + "refId": "A", + "useBackend": false + } + ], + "title": "Size Bytes", + "type": "barchart" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "blue", + "mode": "fixed" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Time", + "axisPlacement": "left", + "fillOpacity": 80, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineWidth": 0, + "scaleDistribution": { + "type": "linear" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "s" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Value" + }, + "properties": [ + { + "id": "unit", + "value": "s" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 8 + }, + "id": 5, + "options": { + "barRadius": 0, + "barWidth": 0.75, + "colorByField": "name", + "fullHighlight": false, + "groupWidth": 1, + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "orientation": "auto", + "showValue": "auto", + "stacking": "none", + "text": { + "valueSize": 14 + }, + "tooltip": { + "mode": "single", + "sort": "asc" + }, + "xField": "name", + "xTickLabelRotation": 0, + "xTickLabelSpacing": -200 + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "avg by(name) (mongodb_pbm_backup_duration_seconds{cluster=~\"$cluster\", replication_set=~\"$rs_nm\",status=~\"done\"}) OR avg by(name) (mongodb_pbm_backup_duration_seconds{cluster=~\"$cluster\",status=~\"done\"})", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": true, + "legendFormat": "{{name}}", + "range": false, + "refId": "A", + "useBackend": false + } + ], + "title": "Duration", + "type": "barchart" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "custom": { + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false + }, + "mappings": [ + { + "options": { + "done": { + "index": 0, + "text": "Done" + }, + "error": { + "index": 1, + "text": "Error" + }, + "success": { + "index": 2, + "text": "Success" + } + }, + "type": "value" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 6, + "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, + "showHeader": true + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "editorMode": "code", + "exemplar": false, + "expr": "min by(name, status) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\", replication_set=~\"$rs_nm\",status=~\"done|error\"}) OR min by(name, status) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\",status=~\"done|error\"})", + "format": "time_series", + "hide": false, + "instant": false, + "legendFormat": "", + "range": true, + "refId": "A" + } + ], + "title": "Backup history", + "transformations": [ + { + "id": "timeSeriesTable", + "options": { + "A": { + "timeField": "Time" + } + } + }, + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Trend #A": true, + "Value": true + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "Time": "", + "artifact_name": "Name", + "name": "Name", + "status": "Status" + } + } + } + ], + "type": "table" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "fieldMinMax": false, + "mappings": [], + "noValue": "No Data", + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "TIme:" + }, + "properties": [ + { + "id": "unit", + "value": "dateTimeAsIso" + } + ] + } + ] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 16 + }, + "id": 7, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "center", + "orientation": "horizontal", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "/.*/", + "values": false + }, + "showPercentChange": false, + "text": { + "titleSize": 18, + "valueSize": 18 + }, + "textMode": "value_and_name", + "wideLayout": false + }, + "pluginVersion": "11.1.8", + "targets": [ + { + "disableTextWrap": false, + "editorMode": "code", + "exemplar": false, + "expr": "min by (name) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\", replication_set=~\"$rs_nm\",status=~\"done\"}) OR min by(name) (mongodb_pbm_backup_size_bytes{cluster=~\"$cluster\",status=~\"done\"})", + "format": "table", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{name}}", + "range": true, + "refId": "A", + "useBackend": false + } + ], + "title": "Last Successful Backup", + "transformations": [ + { + "id": "organize", + "options": { + "excludeByName": { + "Time": true, + "Value": true + }, + "includeByName": {}, + "indexByName": {}, + "renameByName": { + "name": "Name:" + } + } + }, + { + "id": "calculateField", + "options": { + "alias": "TIme:", + "mode": "reduceRow", + "reduce": { + "include": [ + "Name:" + ], + "reducer": "lastNotNull" + }, + "replaceFields": false + } + } + ], + "type": "stat" + } + ], + "refresh": "", + "schemaVersion": 39, + "tags": [], + "templating": { + "list": [ + { + "allValue": ".*", + "current": { + "selected": false, + "text": "All", + "value": "$__all" + }, + "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "hide": 0, + "includeAll": true, + "label": "Environment", + "multi": false, + "name": "environment", + "options": [], + "query": { + "query": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", + "refId": "Metrics-environment-Variable-Query" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "tagValuesQuery": "", + "tagsQuery": "", + "type": "query", + "useTags": false + }, + { + "allFormat": "blob", + "allValue": ".*", + "current": { + "selected": false, + "text": "replicaset", + "value": "replicaset" + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "hide": 0, + "includeAll": false, + "label": "Cluster", + "multi": false, + "multiFormat": "glob", + "name": "cluster", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\"},cluster)", + "refId": "StandardVariableQuery" + }, + "refresh": 2, + "regex": "", + "skipUrlSync": false, + "sort": 5, + "type": "query", + "useTags": false + }, + { + "current": { + "selected": false, + "text": "rs", + "value": "rs" + }, + "definition": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "hide": 0, + "includeAll": false, + "label": "Replica Set", + "multi": false, + "name": "rs_nm", + "options": [], + "query": { + "query": "label_values(mongodb_mongod_replset_my_state{environment=~\"$environment\",cluster=~\"$cluster\"}, set)", + "refId": "StandardVariableQuery" + }, + "refresh": 1, + "regex": "", + "skipUrlSync": false, + "sort": 0, + "type": "query" + } + ] + }, + "time": { + "from": "now-12h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "MongoDB PBM Details", + "uid": "mongodb-pbm-details", + "version": 1, + "weekStart": "" +} diff --git a/pmm-app/src/plugin.json b/pmm-app/src/plugin.json index 675457a6a6..5baadbb51d 100755 --- a/pmm-app/src/plugin.json +++ b/pmm-app/src/plugin.json @@ -2,16 +2,26 @@ "type": "app", "name": "PMM", "id": "pmm-app", - "info": { "description": "Percona Management and Monitoring dashboards", "author": { "name": "Percona" }, - "keywords": ["percona", "query analytics", "pmm", "qan"], + "keywords": [ + "percona", + "query analytics", + "pmm", + "qan" + ], "links": [ - { "name": "Project site", "url": "https://github.com/percona/pmm" }, - { "name": "AGPL-3 License", "url": "https://github.com/percona/pmm/blob/main/LICENSE" } + { + "name": "Project site", + "url": "https://github.com/percona/pmm" + }, + { + "name": "AGPL-3 License", + "url": "https://github.com/percona/pmm/blob/main/LICENSE" + } ], "logos": { "small": "img/pmm-logo.svg", @@ -192,7 +202,11 @@ "name": "MySQL Group Replication Summary", "path": "dashboards/MySQL/MySQL_Group_Replication_Summary.json" }, - { "type": "dashboard", "name": "Network Details", "path": "dashboards/OS/Network_Details.json" }, + { + "type": "dashboard", + "name": "Network Details", + "path": "dashboards/OS/Network_Details.json" + }, { "type": "dashboard", "name": "Nodes Compare", @@ -287,6 +301,11 @@ "type": "dashboard", "name": "Environment Overview", "path": "dashboards/Experimental/Environments_Overview.json" + }, + { + "type": "dashboard", + "name": "MongoDB PBM Details", + "path": "dashboards/MongoDB/MongoDB_PBM_Details.json" } ], "dependencies": {