{
    "annotations": {
        "list": []
    },
    "editable": false,
    "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"
        }
    ],
    "refresh": false,
    "rows": [
        {
            "collapse": false,
            "height": "500px",
            "panels": [
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "decimals": 2,
                    "editable": true,
                    "error": false,
                    "fill": 2,
                    "grid": {},
                    "height": "250px",
                    "id": 3,
                    "legend": {
                        "alignAsTable": true,
                        "avg": true,
                        "current": false,
                        "max": true,
                        "min": true,
                        "rightSide": true,
                        "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": "Key Reads",
                            "fill": 0
                        },
                        {
                            "alias": "Key Writes",
                            "fill": 0,
                            "transform": "negative-Y"
                        },
                        {
                            "alias": "Key Write Requests",
                            "transform": "negative-Y"
                        }
                    ],
                    "spaceLength": 10,
                    "span": 12,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_reads{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_reads{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Reads",
                            "metric": "",
                            "refId": "D",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_read_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_read_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Read Requests",
                            "metric": "",
                            "refId": "A",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_writes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_writes{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Writes",
                            "metric": "",
                            "refId": "B",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_write_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_write_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Write Requests",
                            "metric": "",
                            "refId": "C",
                            "step": 20
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "MyISAM Indexes",
                    "tooltip": {
                        "msResolution": false,
                        "shared": true,
                        "sort": 0,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": []
                    },
                    "yaxes": [
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        },
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        }
                    ]
                },
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "decimals": 2,
                    "description": "The `Key Read Ratio`  (Key_reads/Key_read_requests) ratio should normally be less than 0.01.\n\nThe  `Key Write Ratio` (Key_writes/Key_write_requests) ratio is usually near 1 if you are using mostly updates and deletes, but might be much smaller if you tend to do updates that affect many rows at the same time or if you are using the `DELAY_KEY_WRITE` table option.",
                    "editable": true,
                    "error": false,
                    "fill": 2,
                    "grid": {},
                    "height": "250px",
                    "id": 22,
                    "legend": {
                        "alignAsTable": true,
                        "avg": true,
                        "current": false,
                        "hideEmpty": false,
                        "hideZero": false,
                        "max": true,
                        "min": true,
                        "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": "Key Reads",
                            "fill": 0
                        },
                        {
                            "alias": "Key Writes",
                            "fill": 0,
                            "transform": "negative-Y"
                        },
                        {
                            "alias": "Key Write Requests",
                            "transform": "negative-Y"
                        }
                    ],
                    "spaceLength": 10,
                    "span": 6,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_reads{instance=\"$host\"}[$interval]) / rate(mysql_global_status_key_read_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_reads{instance=\"$host\"}[5m]) / irate(mysql_global_status_key_read_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Read Ratio",
                            "metric": "",
                            "refId": "D",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_key_writes{instance=\"$host\"}[$interval]) / rate(mysql_global_status_key_write_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_key_writes{instance=\"$host\"}[5m]) / irate(mysql_global_status_key_write_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Write Ratio",
                            "metric": "",
                            "refId": "A",
                            "step": 20
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "MyISAM Key Buffer Performance",
                    "tooltip": {
                        "msResolution": false,
                        "shared": true,
                        "sort": 0,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": []
                    },
                    "yaxes": [
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        },
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        }
                    ]
                },
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "decimals": 2,
                    "editable": true,
                    "error": false,
                    "fill": 6,
                    "grid": {},
                    "height": "250px",
                    "id": 21,
                    "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",
                    "percentage": false,
                    "pointradius": 5,
                    "points": false,
                    "renderer": "flot",
                    "seriesOverrides": [
                        {
                            "alias": "Key Blocks Not Flushed",
                            "fill": 0
                        }
                    ],
                    "spaceLength": 10,
                    "span": 6,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_variables_key_buffer_size{instance=\"$host\"}",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Buffer Size",
                            "metric": "",
                            "refId": "C",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_variables_key_buffer_size{instance=\"$host\"} - mysql_global_status_key_blocks_unused{instance=\"$host\"} * mysql_global_variables_key_cache_block_size{instance=\"$host\"}",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Blocks Used",
                            "metric": "",
                            "refId": "B",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_status_key_blocks_not_flushed{instance=\"$host\"} * mysql_global_variables_key_cache_block_size{instance=\"$host\"}",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Key Blocks Not Flushed",
                            "metric": "",
                            "refId": "A",
                            "step": 20
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "MyISAM Key Cache",
                    "tooltip": {
                        "msResolution": false,
                        "shared": true,
                        "sort": 0,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": []
                    },
                    "yaxes": [
                        {
                            "format": "short",
                            "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": true,
            "title": "MyISAM Metrics",
            "titleSize": "h6"
        },
        {
            "collapse": false,
            "height": "500px",
            "panels": [
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "decimals": 2,
                    "editable": true,
                    "error": false,
                    "fill": 2,
                    "grid": {},
                    "height": "250px",
                    "id": 24,
                    "legend": {
                        "alignAsTable": true,
                        "avg": true,
                        "current": false,
                        "max": true,
                        "min": true,
                        "rightSide": true,
                        "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,
                    "span": 9,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_aria_pagecache_write_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aria_pagecache_write_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Write Requests",
                            "metric": "",
                            "refId": "D",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_aria_pagecache_read_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aria_pagecache_read_requests{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Read Requests",
                            "metric": "",
                            "refId": "C",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_aria_pagecache_reads{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aria_pagecache_reads{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Reads",
                            "metric": "",
                            "refId": "A",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "rate(mysql_global_status_aria_pagecache_writes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aria_pagecache_writes{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Writes",
                            "metric": "",
                            "refId": "B",
                            "step": 20
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "Aria Pagecache Reads/Writes",
                    "tooltip": {
                        "msResolution": false,
                        "shared": true,
                        "sort": 0,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": []
                    },
                    "yaxes": [
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        },
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        }
                    ]
                },
                {
                    "content": "The Aria Storage Engine ships only with MariaDB so you should expect to see empty Aria graphs if you are running Percona Server for MySQL, MySQL Community, or MySQL Enterprise.",
                    "datasource": "Prometheus",
                    "height": "250px",
                    "id": 27,
                    "links": [],
                    "mode": "markdown",
                    "span": 3,
                    "title": "Aria Storage Engine",
                    "type": "text"
                },
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "description": "The number of Aria log fsyncs.",
                    "fill": 1,
                    "height": "250px",
                    "id": 26,
                    "legend": {
                        "avg": false,
                        "current": false,
                        "max": false,
                        "min": false,
                        "show": true,
                        "total": false,
                        "values": false
                    },
                    "lines": true,
                    "linewidth": 1,
                    "links": [],
                    "nullPointMode": "null",
                    "percentage": false,
                    "pointradius": 5,
                    "points": false,
                    "renderer": "flot",
                    "seriesOverrides": [],
                    "spaceLength": 10,
                    "span": 6,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "expr": "rate(mysql_global_status_aria_transaction_log_syncs{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aria_transaction_log_syncs{instance=\"$host\"}[5m])",
                            "format": "time_series",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Transaction Log Syncs",
                            "refId": "A",
                            "step": 5
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "Aria Transaction Log Syncs",
                    "tooltip": {
                        "msResolution": false,
                        "shared": true,
                        "sort": 0,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": []
                    },
                    "yaxes": [
                        {
                            "format": "short",
                            "label": null,
                            "logBase": 1,
                            "max": null,
                            "min": "0",
                            "show": true
                        },
                        {
                            "format": "short",
                            "label": null,
                            "logBase": 1,
                            "max": null,
                            "min": null,
                            "show": true
                        }
                    ]
                },
                {
                    "aliasColors": {},
                    "bars": false,
                    "dashLength": 10,
                    "dashes": false,
                    "datasource": "Prometheus",
                    "decimals": 0,
                    "editable": true,
                    "error": false,
                    "fill": 2,
                    "grid": {},
                    "height": "250px",
                    "id": 25,
                    "legend": {
                        "alignAsTable": true,
                        "avg": false,
                        "current": 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": 10,
                    "points": false,
                    "renderer": "flot",
                    "seriesOverrides": [
                        {
                            "alias": "Aria Pagecache Total Blocks",
                            "fill": 0
                        }
                    ],
                    "spaceLength": 10,
                    "span": 6,
                    "stack": false,
                    "steppedLine": false,
                    "targets": [
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_status_aria_pagecache_blocks_not_flushed{instance=\"$host\"}",
                            "format": "time_series",
                            "hide": false,
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Blocks Not Flushed",
                            "metric": "",
                            "refId": "D",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_status_aria_pagecache_blocks_used{instance=\"$host\"}",
                            "format": "time_series",
                            "interval": "$interval",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Blocks Used",
                            "metric": "",
                            "refId": "A",
                            "step": 20
                        },
                        {
                            "calculatedInterval": "2m",
                            "datasourceErrors": {},
                            "errors": {},
                            "expr": "mysql_global_status_aria_pagecache_blocks_unused{instance=\"$host\"}",
                            "format": "time_series",
                            "interval": "",
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Blocks Unused",
                            "metric": "",
                            "refId": "C",
                            "step": 5
                        },
                        {
                            "expr": "mysql_global_variables_aria_pagecache_buffer_size{instance=\"$host\"} / mysql_global_variables_aria_block_size{instance=\"$host\"}",
                            "format": "time_series",
                            "hide": false,
                            "intervalFactor": 1,
                            "legendFormat": "Aria Pagecache Total Blocks",
                            "refId": "B",
                            "step": 5
                        }
                    ],
                    "thresholds": [],
                    "timeFrom": null,
                    "timeShift": null,
                    "title": "Aria Pagecache Blocks",
                    "tooltip": {
                        "msResolution": false,
                        "shared": false,
                        "sort": 2,
                        "value_type": "individual"
                    },
                    "type": "graph",
                    "xaxis": {
                        "buckets": null,
                        "mode": "time",
                        "name": null,
                        "show": true,
                        "values": [
                            "current"
                        ]
                    },
                    "yaxes": [
                        {
                            "format": "none",
                            "logBase": 1,
                            "max": null,
                            "min": 0,
                            "show": true
                        },
                        {
                            "format": "short",
                            "logBase": 1,
                            "max": "100",
                            "min": 0,
                            "show": false
                        }
                    ]
                }
            ],
            "repeat": null,
            "repeatIteration": null,
            "repeatRowId": null,
            "showTitle": true,
            "title": "Aria Metrics",
            "titleSize": "h6"
        }
    ],
    "schemaVersion": 14,
    "style": "dark",
    "tags": [
        "Percona",
        "MySQL"
    ],
    "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": "Host",
                "multi": false,
                "multiFormat": "regex values",
                "name": "host",
                "query": "label_values(mysql_up, instance)",
                "refresh": 1,
                "refresh_on_load": false,
                "regex": "",
                "sort": 1,
                "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": "MySQL MyISAM/Aria Metrics",
    "version": 0
}
