{ "annotations": { "list": [] }, "editable": true, "gnetId": null, "graphTooltip": 1, "hideControls": true, "id": null, "links": [ { "asDropdown": true, "icon": "external link", "includeVars": true, "keepTime": true, "tags": [ "OS" ], "targetBlank": true, "title": "OS", "type": "dashboards" }, { "asDropdown": true, "icon": "external link", "includeVars": true, "keepTime": true, "tags": [ "MySQL" ], "targetBlank": true, "title": "MySQL", "type": "dashboards" }, { "asDropdown": true, "icon": "external link", "includeVars": true, "keepTime": true, "tags": [ "HA" ], "targetBlank": true, "title": "HA", "type": "dashboards" } ], "rows": [ { "collapse": false, "height": "125px", "panels": [ { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": 0, "editable": true, "error": false, "fill": 0, "grid": {}, "id": 42, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "rightSide": true, "show": false, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [ { "alias": "Size", "color": "#5195CE" } ], "span": 12, "stack": false, "steppedLine": true, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "count_scalar(proxysql_connection_pool_status{instance=\"$proxysql\", hostgroup=\"$hostgroup\"})", "interval": "$interval", "intervalFactor": 1, "legendFormat": "Size", "metric": "", "refId": "C", "step": 300, "target": "" } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Hostgroup Size", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "transparent": true, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": false, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 2, "max": null, "min": 1, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": false } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "ProxySQL Instance Stats", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 55, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": true, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "proxysql_mysql_status_client_connections_connected{instance=\"$proxysql\"}", "interval": "$interval", "intervalFactor": 1, "legendFormat": "Connections", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Client Connections (All Host Groups)", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] }, { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 56, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": true, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "rate(proxysql_mysql_status_questions{instance=\"$proxysql\"}[$interval]) or irate(proxysql_mysql_status_questions{instance=\"$proxysql\"}[5m])", "interval": "$interval", "intervalFactor": 1, "legendFormat": "Question Rate", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Client Questions (All Host Groups)", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Connections", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "columns": [ { "text": "Current", "value": "current" } ], "datasource": "Prometheus", "editable": true, "error": false, "filterNull": false, "fontSize": "100%", "hideTimeOverride": true, "id": 57, "links": [], "pageSize": null, "scroll": true, "showHeader": true, "sort": { "col": 1, "desc": false }, "span": 9, "styles": [ { "colorMode": "cell", "colors": [ "rgba(50, 172, 45, 0.97)", "rgba(237, 129, 40, 0.89)", "rgba(245, 54, 54, 0.9)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 0, "pattern": "Current", "thresholds": [ "3", "4" ], "type": "number", "unit": "none" } ], "targets": [ { "expr": "proxysql_connection_pool_status{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}", "interval": "5m", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "timeFrom": "5m", "title": "Endpoint Status", "transform": "timeseries_aggregations", "type": "table" }, { "content": "Status number to state mapping:\n\n1 `ONLINE`\n\n2 `SHUNNED`\n\n3 `OFFLINE_SOFT`\n\n4 `OFFLINE_HARD`\n\nFor status details, see the [description](https://github.com/sysown/proxysql/blob/master/doc/admin_tables.md#mysql_servers).", "datasource": "Prometheus", "editable": true, "error": false, "id": 58, "links": [], "mode": "markdown", "span": 3, "style": {}, "title": "", "type": "text" } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": true, "title": "Connection Pool Usage", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 51, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": true, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "proxysql_connection_pool_conn_used{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Active Backend Connections", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] }, { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 52, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": true, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "rate(proxysql_connection_pool_conn_err{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[$interval]) or irate(proxysql_connection_pool_conn_err{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[5m])", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Failed Backend Connections", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Connections", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 2, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": false, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "rate(proxysql_connection_pool_queries{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[$interval]) or irate(proxysql_connection_pool_queries{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[5m])", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Queries Routed", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] }, { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 50, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": false, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "proxysql_connection_pool_latency_us{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Latency", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "\u00b5s", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Queries", "titleSize": "h6" }, { "collapse": false, "height": "250px", "panels": [ { "aliasColors": {}, "bars": false, "datasource": "Prometheus", "decimals": null, "editable": true, "error": false, "fill": 2, "grid": {}, "id": 53, "legend": { "alignAsTable": true, "avg": true, "current": false, "max": true, "min": true, "show": true, "total": false, "values": true }, "lines": true, "linewidth": 2, "links": [], "nullPointMode": "null", "percentage": false, "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "span": 6, "stack": false, "steppedLine": false, "targets": [ { "calculatedInterval": "2m", "datasourceErrors": {}, "errors": {}, "expr": "(rate(proxysql_connection_pool_bytes_data_recv{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[$interval]) + rate(proxysql_connection_pool_bytes_data_sent{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[$interval])) or (irate(proxysql_connection_pool_bytes_data_recv{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[5m]) + irate(proxysql_connection_pool_bytes_data_sent{instance=\"$proxysql\", hostgroup=\"$hostgroup\"}[5m]))", "interval": "$interval", "intervalFactor": 1, "legendFormat": "{{ endpoint }}", "metric": "", "refId": "A", "step": 300 } ], "thresholds": [], "timeFrom": null, "timeShift": null, "title": "Network Traffic", "tooltip": { "msResolution": false, "shared": true, "sort": 0, "value_type": "cumulative" }, "type": "graph", "xaxis": { "mode": "time", "name": null, "show": true, "values": [] }, "yaxes": [ { "format": "Bps", "label": "", "logBase": 1, "max": null, "min": 0, "show": true }, { "format": "short", "logBase": 1, "max": null, "min": 0, "show": true } ] } ], "repeat": null, "repeatIteration": null, "repeatRowId": null, "showTitle": false, "title": "Network", "titleSize": "h6" } ], "schemaVersion": 14, "style": "dark", "tags": [ "Percona", "HA" ], "templating": { "list": [ { "allFormat": "glob", "auto": true, "auto_count": 200, "auto_min": "1s", "current": { "text": "auto", "value": "$__auto_interval" }, "datasource": "Prometheus", "hide": 0, "includeAll": false, "label": "Interval", "multi": false, "multiFormat": "glob", "name": "interval", "options": [ { "selected": true, "text": "auto", "value": "$__auto_interval" }, { "selected": false, "text": "1s", "value": "1s" }, { "selected": false, "text": "5s", "value": "5s" }, { "selected": false, "text": "1m", "value": "1m" }, { "selected": false, "text": "5m", "value": "5m" }, { "selected": false, "text": "1h", "value": "1h" }, { "selected": false, "text": "6h", "value": "6h" }, { "selected": false, "text": "1d", "value": "1d" } ], "query": "1s,5s,1m,5m,1h,6h,1d", "refresh": 2, "type": "interval" }, { "allFormat": "glob", "allValue": null, "datasource": "Prometheus", "hide": 0, "includeAll": false, "label": "ProxySQL Instance", "multi": false, "multiFormat": "regex values", "name": "proxysql", "query": "label_values(proxysql_mysql_status_active_transactions, instance)", "refresh": 1, "refresh_on_load": false, "regex": "", "sort": 1, "tagValuesQuery": null, "tags": [], "tagsQuery": null, "type": "query", "useTags": false }, { "allFormat": "glob", "allValue": null, "datasource": "Prometheus", "hide": 0, "includeAll": false, "label": "Hostgroup", "multi": false, "multiFormat": "regex values", "name": "hostgroup", "query": "label_values(proxysql_connection_pool_status{instance=\"$proxysql\"}, hostgroup)", "refresh": 1, "refresh_on_load": false, "regex": "", "sort": 3, "tagValuesQuery": null, "tags": [], "tagsQuery": null, "type": "query", "useTags": false } ] }, "time": { "from": "now-12h", "to": "now" }, "timepicker": { "collapse": false, "enable": true, "notice": false, "now": true, "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "status": "Stable", "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ], "type": "timepicker" }, "timezone": "browser", "title": "ProxySQL Overview", "version": 0 }