| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000 | {    "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}
 |