diff --git a/templates/dashboards/mysqld.json.j2 b/templates/dashboards/mysqld.json.j2 index 8f58618..8a0e309 100644 --- a/templates/dashboards/mysqld.json.j2 +++ b/templates/dashboards/mysqld.json.j2 @@ -33,7 +33,7 @@ "fiscalYearStartMonth": 0, "gnetId": 7362, "graphTooltip": 1, - "id": 4, + "id": 11, "links": [], "liveNow": false, "panels": [ @@ -120,7 +120,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "10m", @@ -135,7 +135,7 @@ "format": "time_series", "interval": "5m", "intervalFactor": 1, - "legendFormat": "{{ '{{' }}instance{{ '}}' }}", + "legendFormat": "{{instance}}", "metric": "", "range": true, "refId": "A", @@ -210,7 +210,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "10m", @@ -225,7 +225,7 @@ "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ '{{' }}instance{{ '}}' }}", + "legendFormat": "{{instance}}", "metric": "", "range": true, "refId": "A", @@ -299,7 +299,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "10m", @@ -314,7 +314,7 @@ "format": "time_series", "interval": "5m", "intervalFactor": 1, - "legendFormat": "{{ '{{' }}instance{{ '}}' }}", + "legendFormat": "{{instance}}", "metric": "", "range": true, "refId": "A", @@ -388,7 +388,7 @@ }, "textMode": "auto" }, - "pluginVersion": "9.4.0-102000pre", + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "10m", @@ -403,7 +403,7 @@ "format": "time_series", "interval": "5m", "intervalFactor": 1, - "legendFormat": "{{ '{{' }}instance{{ '}}' }}", + "legendFormat": "{{instance}}", "metric": "", "range": true, "refId": "A", @@ -440,44 +440,85 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 0, "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Max Connections" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 6 }, - "height": "250px", - "hiddenSeries": false, "id": 92, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "targetBlank": true, @@ -485,24 +526,23 @@ "url": "https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Max Connections", - "fill": 0 + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -511,13 +551,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "max(max_over_time(mysql_global_status_threads_connected{instance=~\"$host\"}[$interval]) or mysql_global_status_threads_connected{instance=~\"$host\"} )", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Connections", + "legendFormat": "{{ instance }} Connections", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -528,13 +570,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_max_used_connections{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max Used Connections", + "legendFormat": "{{ instance }} Max Used Connections", "metric": "", + "range": true, "refId": "C", "step": 20, "target": "" @@ -546,121 +590,167 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_max_connections{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Max Connections", + "legendFormat": "{{ instance }} Max Connections", "metric": "", + "range": true, "refId": "B", "step": 20, "target": "" } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "Threads", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Peak Threads Running" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#E24D42", + "mode": "fixed" + } + }, + { + "id": "custom.lineWidth", + "value": 0 + }, + { + "id": "custom.pointSize", + "value": 4 + }, + { + "id": "custom.showPoints", + "value": "always" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Peak Threads Connected" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#1F78C1", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Avg Threads Running" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "#EAB839", + "mode": "fixed" + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 6 }, - "hiddenSeries": false, "id": 10, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Peak Threads Running", - "color": "#E24D42", - "lines": false, - "pointradius": 1, - "points": true + "legend": { + "calcs": [ + "mean", + "lastNotNull", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true }, - { - "alias": "Peak Threads Connected", - "color": "#1F78C1" - }, - { - "alias": "Avg Threads Running", - "color": "#EAB839" + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -669,14 +759,16 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "max_over_time(mysql_global_status_threads_connected{instance=~\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_connected{instance=~\"$host\"}[5m])", "format": "time_series", "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Peak Threads Connected", + "legendFormat": "{{ instance }} Peak Threads Connected", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -687,13 +779,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "max_over_time(mysql_global_status_threads_running{instance=~\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_running{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Peak Threads Running", + "legendFormat": "{{ instance }} Peak Threads Running", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -702,51 +796,19 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "avg_over_time(mysql_global_status_threads_running{instance=~\"$host\"}[$interval]) or \navg_over_time(mysql_global_status_threads_running{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Avg Threads Running", + "legendFormat": "{{ instance }} Avg Threads Running", + "range": true, "refId": "C", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Client Thread Activity", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [ - "total" - ] - }, - "yaxes": [ - { - "format": "short", - "label": "Threads", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -775,41 +837,72 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, "description": "**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 14 }, - "hiddenSeries": false, "id": 53, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "targetBlank": true, @@ -817,19 +910,23 @@ "url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -838,113 +935,125 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_questions{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_questions{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Questions", + "legendFormat": "{{ instance }} Questions", "metric": "", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Questions", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Threads Created" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 14 }, - "hiddenSeries": false, "id": 11, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "title": "Tuning information", "url": "https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_thread_cache_size" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Threads Created", - "fill": 0 + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -953,13 +1062,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_thread_cache_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Thread Cache Size", + "legendFormat": "{{ instance }} Thread Cache Size", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -970,13 +1081,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_threads_cached{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Threads Cached", + "legendFormat": "{{ instance }} Threads Cached", "metric": "", + "range": true, "refId": "C", "step": 20 }, @@ -987,49 +1100,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_threads_created{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_threads_created{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Threads Created", + "legendFormat": "{{ instance }} Threads Created", "metric": "", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Thread Cache", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -1058,57 +1143,89 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 22 }, - "hiddenSeries": false, "id": 22, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1117,12 +1234,14 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_created_tmp_tables{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_tables{instance=~\"$host\"}[5m])", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Created Tmp Tables", + "legendFormat": "{{ instance }} Created Tmp Tables", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -1133,12 +1252,14 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_created_tmp_disk_tables{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_disk_tables{instance=~\"$host\"}[5m])", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Created Tmp Disk Tables", + "legendFormat": "{{ instance }} Created Tmp Disk Tables", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -1149,104 +1270,127 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_created_tmp_files{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_files{instance=~\"$host\"}[5m])", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Created Tmp Files", + "legendFormat": "{{ instance }} Created Tmp Files", "metric": "", + "range": true, "refId": "C", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Temporary Objects", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 22 }, - "height": "250px", - "hiddenSeries": false, "id": 311, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1255,13 +1399,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_select_full_join{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_select_full_join{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Select Full Join", + "legendFormat": "{{ instance }} Select Full Join", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -1272,13 +1418,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_select_full_range_join{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_select_full_range_join{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Select Full Range Join", + "legendFormat": "{{ instance }} Select Full Range Join", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -1289,13 +1437,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_select_range{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_select_range{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Select Range", + "legendFormat": "{{ instance }} Select Range", "metric": "", + "range": true, "refId": "C", "step": 20 }, @@ -1306,13 +1456,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_select_range_check{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_select_range_check{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Select Range Check", + "legendFormat": "{{ instance }} Select Range Check", "metric": "", + "range": true, "refId": "D", "step": 20 }, @@ -1323,49 +1475,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_select_scan{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_select_scan{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Select Scan", + "legendFormat": "{{ instance }} Select Scan", "metric": "", + "range": true, "refId": "E", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Select Types", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -1394,59 +1518,111 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "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.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 30 }, - "hiddenSeries": false, "id": 30, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1455,13 +1631,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_sort_rows{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_sort_rows{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Sort Rows", + "legendFormat": "{{ instance }} Sort Rows", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -1472,13 +1650,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_sort_range{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_sort_range{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Sort Range", + "legendFormat": "{{ instance }} Sort Range", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -1489,13 +1669,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_sort_merge_passes{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_sort_merge_passes{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Sort Merge Passes", + "legendFormat": "{{ instance }} Sort Merge Passes", "metric": "", + "range": true, "refId": "C", "step": 20 }, @@ -1506,100 +1688,107 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_sort_scan{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_sort_scan{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Sort Scan", + "legendFormat": "{{ instance }} Sort Scan", "metric": "", + "range": true, "refId": "D", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Sorts", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 30 }, - "hiddenSeries": false, "id": 48, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-102000pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1608,51 +1797,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_slow_queries{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_slow_queries{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Slow Queries", + "legendFormat": "{{ instance }} Slow Queries", "metric": "", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Slow Queries", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -1681,57 +1840,90 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 38 }, - "hiddenSeries": false, "id": 47, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1740,13 +1932,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_aborted_connects{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_aborted_connects{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Aborted Connects (attempts)", + "legendFormat": "{{ instance }} Aborted Connects (attempts)", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -1757,106 +1951,108 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_aborted_clients{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_aborted_clients{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Aborted Clients (timeout)", + "legendFormat": "{{ instance }} Aborted Clients (timeout)", "metric": "", + "range": true, "refId": "B", "step": 20, "target": "" } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Aborted Connections", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "label": "", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "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, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 38 }, - "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": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -1865,13 +2061,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_table_locks_immediate{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_immediate{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Table Locks Immediate", + "legendFormat": "{{ instance }} Table Locks Immediate", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -1882,49 +2080,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_table_locks_waited{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_waited{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Table Locks Waited", + "legendFormat": "{{ instance }} Table Locks Waited", "metric": "", + "range": true, "refId": "B", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Table Locks", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -1953,58 +2123,90 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.", - "editable": true, - "error": false, - "fill": 6, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 46 }, - "hiddenSeries": false, "id": 9, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2013,13 +2215,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_bytes_received{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_bytes_received{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Inbound", + "legendFormat": "{{ instance }} Inbound", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -2030,104 +2234,107 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_bytes_sent{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_bytes_sent{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Outbound", + "legendFormat": "{{ instance }} Outbound", "metric": "", + "range": true, "refId": "B", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Network Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "none", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Network Usage Hourly**\n\nHere we can see how much network traffic is generated by MySQL per hour. You can use the bar graph to compare data sent by MySQL and data received by MySQL.", - "editable": true, - "error": false, - "fill": 6, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 46 }, - "height": "250px", - "hiddenSeries": false, "id": 381, - "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 + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2136,13 +2343,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "increase(mysql_global_status_bytes_received{instance=~\"$host\"}[1h])", "format": "time_series", "interval": "1h", "intervalFactor": 1, - "legendFormat": "Received", + "legendFormat": "{{ instance }} Received", "metric": "", + "range": true, "refId": "A", "step": 3600 }, @@ -2153,50 +2362,22 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "increase(mysql_global_status_bytes_sent{instance=~\"$host\"}[1h])", "format": "time_series", "interval": "1h", "intervalFactor": 1, - "legendFormat": "Sent", + "legendFormat": "{{ instance }} Sent", "metric": "", + "range": true, "refId": "B", "step": 3600 } ], - "thresholds": [], "timeFrom": "24h", - "timeRegions": [], "title": "MySQL Network Usage Hourly", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "none", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -2225,81 +2406,167 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 0, "description": "***System Memory***: Total Memory for the system.\\\n***InnoDB Buffer Pool Data***: InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.\\\n***TokuDB Cache Size***: Similar in function to the InnoDB Buffer Pool, TokuDB will allocate 50% of the installed RAM for its own cache.\\\n***Key Buffer Size***: Index blocks for MYISAM tables are buffered and are shared by all threads. key_buffer_size is the size of the buffer used for index blocks.\\\n***Adaptive Hash Index Size***: When InnoDB notices that some index values are being accessed very frequently, it builds a hash index for them in memory on top of B-Tree indexes.\\\n ***Query Cache Size***: The query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. The query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time.\\\n***InnoDB Dictionary Size***: The data dictionary is InnoDB ‘s internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running.\\\n***InnoDB Log Buffer Size***: The MySQL InnoDB log buffer allows transactions to run without having to write the log to disk before the transactions commit.", - "editable": true, - "error": false, - "fill": 6, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 60, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "System Memory" + }, + "properties": [ + { + "id": "custom.fillOpacity", + "value": 0 + }, + { + "id": "custom.stacking", + "value": { + "group": "A", + "mode": "none" + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + }, + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsNull", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 54 }, - "hiddenSeries": false, "id": 50, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "title": "Detailed descriptions about metrics", "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "System Memory", - "fill": 0, - "stack": false + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "datasource": { "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "node_memory_MemTotal_bytes{instance=~\"$host\"}", "format": "time_series", "intervalFactor": 2, - "legendFormat": "System Memory", + "legendFormat": "{{ instance }} System Memory", + "range": true, "refId": "G", "step": 4 }, @@ -2308,12 +2575,14 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_status_innodb_page_size{instance=~\"$host\"} * on (instance) mysql_global_status_buffer_pool_pages{instance=~\"$host\",state=\"data\"}", "format": "time_series", "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "InnoDB Buffer Pool Data", + "legendFormat": "{{ instance }} InnoDB Buffer Pool Data", + "range": true, "refId": "A", "step": 20 }, @@ -2322,11 +2591,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_variables_innodb_log_buffer_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "InnoDB Log Buffer Size", + "legendFormat": "{{ instance }} InnoDB Log Buffer Size", + "range": true, "refId": "D", "step": 20 }, @@ -2335,11 +2606,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_variables_innodb_additional_mem_pool_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 2, - "legendFormat": "InnoDB Additional Memory Pool Size", + "legendFormat": "{{ instance }} InnoDB Additional Memory Pool Size", + "range": true, "refId": "H", "step": 40 }, @@ -2348,11 +2621,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_status_innodb_mem_dictionary{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "InnoDB Dictionary Size", + "legendFormat": "{{ instance }} InnoDB Dictionary Size", + "range": true, "refId": "F", "step": 20 }, @@ -2361,11 +2636,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_variables_key_buffer_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Key Buffer Size", + "legendFormat": "{{ instance }} Key Buffer Size", + "range": true, "refId": "B", "step": 20 }, @@ -2374,11 +2651,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_variables_query_cache_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Query Cache Size", + "legendFormat": "{{ instance }} Query Cache Size", + "range": true, "refId": "C", "step": 20 }, @@ -2387,11 +2666,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_status_innodb_mem_adaptive_hash{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Adaptive Hash Index Size", + "legendFormat": "{{ instance }} Adaptive Hash Index Size", + "range": true, "refId": "E", "step": 20 }, @@ -2400,47 +2681,19 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_variables_tokudb_cache_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "TokuDB Cache Size", + "legendFormat": "{{ instance }} TokuDB Cache Size", + "range": true, "refId": "I", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Internal Memory Overview", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -2469,65 +2722,95 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "description": "**Top Command Counters**\n\nThe Com_{{ '{{' }}xxx{{ '}}' }} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "description": "**Top Command Counters**\n\nThe {{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, delete and update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. delete_multi and update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 62 }, - "hiddenSeries": false, "id": 14, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { - "title": "Server Status Variables (Com_xxx)", - "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx" + "title": "Server Status Variables (xxx)", + "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_xxx" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2536,109 +2819,113 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "topk(5, rate(mysql_global_status_commands_total{instance=~\"$host\"}[$interval])>0) or topk(5, irate(mysql_global_status_commands_total{instance=~\"$host\"}[5m])>0)", "format": "time_series", "hide": false, "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Com_{{ '{{' }} command {{ '}}' }}", + "legendFormat": "{{ instance }} {{ command }}", "metric": "", + "range": true, "refId": "B", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "Top Command Counters", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": true, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "description": "**Top Command Counters Hourly**\n\nThe Com_{{ '{{' }}xxx{{ '}}' }} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.", - "editable": true, - "error": false, - "fill": 6, - "fillGradient": 0, - "grid": {}, + "description": "**Top Command Counters Hourly**\n\nThe {{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, delete and update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. delete_multi and update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "bars", + "fillOpacity": 100, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "normal" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 69 }, - "hiddenSeries": false, "id": 39, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, "links": [ { - "title": "Server Status Variables (Com_xxx)", - "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx" + "title": "Server Status Variables (xxx)", + "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_xxx" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2647,105 +2934,129 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "topk(5, increase(mysql_global_status_commands_total{instance=~\"$host\"}[1h])>0)", "format": "time_series", "interval": "1h", "intervalFactor": 1, - "legendFormat": "Com_{{ '{{' }} command {{ '}}' }}", + "legendFormat": "{{ instance }} {{ command }}", "metric": "", + "range": true, "refId": "A", "step": 3600 } ], - "thresholds": [], "timeFrom": "24h", - "timeRegions": [], "title": "Top Command Counters Hourly", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 76 }, - "hiddenSeries": false, "id": 8, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2754,103 +3065,127 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_handlers_total{instance=~\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=~\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ '{{' }} handler {{ '}}' }}", + "legendFormat": "{{ instance }} {{ handler }}", "metric": "", + "range": true, "refId": "J", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Handlers", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 24, "x": 0, "y": 83 }, - "hiddenSeries": false, "id": 28, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -2859,48 +3194,20 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_handlers_total{instance=~\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=~\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ '{{' }} handler {{ '}}' }}", + "legendFormat": "{{ instance }} {{ handler }}", "metric": "", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Transaction Handlers", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "aliasColors": {}, @@ -2947,7 +3254,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "9.4.0-90231pre", + "pluginVersion": "10.0.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -2967,7 +3274,7 @@ "expr": "mysql_info_schema_threads{instance=~\"$host\"}", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "{{ '{{' }} state {{ '}}' }}", + "legendFormat": "{{ state }}", "metric": "", "refId": "A", "step": 20 @@ -3051,7 +3358,7 @@ "alertThreshold": true }, "percentage": false, - "pluginVersion": "9.4.0-90231pre", + "pluginVersion": "10.0.3", "pointradius": 5, "points": false, "renderer": "flot", @@ -3071,7 +3378,7 @@ "expr": "topk(5, avg_over_time(mysql_info_schema_threads{instance=~\"$host\"}[1h]))", "interval": "1h", "intervalFactor": 1, - "legendFormat": "{{ '{{' }} state {{ '}}' }}", + "legendFormat": "{{ state }}", "metric": "", "refId": "A", "step": 3600 @@ -3111,6 +3418,147 @@ "align": false } }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 104 + }, + "id": 396, + "panels": [], + "title": "Replication", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byValue", + "options": { + "op": "gte", + "reducer": "allIsZero", + "value": 0 + } + }, + "properties": [ + { + "id": "custom.hideFrom", + "value": { + "legend": true, + "tooltip": true, + "viz": false + } + } + ] + } + ] + }, + "gridPos": { + "h": 7, + "w": 24, + "x": 0, + "y": 105 + }, + "id": 397, + "links": [], + "options": { + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "right", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "pluginVersion": "10.0.3", + "targets": [ + { + "calculatedInterval": "2m", + "datasource": { + "type": "prometheus", + "uid": "" + }, + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "mysql_slave_status_seconds_behind_master{instance=~\"sv4\"}", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "{{ instance }}", + "metric": "", + "range": true, + "refId": "A", + "step": 20 + } + ], + "title": "MySQL Slave Status Seconds Behind Master", + "type": "timeseries" + }, { "collapsed": false, "datasource": { @@ -3121,7 +3569,7 @@ "h": 1, "w": 24, "x": 0, - "y": 104 + "y": 112 }, "id": 391, "panels": [], @@ -3138,58 +3586,90 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Query Cache Memory**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n ``query_cache_type=0``\n ``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 105 + "y": 113 }, - "hiddenSeries": false, "id": 46, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3198,13 +3678,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_qcache_free_memory{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Free Memory", + "legendFormat": "{{ instance }} Free Memory", "metric": "", + "range": true, "refId": "F", "step": 20 }, @@ -3215,104 +3697,107 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_query_cache_size{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Query Cache Size", + "legendFormat": "{{ instance }} Query Cache Size", "metric": "", + "range": true, "refId": "E", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Query Cache Memory", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Query Cache Activity**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n``query_cache_type=0``\n``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, - "y": 105 + "y": 113 }, - "height": "", - "hiddenSeries": false, "id": 45, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3321,13 +3806,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_qcache_hits{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_qcache_hits{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Hits", + "legendFormat": "{{ instance }} Hits", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -3338,13 +3825,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_qcache_inserts{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_qcache_inserts{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Inserts", + "legendFormat": "{{ instance }} Inserts", "metric": "", + "range": true, "refId": "C", "step": 20 }, @@ -3355,13 +3844,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_qcache_not_cached{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_qcache_not_cached{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Not Cached", + "legendFormat": "{{ instance }} Not Cached", "metric": "", + "range": true, "refId": "D", "step": 20 }, @@ -3372,13 +3863,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_qcache_lowmem_prunes{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_qcache_lowmem_prunes{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Prunes", + "legendFormat": "{{ instance }} Prunes", "metric": "", + "range": true, "refId": "F", "step": 20 }, @@ -3389,49 +3882,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_qcache_queries_in_cache{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Queries in Cache", + "legendFormat": "{{ instance }} Queries in Cache", "metric": "", + "range": true, "refId": "E", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Query Cache Activity", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -3443,7 +3908,7 @@ "h": 1, "w": 24, "x": 0, - "y": 112 + "y": 120 }, "id": 392, "panels": [], @@ -3460,55 +3925,89 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 113 + "y": 121 }, - "hiddenSeries": false, "id": 43, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3517,100 +4016,105 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_opened_files{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_opened_files{instance=~\"$host\"}[5m])", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Openings", + "legendFormat": "{{ instance }} Openings", "metric": "", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL File Openings", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, - "y": 113 + "y": 121 }, - "hiddenSeries": false, "id": 41, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3619,12 +4123,14 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_open_files{instance=~\"$host\"}", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Open Files", + "legendFormat": "{{ instance }} Open Files", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -3635,12 +4141,14 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_open_files_limit{instance=~\"$host\"}", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Open Files Limit", + "legendFormat": "{{ instance }} Open Files Limit", "metric": "", + "range": true, "refId": "D", "step": 20 }, @@ -3649,46 +4157,18 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "mysql_global_status_innodb_num_open_files{instance=~\"$host\"}", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "InnoDB Open Files", + "legendFormat": "{{ instance }} InnoDB Open Files", + "range": true, "refId": "B", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Open Files", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -3700,7 +4180,7 @@ "h": 1, "w": 24, "x": 0, - "y": 120 + "y": 128 }, "id": 393, "panels": [], @@ -3717,68 +4197,108 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Table Open Cache Hit Ratio" + }, + "properties": [ + { + "id": "unit", + "value": "percentunit" + } + ] + } + ] + }, "gridPos": { "h": 7, "w": 12, "x": 0, - "y": 121 + "y": 129 }, - "hiddenSeries": false, "id": 44, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "title": "Server Status Variables (table_open_cache)", "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Table Open Cache Hit Ratio", - "yaxis": 2 + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3787,13 +4307,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "rate(mysql_global_status_opened_tables{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_opened_tables{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Openings", + "legendFormat": "{{ instance }} Openings", "metric": "", + "range": true, "refId": "A", "step": 20 }, @@ -3802,11 +4324,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "rate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Hits", + "legendFormat": "{{ instance }} Hits", + "range": true, "refId": "B", "step": 20 }, @@ -3815,11 +4339,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "rate(mysql_global_status_table_open_cache_misses{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Misses", + "legendFormat": "{{ instance }} Misses", + "range": true, "refId": "C", "step": 20 }, @@ -3828,11 +4354,13 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "rate(mysql_global_status_table_open_cache_overflows{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_overflows{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Misses due to Overflows", + "legendFormat": "{{ instance }} Misses due to Overflows", + "range": true, "refId": "D", "step": 20 }, @@ -3841,106 +4369,110 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "(rate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[5m]))/((rate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=~\"$host\"}[5m]))+(rate(mysql_global_status_table_open_cache_misses{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=~\"$host\"}[5m])))", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Table Open Cache Hit Ratio", + "legendFormat": "{{ instance }} Table Open Cache Hit Ratio", + "range": true, "refId": "E", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Table Open Cache Status", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "percentunit", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 12, "x": 12, - "y": 121 + "y": 129 }, - "hiddenSeries": false, "id": 42, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "title": "Server Status Variables (table_open_cache)", "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -3949,13 +4481,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_open_tables{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Open Tables", + "legendFormat": "{{ instance }} Open Tables", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -3966,49 +4500,21 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_table_open_cache{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Table Open Cache", + "legendFormat": "{{ instance }} Table Open Cache", "metric": "", + "range": true, "refId": "C", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Open Tables", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" }, { "collapsed": false, @@ -4020,7 +4526,7 @@ "h": 1, "w": 24, "x": 0, - "y": 128 + "y": 136 }, "id": 394, "panels": [], @@ -4037,68 +4543,95 @@ "type": "row" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "" }, - "decimals": 2, "description": "**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).", - "editable": true, - "error": false, - "fill": 2, - "fillGradient": 0, - "grid": {}, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 20, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 2, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "never", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "short" + }, + "overrides": [] + }, "gridPos": { "h": 7, "w": 24, "x": 0, - "y": 129 + "y": 137 }, - "hiddenSeries": false, "id": 54, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, "links": [ { "title": "Server Status Variables (table_open_cache)", "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache" } ], - "nullPointMode": "null", "options": { - "alertThreshold": true - }, - "percentage": false, - "pluginVersion": "9.4.0-90231pre", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Opened Table Definitions", - "yaxis": 2 + "legend": { + "calcs": [ + "mean", + "max", + "min" + ], + "displayMode": "table", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "multi", + "sort": "none" } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + }, + "pluginVersion": "10.0.3", "targets": [ { "calculatedInterval": "2m", @@ -4107,13 +4640,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_status_open_table_definitions{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Open Table Definitions", + "legendFormat": "{{ instance }} Open Table Definitions", "metric": "", + "range": true, "refId": "B", "step": 20 }, @@ -4124,13 +4659,15 @@ "uid": "" }, "datasourceErrors": {}, + "editorMode": "code", "errors": {}, "expr": "mysql_global_variables_table_definition_cache{instance=~\"$host\"}", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Table Definitions Cache Size", + "legendFormat": "{{ instance }} Table Definitions Cache Size", "metric": "", + "range": true, "refId": "C", "step": 20 }, @@ -4139,845 +4676,19 @@ "type": "prometheus", "uid": "" }, + "editorMode": "code", "expr": "rate(mysql_global_status_opened_table_definitions{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_opened_table_definitions{instance=~\"$host\"}[5m])", "format": "time_series", "interval": "$interval", "intervalFactor": 1, - "legendFormat": "Opened Table Definitions", + "legendFormat": "{{ instance }} Opened Table Definitions", + "range": true, "refId": "A", "step": 20 } ], - "thresholds": [], - "timeRegions": [], "title": "MySQL Table Definition Cache", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "P1809F7CD0C75ACF3" - }, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 136 - }, - "id": 395, - "panels": [], - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "P1809F7CD0C75ACF3" - }, - "refId": "A" - } - ], - "title": "System Charts", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "editable": true, - "error": false, - "fill": 2, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 137 - }, - "id": 31, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "rate(node_vmstat_pgpgin{instance=~\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=~\"$host\"}[5m]) * 1024", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Page In", - "metric": "", - "refId": "A", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "rate(node_vmstat_pgpgout{instance=~\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{instance=~\"$host\"}[5m]) * 1024", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Page Out", - "metric": "", - "refId": "B", - "step": 20, - "target": "" - } - ], - "thresholds": [], - "title": "I/O Activity", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "editable": true, - "error": false, - "fill": 6, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 137 - }, - "height": "250px", - "id": 37, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "node_memory_MemTotal_bytes{instance=~\"$host\"} - (node_memory_MemFree_bytes{instance=~\"$host\"} + node_memory_Buffers{instance=~\"$host\"} + node_memory_Cached{instance=~\"$host\"})", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Used", - "metric": "", - "refId": "A", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "node_memory_MemFree_bytes{instance=~\"$host\"}", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Free", - "metric": "", - "refId": "B", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "node_memory_Buffers{instance=~\"$host\"}", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Buffers", - "metric": "", - "refId": "D", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "node_memory_Cached{instance=~\"$host\"}", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Cached", - "metric": "", - "refId": "E", - "step": 20, - "target": "" - } - ], - "thresholds": [], - "title": "Memory Distribution", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bytes", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": { - "Load 1m": "#58140C", - "Max Core Utilization": "#bf1b00", - "iowait": "#e24d42", - "nice": "#1f78c1", - "softirq": "#806eb7", - "system": "#eab839", - "user": "#508642" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "editable": true, - "error": false, - "fill": 6, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 137 - }, - "height": "", - "id": 2, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Max Core Utilization", - "lines": false, - "pointradius": 1, - "points": true, - "stack": false - }, - { - "alias": "Load 1m", - "color": "#58140C", - "fill": 2, - "stack": false, - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{instance=~\"$host\",mode!=\"idle\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=~\"$host\",mode!=\"idle\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[$interval]) or avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[5m]))),100)", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "{{ '{{' }} mode {{ '}}' }}", - "metric": "", - "refId": "A", - "step": 20 - }, - { - "datasource": { - "type": "prometheus", - "uid": "" - }, - "expr": "clamp_max(max by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{instance=~\"$host\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=~\"$host\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) ))*100,100)", - "format": "time_series", - "hide": true, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Max Core Utilization", - "refId": "B", - "step": 20 - }, - { - "datasource": { - "type": "prometheus", - "uid": "" - }, - "expr": "node_load1{instance=~\"$host\"}", - "format": "time_series", - "hide": false, - "intervalFactor": 2, - "legendFormat": "Load 1m", - "refId": "C" - } - ], - "thresholds": [], - "title": "CPU Usage / Load", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "percent", - "label": "", - "logBase": 1, - "max": 100, - "min": 0, - "show": true - }, - { - "format": "none", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "decimals": 2, - "editable": true, - "error": false, - "fill": 2, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 0, - "y": 144 - }, - "height": "250px", - "id": 36, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": true, - "hideZero": true, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 1, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "sum((rate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=~\"$host\"}[$interval]) / rate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=~\"$host\"}[$interval])) or (irate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=~\"$host\"}[5m]) / irate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=~\"$host\"}[5m]))\nor avg_over_time(aws_rds_read_latency_average{instance=~\"$host\"}[$interval]) or avg_over_time(aws_rds_read_latency_average{instance=~\"$host\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Read", - "metric": "", - "refId": "A", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2m", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "sum((rate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=~\"$host\"}[$interval]) / rate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=~\"$host\"}[$interval])) or (irate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=~\"$host\"}[5m]) / irate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=~\"$host\"}[5m])) or \navg_over_time(aws_rds_write_latency_average{instance=~\"$host\"}[$interval]) or avg_over_time(aws_rds_write_latency_average{instance=~\"$host\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Write", - "metric": "", - "refId": "B", - "step": 20, - "target": "" - } - ], - "thresholds": [], - "title": "Disk Latency", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "ms", - "label": "", - "logBase": 2, - "show": true - }, - { - "format": "ms", - "label": "", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "editable": true, - "error": false, - "fill": 2, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 8, - "y": 144 - }, - "height": "250px", - "id": 21, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Outbound", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "sum(rate(node_network_receive_bytes_total{instance=~\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_receive_bytes_total{instance=~\"$host\", device!=\"lo\"}[5m])) or sum(max_over_time(rdsosmetrics_network_rx{instance=~\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_rx{instance=~\"$host\"}[5m])) ", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Inbound", - "metric": "", - "refId": "B", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "sum(rate(node_network_transmit_bytes_total{instance=~\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_transmit_bytes_total{instance=~\"$host\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{instance=~\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_tx{instance=~\"$host\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Outbound", - "metric": "", - "refId": "A", - "step": 20, - "target": "" - } - ], - "thresholds": [], - "title": "Network Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "show": true - }, - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": { - "type": "prometheus", - "uid": "" - }, - "editable": true, - "error": false, - "fill": 2, - "grid": {}, - "gridPos": { - "h": 7, - "w": 8, - "x": 16, - "y": 144 - }, - "id": 38, - "legend": { - "alignAsTable": false, - "avg": true, - "current": false, - "hideEmpty": false, - "max": false, - "min": false, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "rate(node_vmstat_pswpin{instance=~\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=~\"$host\"}[5m]) * 4096", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Swap In (Reads)", - "metric": "", - "refId": "A", - "step": 20, - "target": "" - }, - { - "calculatedInterval": "2s", - "datasource": { - "type": "prometheus", - "uid": "" - }, - "datasourceErrors": {}, - "errors": {}, - "expr": "rate(node_vmstat_pswpout{instance=~\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=~\"$host\"}[5m]) * 4096", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Swap Out (Writes)", - "metric": "", - "refId": "B", - "step": 20, - "target": "" - } - ], - "thresholds": [], - "title": "Swap Activity", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - } - ], - "yaxis": { - "align": false - } + "type": "timeseries" } ], "refresh": "1m", @@ -4993,8 +4704,18 @@ "allFormat": "glob", "current": { "selected": true, - "text": "All", - "value": "$__all" + "text": [ + "sv1", + "sv2", + "sv3", + "sv4" + ], + "value": [ + "sv1", + "sv2", + "sv3", + "sv4" + ] }, "datasource": { "type": "prometheus", @@ -5014,7 +4735,7 @@ }, "refresh": 1, "refresh_on_load": false, - "regex": "{{ grafana_dashboard_regex | default('') }}", + "regex": "", "skipUrlSync": false, "sort": 1, "type": "query", @@ -5126,6 +4847,6 @@ "timezone": "browser", "title": "MySQL", "uid": "MQWgroiiz", - "version": 7, + "version": 3, "weekStart": "" }