From 1393b4f35f7bbf5d17827d1d52a69a1988641a00 Mon Sep 17 00:00:00 2001 From: Yash Sartanpara Date: Wed, 17 Jan 2024 16:17:07 +0530 Subject: [PATCH] PMM-12802 update polystat for mysql dashboard --- .../MySQL/MySQL_Instances_Overview.json | 3980 +++++++++-------- 1 file changed, 2132 insertions(+), 1848 deletions(-) diff --git a/dashboards/MySQL/MySQL_Instances_Overview.json b/dashboards/MySQL/MySQL_Instances_Overview.json index 64534fb2c2..d1f08abf04 100644 --- a/dashboards/MySQL/MySQL_Instances_Overview.json +++ b/dashboards/MySQL/MySQL_Instances_Overview.json @@ -1112,13 +1112,13 @@ "globalTooltipsShowTimestampEnabled": true, "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": 2, "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": 2, "tooltipSecondarySortByField": "value", "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", + "globalDisplayTextTriggeredEmpty": "No Data", "globalShowValueEnabled": true, "globalShape": "hexagon_pointed_top", "globalGradientsEnabled": true, @@ -1393,13 +1393,13 @@ "globalTooltipsShowTimestampEnabled": true, "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": 2, "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": 2, "tooltipSecondarySortByField": "value", "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", + "globalDisplayTextTriggeredEmpty": "No Data", "globalShowValueEnabled": true, "globalShape": "hexagon_pointed_top", "globalGradientsEnabled": true, @@ -1692,13 +1692,13 @@ "globalTooltipsShowTimestampEnabled": true, "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": 2, "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": 2, "tooltipSecondarySortByField": "value", "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", + "globalDisplayTextTriggeredEmpty": "No Data", "globalShowValueEnabled": true, "globalShape": "hexagon_pointed_top", "globalGradientsEnabled": true, @@ -1922,13 +1922,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -1937,7 +1930,6 @@ }, "id": 411, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -1949,95 +1941,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": 1, - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 4, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": 1, - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0.1 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.4 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 0.8 - } - ], - "unitFormat": "percentunit" - } - ], "targets": [ { "expr": "clamp_max((1 - avg by (service_name)(max_over_time(mysql_global_status_threads_running{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_running{service_name=~\"$service_name\"}[5m])) / avg by (service_name)\n(max_over_time(mysql_global_status_threads_connected{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_connected{service_name=~\"$service_name\"}[5m]))),1)", @@ -2050,13 +1953,124 @@ ], "title": "MySQL Idle Client Threads", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 1, + "autoSizeRows": true, + "layoutNumRows": 1, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0.1, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.4, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.8, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" }, { "aliasColors": {}, @@ -2194,13 +2208,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -2209,7 +2216,6 @@ }, "id": 413, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -2221,95 +2227,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 0.8 - } - ], - "unitFormat": "percentunit" - } - ], "targets": [ { "expr": "clamp_max((avg by (service_name)(max_over_time(mysql_global_status_threads_cached{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_cached{service_name=~\"$service_name\"}[5m])) / avg by (service_name)\n(max_over_time(mysql_global_variables_thread_cache_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_thread_cache_size{service_name=~\"$service_name\"}[5m]))),1)", @@ -2322,112 +2239,223 @@ ], "title": "Percentage of Cached MySQL Threads", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] - } - ], - "title": "Client Threads details", - "type": "row" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 10 - }, - "id": 452, - "panels": [], - "type": "row" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 2, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#1F60C4", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 1000000 - }, - { - "color": "rgba(245, 54, 54, 0.9)" - } - ] - }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 11 - }, - "id": 453, - "interval": "", - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "max" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "max(rate(mysql_global_status_queries{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_queries{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "5m", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } - ], - "title": "Top MySQL Queries", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.8, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + } + ], + "title": "Client Threads details", + "type": "row" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 10 + }, + "id": 452, + "panels": [], + "type": "row" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" + }, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#1F60C4", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 1000000 + }, + { + "color": "rgba(245, 54, 54, 0.9)" + } + ] + }, + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 4, + "x": 0, + "y": 11 + }, + "id": 453, + "interval": "", + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "max" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "8.3.5", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "max(rate(mysql_global_status_queries{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_queries{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "interval": "5m", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Top MySQL Queries", + "type": "stat" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", "mode": "fixed" }, "decimals": 2, @@ -2851,12 +2879,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -2865,80 +2887,112 @@ }, "id": 412, "links": [], - "options": {}, - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": "asc", - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": "asc", + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": "desc", - "tooltipPrimarySortField": "thresholdLevel", + "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": "desc", - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true - }, - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [], - "unitFormat": "short" - } - ], - "targets": [ - { - "expr": "avg by (service_name)(rate(mysql_global_status_queries{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_quesries{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A" - } - ], - "title": "MySQL QPS", - "type": "grafana-polystat-panel" - }, - { + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "short", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "targets": [ + { + "expr": "avg by (service_name)(rate(mysql_global_status_queries{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_quesries{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "MySQL QPS", + "type": "grafana-polystat-panel", + "fieldConfig": { + "defaults": { + "mappings": [] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + }, + { "aliasColors": {}, "bars": false, "dashLength": 10, @@ -3070,12 +3124,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -3084,82 +3132,106 @@ }, "id": 429, "links": [], - "options": {}, - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": "asc", - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": "asc", + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": "desc", - "tooltipPrimarySortField": "thresholdLevel", + "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": "desc", - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true - }, - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ { - "color": "#bf1b00", - "state": 2, - "value": 0.9 + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 } - ], - "unitFormat": "percentunit" - } - ], + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, "targets": [ { "expr": "clamp_max(avg by (service_name)((rate(mysql_global_status_questions{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_questions{service_name=~\"$service_name\"}[5m])) / \n(rate(mysql_global_status_queries{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_queries{service_name=~\"$service_name\"}[5m]))),1)", @@ -3171,7 +3243,15 @@ } ], "title": "MySQL Questions in Queries", - "type": "grafana-polystat-panel" + "type": "grafana-polystat-panel", + "fieldConfig": { + "defaults": { + "mappings": [] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "Queries & Questions details", @@ -3310,12 +3390,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -3324,103 +3398,135 @@ }, "id": 439, "links": [], - "options": {}, - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": "asc", - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": "asc", + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": "desc", - "tooltipPrimarySortField": "thresholdLevel", + "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": "desc", - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true - }, - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ { - "color": "#bf1b00", - "state": 2, - "value": 0.9 - } - ], - "unitFormat": "percentunit" - } - ], - "targets": [ - { - "expr": "clamp_max((avg by (service_name)(rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) / \navg by (service_name)((rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m]))\n)),1)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A" - } - ], - "title": "Percentage of Data Read", - "type": "grafana-polystat-panel" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the `innodb_flush_method` configuration option.", - "editable": true, + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "targets": [ + { + "expr": "clamp_max((avg by (service_name)(rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) / \navg by (service_name)((rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m]))\n)),1)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "Percentage of Data Read", + "type": "grafana-polystat-panel", + "fieldConfig": { + "defaults": { + "mappings": [] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + }, + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the `innodb_flush_method` configuration option.", + "editable": true, "error": false, "fill": 2, "fillGradient": 0, @@ -3536,12 +3642,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -3550,82 +3650,106 @@ }, "id": 442, "links": [], - "options": {}, - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": "asc", - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": "asc", + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": "desc", - "tooltipPrimarySortField": "thresholdLevel", + "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": "desc", - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true - }, - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.6 - }, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ { - "color": "#bf1b00", - "state": 2, - "value": 0.9 + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.6, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 } - ], - "unitFormat": "percentunit" - } - ], + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, "targets": [ { "expr": "clamp_max((avg by (service_name)(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) / \navg by (service_name)((rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m])))),1)", @@ -3637,7 +3761,15 @@ } ], "title": "Percentage of Data Writes", - "type": "grafana-polystat-panel" + "type": "grafana-polystat-panel", + "fieldConfig": { + "defaults": { + "mappings": [] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" }, { "aliasColors": {}, @@ -3769,12 +3901,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -3783,101 +3909,133 @@ }, "id": 443, "links": [], - "options": {}, - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": "asc", - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": "asc", + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", + "tooltipDisplayTextTriggeredEmpty": "No Data", "tooltipPrimarySortDirection": "desc", - "tooltipPrimarySortField": "thresholdLevel", + "tooltipPrimarySortByField": "thresholdLevel", "tooltipSecondarySortDirection": "desc", - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true - }, - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ { - "color": "#bf1b00", - "state": 2, - "value": 0.9 - } - ], - "unitFormat": "percentunit" - } - ], - "targets": [ - { - "expr": "clamp_max((avg by (service_name)(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m])) / \navg by (service_name)((rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m])))),1)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A" - } - ], - "title": "Percentage of Data Fsyncs", - "type": "grafana-polystat-panel" - } - ], - "title": "InnoDB I/O details", - "type": "row" - }, - { - "collapsed": false, + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "targets": [ + { + "expr": "clamp_max((avg by (service_name)(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m])) / \navg by (service_name)((rate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_reads{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_writes{service_name=~\"$service_name\"}[5m])) +\n(rate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_innodb_data_fsyncs{service_name=~\"$service_name\"}[5m])))),1)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "Percentage of Data Fsyncs", + "type": "grafana-polystat-panel", + "fieldConfig": { + "defaults": { + "mappings": [] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + } + ], + "title": "InnoDB I/O details", + "type": "row" + }, + { + "collapsed": false, "gridPos": { "h": 1, "w": 24, @@ -4397,13 +4555,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -4412,7 +4563,6 @@ }, "id": 414, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -4424,95 +4574,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 50 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 100 - } - ], - "unitFormat": "short" - } - ], "targets": [ { "expr": "avg by (service_name)(rate(mysql_global_status_created_tmp_tables{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_created_tmp_tables{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_created_tmp_disk_tables{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_created_tmp_disk_tables{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_created_tmp_files{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_created_tmp_files{service_name=~\"$service_name\"}[5m]))", @@ -4525,13 +4586,124 @@ ], "title": "MySQL Temporary Objects", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 50, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 100, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "short", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" }, { "aliasColors": {}, @@ -4665,13 +4837,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -4680,7 +4845,6 @@ }, "id": 415, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -4692,95 +4856,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 100 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 200 - } - ], - "unitFormat": "short" - } - ], "targets": [ { "expr": "avg by (service_name)(rate(mysql_global_status_select_full_join{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_select_full_join{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_select_full_range_join{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_select_full_range_join{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_select_range{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_select_range{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_select_range_check{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_select_range_check{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_select_scan{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_select_scan{service_name=~\"$service_name\"}[5m]))", @@ -4793,32 +4868,143 @@ ], "title": "MySQL Selects", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] - } - ], - "title": "Temporary Objects details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 386, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 100, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 200, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "short", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + } + ], + "title": "Temporary Objects details", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 386, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, "dashes": false, "decimals": 2, "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.", @@ -4947,13 +5133,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -4962,7 +5141,6 @@ }, "id": 416, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -4974,95 +5152,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 5000 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 10000 - } - ], - "unitFormat": "short" - } - ], "targets": [ { "expr": "avg by (service_name)(rate(mysql_global_status_sort_rows{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_sort_rows{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_sort_range{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_sort_range{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_sort_merge_passes{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_sort_merge_passes{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_sort_scan{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_sort_scan{service_name=~\"$service_name\"}[5m]))", @@ -5075,114 +5164,225 @@ ], "title": "MySQL Sorts", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] - } - ], - "title": "Sorts details", - "type": "row" - }, - { - "collapsed": true, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 22 - }, - "id": 387, - "panels": [ - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [ - { - "targetBlank": true, - "title": "MySQL Instance Summary - ${__series.name}", - "url": "/graph/d/mysql-instance-summary/mysql-instance-summary?var-service_name=${__series.name}&$__url_time_range" - } - ] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 24 - }, - "hiddenSeries": false, - "id": 32, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": true, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Avg", - "color": "#C4162A", - "fill": 0, - "legend": false, - "lines": true, - "linewidth": 2, - "points": false - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "topk(5,avg by (service_name)(rate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[5m])))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "metric": "", - "refId": "A", - "step": 20 - }, + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 5000, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 10000, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "short", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" + } + ], + "title": "Sorts details", + "type": "row" + }, + { + "collapsed": true, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 22 + }, + "id": 387, + "panels": [ + { + "aliasColors": {}, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [ + { + "targetBlank": true, + "title": "MySQL Instance Summary - ${__series.name}", + "url": "/graph/d/mysql-instance-summary/mysql-instance-summary?var-service_name=${__series.name}&$__url_time_range" + } + ] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 24 + }, + "hiddenSeries": false, + "id": 32, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "8.3.5", + "pointradius": 1, + "points": true, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Avg", + "color": "#C4162A", + "fill": 0, + "legend": false, + "lines": true, + "linewidth": 2, + "points": false + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "topk(5,avg by (service_name)(rate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[5m])))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "metric": "", + "refId": "A", + "step": 20 + }, { "expr": "avg(rate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[5m]))", "format": "time_series", @@ -5227,13 +5427,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -5242,7 +5435,6 @@ }, "id": 419, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -5254,95 +5446,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 0, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 0, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 10 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 100 - } - ], - "unitFormat": "short" - } - ], "targets": [ { "expr": "avg by (service_name)(rate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_immediate{service_name=~\"$service_name\"}[5m]) +\nrate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_locks_waited{service_name=~\"$service_name\"}[5m]))", @@ -5355,13 +5458,124 @@ ], "title": "MySQL Table Locks", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 10, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 100, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "short", + "decimals": 0, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "Locks details", @@ -6170,122 +6384,25 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, "x": 12, - "y": 30 - }, - "id": 421, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "percentunit", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true + "y": 30 }, - "rangeMaps": [ + "id": 421, + "links": [], + "mappingTypes": [ { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ + "name": "value to text", + "value": 1 + }, { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 60 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 90 - } - ], - "unitFormat": "percentunit" + "name": "range to text", + "value": 2 } ], + "nullPointMode": "connected", "targets": [ { "expr": "clamp_max((1 - (max_over_time(mysql_global_status_qcache_free_memory{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_qcache_free_memory{service_name=~\"$service_name\"}[5m])) / on (service_name)\n(max_over_time(mysql_global_variables_query_cache_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_query_cache_size{service_name=~\"$service_name\"}[5m]))),1)", @@ -6305,13 +6422,124 @@ ], "title": "MySQL Used Query Cache", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "percentunit", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 60, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 90, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}&fullscreen&panelId=22", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "Query Cache details", @@ -6444,153 +6672,167 @@ "min": 0, "show": true }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } - }, - { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 31 - }, - "id": 422, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 + { + "format": "short", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 31 + }, + "id": 422, + "links": [], + "mappingTypes": [ + { + "name": "value to text", + "value": 1 + }, + { + "name": "range to text", + "value": 2 + } + ], + "nullPointMode": "connected", + "targets": [ + { + "expr": "clamp_max(avg by (service_name) ((rate(mysql_global_status_opened_files{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_opened_files{service_name=~\"$service_name\"}[5m])) / (max_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[5m]))),1)", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{service_name}}", + "refId": "A" + } + ], + "title": "Percentage of File Openings to Opened Files", + "type": "grafana-polystat-panel", + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "short", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" }, - { - "name": "range to text", - "value": 2 - } - ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "short", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, + "fieldConfig": { + "defaults": { + "mappings": [ { - "color": "#bf1b00", - "state": 2, - "value": 0.9 + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } } - ], - "unitFormat": "percentunit" - } - ], - "targets": [ - { - "expr": "clamp_max(avg by (service_name) ((rate(mysql_global_status_opened_files{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_opened_files{service_name=~\"$service_name\"}[5m])) / (max_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[5m]))),1)", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{service_name}}", - "refId": "A" - } - ], - "title": "Percentage of File Openings to Opened Files", - "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" }, { "aliasColors": {}, @@ -6721,13 +6963,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -6736,7 +6971,6 @@ }, "id": 423, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -6748,95 +6982,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "percentunit", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 60 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 100 - } - ], - "unitFormat": "percentunit" - } - ], "targets": [ { "expr": "clamp_max((avg by (service_name)(max_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_open_files{service_name=~\"$service_name\"}[5m])) / avg by (service_name)\n(max_over_time(mysql_global_variables_open_files_limit{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_open_files_limit{service_name=~\"$service_name\"}[5m]))),1)", @@ -6849,13 +6994,124 @@ ], "title": "Percentage of Opened Files to the Limit", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "percentunit", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 60, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 100, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "Files details", @@ -7395,13 +7651,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -7410,7 +7659,6 @@ }, "id": 432, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -7418,99 +7666,10 @@ }, { "name": "range to text", - "value": 2 - } - ], - "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "percentunit", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.5 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 0.9 - } - ], - "unitFormat": "percentunit" + "value": 2 } ], + "nullPointMode": "connected", "targets": [ { "expr": "clamp_max((1 - avg by (service_name)(rate(mysql_global_status_table_open_cache_hits{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_open_cache_hits{service_name=~\"$service_name\"}[5m]))/\navg by (service_name)((rate(mysql_global_status_table_open_cache_hits{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_open_cache_hits{service_name=~\"$service_name\"}[5m]))+\n(rate(mysql_global_status_table_open_cache_misses{service_name=~\"$service_name\"}[$interval]) or \nirate(mysql_global_status_table_open_cache_misses{service_name=~\"$service_name\"}[5m])))),1)", @@ -7523,13 +7682,124 @@ ], "title": "Open Cache Miss Ratio", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "percentunit", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.5, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.9, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "Table Openings details", @@ -7925,13 +8195,6 @@ } }, { - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a", - "#4040a0" - ], - "description": "", "gridPos": { "h": 8, "w": 12, @@ -7940,7 +8203,6 @@ }, "id": 433, "links": [], - "mappingType": 1, "mappingTypes": [ { "name": "value to text", @@ -7952,95 +8214,6 @@ } ], "nullPointMode": "connected", - "polystat": { - "animationSpeed": 2500, - "columnAutoSize": true, - "columns": "", - "defaultClickThrough": "", - "defaultClickThroughNewTab": false, - "defaultClickThroughSanitize": false, - "displayLimit": 100, - "ellipseCharacters": 18, - "ellipseEnabled": false, - "fontAutoColor": true, - "fontAutoScale": true, - "fontSize": 12, - "fontType": "Roboto", - "globalDecimals": 2, - "globalDisplayMode": "all", - "globalDisplayTextTriggeredEmpty": "OK", - "globalOperatorName": "current", - "globalUnitFormat": "percentunit", - "gradientEnabled": true, - "hexagonSortByDirection": 1, - "hexagonSortByField": "name", - "maxMetrics": 0, - "polygonBorderColor": "black", - "polygonBorderSize": 2, - "polygonGlobalFillColor": "#0a50a1", - "radius": "", - "radiusAutoSize": true, - "regexPattern": "", - "rowAutoSize": true, - "rows": "", - "shape": "hexagon_pointed_top", - "tooltipDisplayMode": "all", - "tooltipDisplayTextTriggeredEmpty": "OK", - "tooltipEnabled": true, - "tooltipFontSize": 12, - "tooltipFontType": "Roboto", - "tooltipPrimarySortDirection": 2, - "tooltipPrimarySortField": "thresholdLevel", - "tooltipSecondarySortDirection": 2, - "tooltipSecondarySortField": "value", - "tooltipTimestampEnabled": true, - "valueEnabled": true - }, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "savedComposites": [], - "savedOverrides": [ - { - "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", - "colors": [ - "#299c46", - "#e5ac0e", - "#bf1b00", - "#ffffff" - ], - "decimals": 2, - "enabled": true, - "label": "OVERRIDE 1", - "metricName": "/.*/", - "operatorName": "current", - "prefix": "", - "sanitizeURLEnabled": false, - "suffix": "", - "thresholds": [ - { - "color": "#299c46", - "state": 0, - "value": 0 - }, - { - "color": "#e5ac0e", - "state": 1, - "value": 0.4 - }, - { - "color": "#bf1b00", - "state": 2, - "value": 0.8 - } - ], - "unitFormat": "percentunit" - } - ], "targets": [ { "expr": "clamp_max((avg by (service_name)(max_over_time(mysql_global_status_open_table_definitions{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_status_open_table_definitions{service_name=~\"$service_name\"}[5m])) / avg by (service_name)\n(max_over_time(mysql_global_variables_table_definition_cache{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_table_definition_cache{service_name=~\"$service_name\"}[5m]))),1)", @@ -8053,13 +8226,124 @@ ], "title": "Percentage of Open Table Definitions to Table Definition Cache", "type": "grafana-polystat-panel", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ] + "options": { + "autoSizeColumns": true, + "layoutNumColumns": 8, + "autoSizeRows": true, + "layoutNumRows": 8, + "layoutDisplayLimit": 100, + "autoSizePolygons": true, + "globalPolygonSize": 50, + "globalPolygonBorderSize": 2, + "globalTextFontFamily": "Inter", + "globalAutoScaleFonts": false, + "globalFontSize": 18, + "globalTextFontAutoColorEnabled": false, + "globalTextFontColor": "#000000", + "ellipseEnabled": true, + "ellipseCharacters": 18, + "sortByDirection": 1, + "sortByField": "name", + "globalTooltipsEnabled": true, + "globalTooltipsFontFamily": "Inter", + "globalTooltipsShowTimestampEnabled": true, + "globalShowTooltipColumnHeadersEnabled": true, + "tooltipDisplayMode": "all", + "tooltipDisplayTextTriggeredEmpty": "No Data", + "tooltipPrimarySortDirection": 2, + "tooltipPrimarySortByField": "thresholdLevel", + "tooltipSecondarySortDirection": 2, + "tooltipSecondarySortByField": "value", + "globalDisplayMode": "all", + "globalDisplayTextTriggeredEmpty": "No Data", + "globalShowValueEnabled": true, + "globalShape": "hexagon_pointed_top", + "globalGradientsEnabled": true, + "globalFillColor": "#0a50a1", + "globalPolygonBorderColor": "black", + "globalUnitFormat": "percentunit", + "globalOperator": "last", + "globalDecimals": 2, + "globalThresholdsConfig": [], + "globalClickthrough": "", + "globalClickthroughSanitizedEnabled": false, + "globalClickthroughNewTabEnabled": false, + "globalClickthroughCustomTargetEnabled": false, + "globalClickthroughCustomTarget": "", + "globalRegexPattern": "", + "overrideConfig": { + "overrides": [ + { + "label": "OVERRIDE 1", + "metricName": "/.*/", + "alias": "", + "thresholds": [ + { + "value": 0, + "state": 0, + "color": "#299c46" + }, + { + "value": 0.4, + "state": 1, + "color": "#e5ac0e" + }, + { + "value": 0.8, + "state": 2, + "color": "#bf1b00" + } + ], + "colors": [ + "#299c46", + "#e5ac0e", + "#bf1b00", + "#ffffff" + ], + "unitFormat": "percentunit", + "decimals": 2, + "scaledDecimals": 0, + "enabled": true, + "operatorName": "last", + "prefix": "", + "suffix": "", + "clickThrough": "/graph/d/mysql-instance-summary/mysql-instance-summary?from=$__from&to=$__to&var-service_name=${__cell_name}", + "clickThroughSanitize": false, + "clickThroughOpenNewTab": true, + "clickThroughCustomTargetEnabled": false, + "clickThroughCustomTarget": "", + "order": 0 + } + ] + }, + "compositeGlobalAliasingEnabled": false, + "compositeConfig": { + "composites": [], + "enabled": true, + "animationSpeed": "2500" + }, + "globalTextFontAutoColor": "#000000", + "panelId": 0, + "radius": 100 + }, + "fieldConfig": { + "defaults": { + "mappings": [ + { + "type": "special", + "options": { + "match": "null", + "result": { + "text": "N/A" + } + } + } + ] + }, + "overrides": [] + }, + "pluginVersion": "2.1.5", + "description": "" } ], "title": "MySQL Open and Cached Table Definitions details",