diff --git a/charts/kubedb-grafana-dashboards/dashboards/mongodb/mongodb-summary-dashboard.json b/charts/kubedb-grafana-dashboards/dashboards/mongodb/mongodb-summary-dashboard.json index 7f5e1673c..3fd3b06bc 100644 --- a/charts/kubedb-grafana-dashboards/dashboards/mongodb/mongodb-summary-dashboard.json +++ b/charts/kubedb-grafana-dashboards/dashboards/mongodb/mongodb-summary-dashboard.json @@ -1,9 +1,67 @@ { + "__inputs": [ + { + "name": "DS_PROMETHEUS", + "label": "Prometheus", + "description": "", + "type": "datasource", + "pluginId": "prometheus", + "pluginName": "Prometheus" + } + ], + "__elements": [], + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "8.5.11" + }, + { + "type": "panel", + "id": "graph", + "name": "Graph (old)", + "version": "" + }, + { + "type": "datasource", + "id": "prometheus", + "name": "Prometheus", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -20,15 +78,20 @@ }, "description": "The dashboard is designed for KubeDB managed MongoDB", "editable": true, + "fiscalYearStartMonth": 0, "gnetId": 9628, "graphTooltip": 0, - "id": 31, - "iteration": 1691735886918, + "id": null, + "iteration": 1701237885197, "links": [], + "liveNow": false, "panels": [ { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -41,7 +104,10 @@ "type": "row" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Represent database status", "fieldConfig": { "defaults": { @@ -113,7 +179,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -122,15 +188,21 @@ "instant": true, "interval": "", "legendFormat": "{{phase}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Database Status", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "MongoDBVersion CR Name", "fieldConfig": { "defaults": { @@ -171,7 +243,6 @@ "y": 1 }, "id": 145, - "interval": null, "links": [], "maxDataPoints": 100, "options": { @@ -189,7 +260,7 @@ "text": {}, "textMode": "value" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -199,14 +270,21 @@ "interval": "", "intervalFactor": 1, "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Database Up-time", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "CPU Limit in core by MongoDB instance", "fieldConfig": { "defaults": { @@ -249,21 +327,28 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, "expr": "kubedb_com_mongodb_resource_limit_cpu{namespace=\"$namespace\", app=\"$app\"}", "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "CPU Limit (Core)", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "KubeDB MongoDB Total Memory Limit", "fieldConfig": { "defaults": { @@ -307,21 +392,28 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, "expr": "kubedb_com_mongodb_resource_limit_memory{namespace=\"$namespace\", app=\"$app\"}", "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Memory Limit", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Total storage request by MongoDB nodes", "fieldConfig": { "defaults": { @@ -366,7 +458,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -374,15 +466,21 @@ "instant": true, "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Storage Request", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "MongoDBVersion CR Name", "fieldConfig": { "defaults": { @@ -427,7 +525,6 @@ "y": 4 }, "id": 36, - "interval": null, "links": [], "maxDataPoints": 100, "options": { @@ -445,7 +542,7 @@ "text": {}, "textMode": "name" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -455,14 +552,21 @@ "interval": "", "intervalFactor": 1, "legendFormat": "{{version}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Version", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Total node count of MongoDB cluster", "fieldConfig": { "defaults": { @@ -509,7 +613,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -517,14 +621,21 @@ "instant": true, "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Total Nodes", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Initial Requested CPU amount by Postgres Instance", "fieldConfig": { "defaults": { @@ -568,7 +679,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -576,14 +687,21 @@ "instant": true, "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "CPU Request (Core)", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Initial Requested Memory amount by MongoDB Instance", "fieldConfig": { "defaults": { @@ -628,7 +746,7 @@ "text": {}, "textMode": "auto" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -636,14 +754,21 @@ "instant": true, "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Memory Request", "type": "stat" }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "KubeDB Database Resource terminationPolicy", "fieldConfig": { "defaults": { @@ -707,7 +832,7 @@ "text": {}, "textMode": "value" }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -716,7 +841,11 @@ "instant": true, "interval": "", "legendFormat": "{{terminationPolicy}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Termination Policy", @@ -724,7 +853,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -741,7 +873,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "CPU Usage by MongoDB pods", "fieldConfig": { "defaults": { @@ -779,7 +914,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -790,16 +925,18 @@ "targets": [ { "exemplar": false, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(sum by (namespace, pod, container) (irate(container_cpu_usage_seconds_total{image!=\"\",job=\"kubernetes-nodes-cadvisor\",metrics_path=\"/metrics/cadvisor\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}[5m])) * on (namespace, pod) group_left (node) topk by (namespace, pod) (1, max by (namespace, pod, node) (kube_pod_info{node!=\"\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}))) by (pod)", "interval": "", "legendFormat": "{{pod}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "CPU Usage", "tooltip": { "shared": true, @@ -808,37 +945,31 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "CPU Quote information in details", "fieldConfig": { "defaults": { @@ -846,9 +977,10 @@ "mode": "thresholds" }, "custom": { - "align": null, + "align": "auto", "displayMode": "auto", - "filterable": false + "filterable": false, + "inspect": false }, "decimals": 2, "displayName": "", @@ -880,12 +1012,10 @@ "value": "Time" }, { - "id": "custom.align", - "value": null + "id": "custom.align" }, { - "id": "custom.width", - "value": null + "id": "custom.width" } ] }, @@ -908,8 +1038,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -932,8 +1061,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -956,8 +1084,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -980,8 +1107,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1004,8 +1130,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1038,8 +1163,7 @@ ] }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] } @@ -1054,6 +1178,13 @@ "id": 122, "links": [], "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true, "sortBy": [ { @@ -1062,55 +1193,71 @@ } ] }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(sum by (namespace, pod, container) (irate(container_cpu_usage_seconds_total{image!=\"\",job=\"kubernetes-nodes-cadvisor\",metrics_path=\"/metrics/cadvisor\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}[5m])) * on (namespace, pod) group_left (node) topk by (namespace, pod) (1, max by (namespace, pod, node) (kube_pod_info{node!=\"\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}))) by (pod)", "format": "table", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, - "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(kube_pod_container_resource_requests{job=\"kubernetes-service-endpoints\",resource=\"cpu\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"} * on (namespace,pod) group_left () max by (namespace,pod) ((kube_pod_status_phase{phase=~\"Pending|Running\"} == 1))) by (pod)", "format": "table", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "B", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_requests{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(sum by (namespace, pod, container) (irate(container_cpu_usage_seconds_total{image!=\"\",job=\"kubernetes-nodes-cadvisor\",metrics_path=\"/metrics/cadvisor\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}[5m])) * on (namespace, pod) group_left (node) topk by (namespace, pod) (1, max by (namespace, pod, node) (kube_pod_info{node!=\"\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}))) by (pod) / sum(kube_pod_container_resource_requests{job=\"kubernetes-service-endpoints\",resource=\"cpu\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"} * on (namespace,pod) group_left () max by (namespace,pod) ((kube_pod_status_phase{phase=~\"Pending|Running\"} == 1))) by (pod)", "format": "table", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "C", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, - "expr": "sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(kube_pod_container_resource_limits{job=\"kubernetes-service-endpoints\",resource=\"cpu\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"} * on (namespace,pod) group_left() max by (namespace, pod) ((kube_pod_status_phase{phase=~\"Pending|Running\"} == 1))) by (pod)", "format": "table", "instant": true, "interval": "", "intervalFactor": 2, "legendFormat": "", "refId": "D", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, - "expr": "sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod) / sum(cluster:namespace:pod_cpu:active:kube_pod_container_resource_limits{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", + "expr": "sum(sum by (namespace, pod, container) (irate(container_cpu_usage_seconds_total{image!=\"\",job=\"kubernetes-nodes-cadvisor\",metrics_path=\"/metrics/cadvisor\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}[5m])) * on (namespace, pod) group_left (node) topk by (namespace, pod) (1, max by (namespace, pod, node) (kube_pod_info{node!=\"\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}))) by (pod) / sum(kube_pod_container_resource_limits{job=\"kubernetes-service-endpoints\",resource=\"cpu\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"} * on (namespace,pod) group_left() max by (namespace, pod) ((kube_pod_status_phase{phase=~\"Pending|Running\"} == 1))) by (pod)", "format": "table", "hide": false, "instant": true, @@ -1118,11 +1265,13 @@ "intervalFactor": 2, "legendFormat": "", "refId": "E", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], - "timeFrom": null, - "timeShift": null, "title": "CPU Quota", "transformations": [ { @@ -1136,7 +1285,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -1153,7 +1305,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Memory Usage by MongoDB pods", "fieldConfig": { "defaults": { @@ -1191,7 +1346,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -1202,16 +1357,18 @@ "targets": [ { "exemplar": false, - "expr": "sum(node_namespace_pod_container:container_memory_working_set_bytes{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\",container!=\"\"}) by (pod)", + "expr": "sum(container_memory_working_set_bytes{image!=\"\",job=\"kubernetes-nodes-cadvisor\",metrics_path=\"/metrics/cadvisor\",namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\",container!=\"\"} * on (namespace, pod) group_left (node) topk by (namespace, pod) (1, max by (namespace, pod, node) (kube_pod_info{node!=\"\"}))) by (pod)", "interval": "", "legendFormat": "{{pod}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Memory Usage", "tooltip": { "shared": true, @@ -1220,46 +1377,41 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { - "align": null, + "align": "auto", "displayMode": "auto", - "filterable": false + "filterable": false, + "inspect": false }, "decimals": 2, "displayName": "", @@ -1291,8 +1443,7 @@ "value": "Time" }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1315,8 +1466,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1339,8 +1489,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1363,8 +1512,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1387,8 +1535,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1411,8 +1558,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1435,8 +1581,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1459,8 +1604,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1483,8 +1627,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -1517,8 +1660,7 @@ ] }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] } @@ -1533,6 +1675,13 @@ "id": 124, "links": [], "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true, "sortBy": [ { @@ -1541,7 +1690,7 @@ } ] }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -1552,7 +1701,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1563,7 +1716,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "B", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1574,7 +1731,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "C", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1585,7 +1746,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "D", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1596,7 +1761,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "E", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1607,7 +1776,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "F", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1618,7 +1791,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "G", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1629,11 +1806,13 @@ "intervalFactor": 2, "legendFormat": "", "refId": "H", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], - "timeFrom": null, - "timeShift": null, "title": "Memory Quota", "transformations": [ { @@ -1647,7 +1826,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -1664,7 +1846,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "Disk usage by MongoDB pods", "fieldConfig": { "defaults": { @@ -1706,7 +1891,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -1720,13 +1905,15 @@ "expr": "avg(container_blkio_device_usage_total{namespace=\"$namespace\", pod=~\"$app-\\\\d+$|$app-shard\\\\d+-\\\\d+$\"}) by (pod)", "interval": "", "legendFormat": "{{pod}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Disk Usage", "tooltip": { "shared": true, @@ -1735,33 +1922,24 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "bytes", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1769,7 +1947,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "System Disk Usage Information", "fieldConfig": { "defaults": { @@ -1811,7 +1992,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -1827,7 +2008,11 @@ "interval": "", "intervalFactor": 1, "legendFormat": "{{pod}}-disk-write", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -1836,13 +2021,15 @@ "instant": false, "interval": "", "legendFormat": "{{pod}}-disk-read", - "refId": "B" + "refId": "B", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Disk R/W Info", "tooltip": { "shared": true, @@ -1851,33 +2038,24 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "none", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1885,7 +2063,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "unit": "short" @@ -1927,7 +2108,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -1943,15 +2124,16 @@ "interval": "", "intervalFactor": 2, "legendFormat": "{{pod}}", - "legendLink": null, "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "IOPS (Reads+Writes)", "tooltip": { "shared": true, @@ -1960,33 +2142,24 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -1994,7 +2167,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "unit": "Bps" @@ -2036,7 +2212,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -2052,15 +2228,16 @@ "interval": "", "intervalFactor": 2, "legendFormat": "{{pod}}", - "legendLink": null, "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "ThroughPut (Read+Write)", "tooltip": { "shared": true, @@ -2069,46 +2246,41 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { - "align": null, + "align": "auto", "displayMode": "auto", - "filterable": false + "filterable": false, + "inspect": false }, "decimals": 2, "displayName": "", @@ -2140,8 +2312,7 @@ "value": "Time" }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2164,8 +2335,7 @@ "value": -1 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2188,8 +2358,7 @@ "value": -1 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2212,8 +2381,7 @@ "value": -1 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2236,8 +2404,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2260,8 +2427,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2284,8 +2450,7 @@ "value": 2 }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] }, @@ -2318,8 +2483,7 @@ ] }, { - "id": "custom.align", - "value": null + "id": "custom.align" } ] } @@ -2334,9 +2498,16 @@ "id": 130, "links": [], "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": false, @@ -2347,7 +2518,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -2358,7 +2533,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "B", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -2369,7 +2548,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "C", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -2380,7 +2563,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "D", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -2391,7 +2578,11 @@ "intervalFactor": 2, "legendFormat": "", "refId": "E", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } }, { "exemplar": false, @@ -2402,11 +2593,13 @@ "intervalFactor": 2, "legendFormat": "", "refId": "F", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], - "timeFrom": null, - "timeShift": null, "title": "Current Storage IO", "transformations": [ { @@ -2420,7 +2613,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -2433,7 +2629,10 @@ "type": "row" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "This panel describes allocated persistent storage in a table format\n", "fieldConfig": { "defaults": { @@ -2443,7 +2642,8 @@ "custom": { "align": "center", "displayMode": "color-text", - "filterable": false + "filterable": false, + "inspect": false }, "mappings": [], "thresholds": { @@ -2467,9 +2667,16 @@ }, "id": 149, "options": { + "footer": { + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": true, @@ -2478,7 +2685,11 @@ "instant": true, "interval": "", "legendFormat": "", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Allocated Storage", @@ -2508,7 +2719,10 @@ "type": "table" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "This panel shows the persistent volume usage in percentage. ", "fieldConfig": { "defaults": { @@ -2516,6 +2730,8 @@ "mode": "thresholds" }, "mappings": [], + "max": 100, + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -2542,6 +2758,8 @@ "id": 151, "options": { "displayMode": "gradient", + "minVizHeight": 10, + "minVizWidth": 0, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -2553,7 +2771,7 @@ "showUnfilled": true, "text": {} }, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "targets": [ { "exemplar": true, @@ -2561,7 +2779,11 @@ "instant": true, "interval": "", "legendFormat": "{{pod}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Persistent Volume Usage", @@ -2569,7 +2791,10 @@ "type": "bargauge" }, { - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "description": "This panel describes the persistent volume usage in a time series. ", "fieldConfig": { "defaults": { @@ -2588,7 +2813,8 @@ "hideFrom": { "graph": false, "legend": false, - "tooltip": false + "tooltip": false, + "viz": false }, "lineInterpolation": "linear", "lineStyle": { @@ -2600,7 +2826,14 @@ "type": "linear" }, "showPoints": "never", - "spanNulls": true + "spanNulls": true, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], "thresholds": { @@ -2633,8 +2866,9 @@ "displayMode": "table", "placement": "right" }, - "tooltipOptions": { - "mode": "single" + "tooltip": { + "mode": "single", + "sort": "none" } }, "pluginVersion": "7.5.5", @@ -2645,7 +2879,11 @@ "interval": "", "intervalFactor": 1, "legendFormat": "{{pod}}", - "refId": "A" + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "title": "Persistent Volume Usage History", @@ -2653,7 +2891,10 @@ }, { "collapsed": false, - "datasource": null, + "datasource": { + "type": "prometheus", + "uid": "9IPu1TNSk" + }, "gridPos": { "h": 1, "w": 24, @@ -2670,7 +2911,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "unit": "Bps" @@ -2712,7 +2956,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -2728,15 +2972,16 @@ "interval": "", "intervalFactor": 2, "legendFormat": "{{pod}}", - "legendLink": null, "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Receive Bandwidth", "tooltip": { "shared": true, @@ -2745,33 +2990,24 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } }, { @@ -2779,7 +3015,10 @@ "bars": false, "dashLength": 10, "dashes": false, - "datasource": "${datasource}", + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, "fieldConfig": { "defaults": { "unit": "Bps" @@ -2821,7 +3060,7 @@ } }, "percentage": false, - "pluginVersion": "7.5.11", + "pluginVersion": "8.5.11", "pointradius": 2, "points": false, "renderer": "flot", @@ -2837,15 +3076,16 @@ "interval": "", "intervalFactor": 2, "legendFormat": "{{pod}}", - "legendLink": null, "refId": "A", - "step": 10 + "step": 10, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + } } ], "thresholds": [], - "timeFrom": null, "timeRegions": [], - "timeShift": null, "title": "Transmit Bandwidth", "tooltip": { "shared": true, @@ -2854,45 +3094,31 @@ }, "type": "graph", "xaxis": { - "buckets": null, "mode": "time", - "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true }, { "format": "short", - "label": null, "logBase": 1, - "max": null, - "min": null, "show": true } ], "yaxis": { - "align": false, - "alignLevel": null + "align": false } } ], "refresh": "10s", - "schemaVersion": 27, + "schemaVersion": 36, "style": "dark", - "tags": [ - "db", - "stats", - "mongodb", - "kubedb" - ], + "tags": [], "templating": { "list": [ { @@ -2901,8 +3127,6 @@ "text": "Prometheus", "value": "Prometheus" }, - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Datasource", @@ -2918,15 +3142,12 @@ }, { "allValue": "\".+\"", - "current": { - "selected": false, - "text": "demo", - "value": "demo" + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "datasource": "${datasource}", "definition": "label_values(kube_namespace_labels,namespace)", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "Namespace", @@ -2942,22 +3163,17 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "mg4", - "value": "mg4" + "current": {}, + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" }, - "datasource": "${datasource}", "definition": "label_values(kubedb_com_mongodb_status_phase{namespace=~\"$namespace\"},app)", - "description": null, - "error": null, "hide": 0, "includeAll": false, "label": "MongoDB", @@ -2973,7 +3189,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -3011,6 +3226,7 @@ }, "timezone": "", "title": "KubeDB / MongoDB / Summary", - "uid": "92M7QvyVk", - "version": 1 + "uid": "KTa0dqSIk", + "version": 3, + "weekStart": "" } \ No newline at end of file