diff --git a/dashboards/MySQL/MySQL_InnoDB_Details.json b/dashboards/MySQL/MySQL_InnoDB_Details.json index 436b7b0af9..f8f40cfd82 100644 --- a/dashboards/MySQL/MySQL_InnoDB_Details.json +++ b/dashboards/MySQL/MySQL_InnoDB_Details.json @@ -3,7 +3,10 @@ "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": false, "iconColor": "#e0752d", @@ -28,7 +31,10 @@ }, { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "#6ed0e0", @@ -46,11 +52,10 @@ } ] }, - "editable": false, + "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "id": null, - "iteration": 1656498960507, + "id": 98, "links": [ { "icon": "doc", @@ -146,10 +151,20 @@ "id": 59, "links": [], "options": { + "code": { + "language": "plaintext", + "showLineNumbers": false, + "showMiniMap": false + }, "content": "

Data for $service_name running on $node_name with $interval resolution

", "mode": "html" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", + "targets": [ + { + "refId": "A" + } + ], "type": "text" }, { @@ -220,7 +235,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -311,7 +326,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -392,7 +407,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -477,7 +492,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -562,7 +577,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -644,7 +659,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -726,7 +741,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -811,7 +826,7 @@ }, "textMode": "auto" }, - "pluginVersion": "8.3.5", + "pluginVersion": "9.2.20", "targets": [ { "calculatedInterval": "10m", @@ -864,8 +879,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -946,8 +960,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1028,8 +1041,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1110,8 +1122,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1192,8 +1203,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -1273,8 +1283,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -1358,8 +1367,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -1443,8 +1451,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -1988,7 +1995,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Transactions Information graph shows details about the recent transactions. Transaction IDs Assigned represents the total number of transactions initiated by InnoDB. RW Transaction Commits are the number of transactions not read-only. Insert-Update Transactions Commits are transactions on the Undo entries. Non Locking RO Transaction Commits are transactions commit from select statement in auto-commit mode or transactions explicitly started with \"start transaction read only\".\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Transactions Information graph shows details about the recent transactions. Transaction IDs Assigned represents the total number of transactions initiated by InnoDB. RW Transaction Commits are the number of transactions not read-only. Insert-Update Transactions Commits are transactions on the Undo entries. Non Locking RO Transaction Commits are transactions commit from select statement in auto-commit mode or transactions explicitly started with \"start transaction read only\".\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -2252,6 +2259,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Activity", "type": "row" }, @@ -2288,8 +2300,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2370,8 +2381,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -2456,8 +2466,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2538,8 +2547,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2746,8 +2754,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2828,8 +2835,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2910,8 +2916,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -2992,8 +2997,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3074,8 +3078,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3155,8 +3158,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -3240,8 +3242,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -3326,8 +3327,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3409,8 +3409,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -3472,6 +3471,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Storage Summary", "type": "row" }, @@ -3508,8 +3512,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -3593,8 +3596,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3674,8 +3676,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3756,8 +3757,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3838,8 +3838,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -3920,8 +3919,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4002,8 +4000,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4084,8 +4081,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4150,7 +4146,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the `innodb_flush_method` configuration option.", + "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the innodb_flush_method configuration option.", "editable": true, "error": false, "fieldConfig": { @@ -4425,7 +4421,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the `innodb_flush_method` configuration option.", + "description": "**InnoDB I/O**\n\n_Data Writes_ - The total number of InnoDB data writes.\\\n_Data Reads_ - The total number of InnoDB data reads (OS file reads).\\\n_Log Writes_ - The number of physical writes to the InnoDB redo log file.\\\n_Data Fsyncs_ - The number of fsync() operations. The frequency of fsync() calls is influenced by the setting of the innodb_flush_method configuration option.", "editable": true, "error": false, "fieldConfig": { @@ -4910,8 +4906,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -4993,8 +4988,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -5080,8 +5074,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -5165,8 +5158,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -5246,8 +5238,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -5309,6 +5300,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Disk IO", "type": "row" }, @@ -6343,6 +6339,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB IO Objects", "type": "row" }, @@ -6379,8 +6380,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -6466,8 +6466,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -6559,8 +6558,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -6645,8 +6643,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -6726,8 +6723,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -6811,8 +6807,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -6896,8 +6891,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -6981,8 +6975,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -7857,8 +7850,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -7938,8 +7930,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8019,8 +8010,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -8104,8 +8094,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -8191,8 +8180,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -8278,8 +8266,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8359,8 +8346,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8442,8 +8428,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -8527,8 +8512,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8608,8 +8592,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8691,8 +8674,7 @@ "mode": "absolute", "steps": [ { - "color": "rgb(251, 251, 251)", - "value": null + "color": "rgb(251, 251, 251)" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -8776,8 +8758,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8857,8 +8838,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -8938,8 +8918,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9021,8 +9000,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -9084,6 +9062,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Buffer Pool", "type": "row" }, @@ -9120,8 +9103,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9202,8 +9184,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9283,8 +9264,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -9369,8 +9349,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9451,8 +9430,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9532,8 +9510,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -9617,8 +9594,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -9702,8 +9678,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -9765,6 +9740,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Buffer Pool - Replacement Management", "type": "row" }, @@ -9802,8 +9782,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9884,8 +9863,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -9966,8 +9944,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10049,8 +10026,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "#8F3BB8", @@ -10120,7 +10096,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "**InnoDB Checkpoint Age**\n\nThe maximum checkpoint age is determined by the total length of all transaction log files (`innodb_log_file_size`).\n\nWhen the checkpoint age reaches the maximum checkpoint age, blocks are flushed syncronously. The rules of the thumb is to keep one hour of traffic in those logs and let the checkpointing perform its work as smooth as possible. If you don't do this, InnoDB will do synchronous flushing at the worst possible time, ie when you are busiest.\n\n**Notice**: InnoDB_checkpoint_max_age variable was removed in Percona Server for MySQL 8.0.13-4 due to a change in MySQL. It was restored in 8.0.21-12.", + "description": "**InnoDB Checkpoint Age**\n\nThe maximum checkpoint age is determined by the total length of all transaction log files (innodb_log_file_size).\n\nWhen the checkpoint age reaches the maximum checkpoint age, blocks are flushed syncronously. The rules of the thumb is to keep one hour of traffic in those logs and let the checkpointing perform its work as smooth as possible. If you don't do this, InnoDB will do synchronous flushing at the worst possible time, ie when you are busiest.\n\n**Notice**: InnoDB_checkpoint_max_age variable was removed in Percona Server for MySQL 8.0.13-4 due to a change in MySQL. It was restored in 8.0.21-12.", "editable": true, "error": false, "fieldConfig": { @@ -10262,8 +10238,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10344,8 +10319,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10426,8 +10400,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10507,8 +10480,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -10593,8 +10565,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10675,8 +10646,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10757,8 +10727,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10839,8 +10808,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -10921,8 +10889,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11003,8 +10970,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11085,8 +11051,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11166,8 +11131,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -11252,8 +11216,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11334,8 +11297,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11416,8 +11378,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11498,8 +11459,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11613,7 +11573,6 @@ "renderer": "flot", "seriesOverrides": [ { - "$$hashKey": "object:792", "alias": "Sync Flushing", "color": "#E02F44" } @@ -11719,8 +11678,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11801,8 +11759,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11883,8 +11840,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -11964,8 +11920,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -12050,8 +12005,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -12132,8 +12086,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -12214,8 +12167,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -12295,8 +12247,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -12376,8 +12327,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -12435,11 +12385,16 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Checkpointing and Flushing", "type": "row" }, { - "collapsed": true, + "collapsed": false, "gridPos": { "h": 1, "w": 24, @@ -12447,1844 +12402,1858 @@ "y": 13 }, "id": 84, - "panels": [ + "panels": [], + "targets": [ { - "description": "Number of InnoDB Log Files Multiplied by Their Size", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 16 - }, - "id": 172, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "refId": "A" + } + ], + "title": "InnoDB Logging", + "type": "row" + }, + { + "description": "Number of InnoDB Log Files Multiplied by Their Size", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 0, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "Total Log Space", - "type": "stat" + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 14 + }, + "id": 172, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "description": "** InnoDB Log Buffer Size **\n\nThe size of buffer InnoDB uses for buffering writes to log files", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "(mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} != 1 and avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"}) ) or (avg by (service_name)(mysql_global_variables_innodb_redo_log_capacity{service_name=~\"$service_name\"}) unless (mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} == 1))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "Total Log Space", + "type": "stat" + }, + { + "description": "** InnoDB Log Buffer Size **\n\nThe size of buffer InnoDB uses for buffering writes to log files", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 3, - "y": 16 - }, - "id": 176, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "type": "special" } ], - "title": "Log Buffer Size", - "type": "stat" - }, - { - "description": "What to do with Log file At Transaction Commit ? Do nothing and wait for timeout to flush the data from Log Buffer, Flush it to OS Cache but not FSYNC or Flush only", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "0": { - "text": "DO NOTHING" - }, - "1": { - "text": "FLUSH,FYNC" - }, - "2": { - "text": "FLUSH" - } - }, - "type": "value" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "unit": "none" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 6, - "y": 16 - }, - "id": 362, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + { + "color": "red", + "value": 80 + } + ] }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_flush_log_at_trx_commit{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 14 + }, + "id": 176, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "title": "At Transaction Commit", - "type": "stat" + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "description": "Every Specified Number of Seconds Flush Transaction Log. ", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "s" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 9, - "y": 16 - }, - "id": 365, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"})", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Log Buffer Size", + "type": "stat" + }, + { + "description": "What to do with Log file At Transaction Commit ? Do nothing and wait for timeout to flush the data from Log Buffer, Flush it to OS Cache but not FSYNC or Flush only", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 0, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_flush_log_at_timeout{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "0": { + "text": "DO NOTHING" + }, + "1": { + "text": "FLUSH,FYNC" + }, + "2": { + "text": "FLUSH" + } + }, + "type": "value" } ], - "title": "Flush Transaction Log Every", - "type": "stat" - }, - { - "description": "This variable can be seen as minimum IO alignment InnoDB will use for Redo log file. High Values cause waste, low values can make IO less efficient", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 12, - "y": 16 - }, - "id": 367, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + { + "color": "red", + "value": 80 + } + ] }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_write_ahead_size{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } + "unit": "none" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 6, + "y": 14 + }, + "id": 362, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "title": "InnoDB Write Ahead Block Size", - "type": "stat" + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "description": "How much Writes to Log Are Amplified compared to how much Redo is Generated", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "#299c46", - "value": null - }, - { - "color": "rgba(237, 129, 40, 0.89)", - "value": 2 - }, - { - "color": "#d44a3a", - "value": 3 - } - ] - }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 15, - "y": 16 - }, - "id": 177, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (mysql_global_variables_innodb_flush_log_at_trx_commit{service_name=~\"$service_name\"})", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "At Transaction Commit", + "type": "stat" + }, + { + "description": "Every Specified Number of Seconds Flush Transaction Log. ", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 0, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (((rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))/((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m])))))\n", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "Log Write Amplification", - "type": "stat" - }, - { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "unit": "ops" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 18, - "y": 16 + { + "color": "red", + "value": 80 + } + ] }, - "id": 174, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (((rate(mysql_global_status_innodb_os_log_fsyncs{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_fsyncs{service_name=~\"$service_name\"}[5m]))))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } + "unit": "s" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 9, + "y": 14 + }, + "id": 365, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "title": "Log Fsync Rate", - "type": "stat" + "fields": "", + "values": false }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "description": "Amount of Redo Generated Per Write Transaction. This is a good indicator of transaction size ", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 2, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 21, - "y": 16 - }, - "id": 178, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (mysql_global_variables_innodb_flush_log_at_timeout{service_name=~\"$service_name\"})", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Flush Transaction Log Every", + "type": "stat" + }, + { + "description": "This variable can be seen as minimum IO alignment InnoDB will use for Redo log file. High Values cause waste, low values can make IO less efficient", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 0, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (sum((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m]))) / sum((rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[5m]))))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "Redo Generated per Trx", - "type": "stat" + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 12, + "y": 14 + }, + "id": 367, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "aliasColors": { - "Data Written to Logs": "#E24D42", - "Time to Use In-Memory Log Buffer": "dark-purple", - "Time to Use Redo Log Space ": "#447EBC" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (mysql_global_variables_innodb_log_write_ahead_size{service_name=~\"$service_name\"})", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "InnoDB Write Ahead Block Size", + "type": "stat" + }, + { + "description": "How much Writes to Log Are Amplified compared to how much Redo is Generated", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "bars": false, - "dashLength": 10, - "dashes": false, "decimals": 2, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" + } + ], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "#299c46", + "value": null + }, + { + "color": "rgba(237, 129, 40, 0.89)", + "value": 2 + }, + { + "color": "#d44a3a", + "value": 3 + } + ] }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 19 - }, - "hiddenSeries": false, - "id": 50, - "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 + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 15, + "y": 14 + }, + "id": 177, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (((rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))/((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m])))))\n", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Log Write Amplification", + "type": "stat" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"})/avg by (service_name) (rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Time to Use Redo Log Space ", - "metric": "", - "refId": "B", - "step": 300 - }, + "decimals": 2, + "mappings": [ { - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"})/avg by (service_name) (rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Time to Use In-Memory Log Buffer", - "refId": "C", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "thresholds": [], - "timeRegions": [], - "title": "InnoDB Logging Performance", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] }, - "yaxes": [ - { - "decimals": 2, - "format": "s", - "logBase": 2, - "min": 0, - "show": true - }, - { - "format": "s", - "label": "", - "logBase": 2, - "min": 0, - "show": false - } + "unit": "ops" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 18, + "y": 14 + }, + "id": 174, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "yaxis": { - "align": false - } + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "aliasColors": { - "Data Written to Log Files": "semi-dark-orange" + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (((rate(mysql_global_status_innodb_os_log_fsyncs{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_fsyncs{service_name=~\"$service_name\"}[5m]))))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Log Fsync Rate", + "type": "stat" + }, + { + "description": "Amount of Redo Generated Per Write Transaction. This is a good indicator of transaction size ", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "bars": true, - "dashLength": 10, - "dashes": false, "decimals": 2, - "description": "**InnoDB Log File Usage Hourly**\n\nAlong with the buffer pool size, `innodb_log_file_size` is the most important setting when we are working with InnoDB. This graph shows how much data was written to InnoDB's redo logs over each hour. When the InnoDB log files are full, InnoDB needs to flush the modified pages from memory to disk.\n\nThe rules of the thumb is to keep one hour of traffic in those logs and let the checkpointing perform its work as smooth as possible. If you don't do this, InnoDB will do synchronous flushing at the worst possible time, ie when you are busiest.\n\nThis graph can help guide you in setting the correct `innodb_log_file_size`.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 19 - }, - "hiddenSeries": false, - "id": 37, - "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": [ - { - "targetBlank": true, - "title": "How to calculate a good InnoDB log file size", - "url": "https://www.percona.com/blog/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/" - }, + "mappings": [ { - "targetBlank": true, - "title": "System Variables (innodb_log_file_size)", - "url": "https://per.co.na/innodb_log_file_size" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "Total Size of InnoDB Log Files", - "bars": false, - "color": "#E24D42", - "fill": 0, - "lines": true - }, - { - "alias": "Data Written", - "color": "#E0752D" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (increase(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[1h]))", - "format": "time_series", - "interval": "1h", - "intervalFactor": 1, - "legendFormat": "Data Written to Log Files", - "metric": "", - "refId": "A", - "step": 3600 - }, - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Total Size of InnoDB Log Files", - "metric": "", - "refId": "B", - "step": 300 - } - ], - "thresholds": [], - "timeFrom": "24h", - "timeRegions": [], - "title": "InnoDB Log File Usage Hourly", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] }, - "yaxes": [ - { - "decimals": 2, - "format": "bytes", - "label": "", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "min": 0, - "show": false - } + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 21, + "y": 14 + }, + "id": 178, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "yaxis": { - "align": false - } + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "aliasColors": { - "Data Written to Logs": "#E24D42", - "Log Buffer Size ": "dark-red", - "Time to Use In-Memory Log Buffer": "dark-purple", - "Time to Use Redo Log Space ": "#447EBC" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 27 - }, - "hiddenSeries": false, - "id": 179, - "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 - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (max_over_time(mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Log Buffer Size ", - "metric": "", - "refId": "B", - "step": 300 - }, - { - "expr": "avg by (service_name) (max_over_time((mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}-mysql_global_status_innodb_lsn_flushed{service_name=~\"$service_name\"})[$interval]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Max Log Space Used", - "refId": "C", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "InnoDB Log Buffer Usage ", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "bytes", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "s", - "label": "", - "logBase": 2, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (sum((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m]))) / sum((rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[5m]))))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Redo Generated per Trx", + "type": "stat" + }, + { + "aliasColors": { + "Data Written to Logs": "#E24D42", + "Time to Use In-Memory Log Buffer": "dark-purple", + "Time to Use Redo Log Space ": "#447EBC" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 17 + }, + "hiddenSeries": false, + "id": 50, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ { - "aliasColors": { - "Data Written to Logs": "#E24D42", - "Full Log Block Writes": "dark-yellow", - "Log Buffer Size ": "dark-red", - "Partial Log Block Writes": "dark-orange", - "Time to Use In-Memory Log Buffer": "dark-purple", - "Time to Use Redo Log Space ": "#447EBC" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 2, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 27 - }, - "hiddenSeries": false, - "id": 180, - "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 - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": true, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (rate(mysql_info_schema_innodb_metrics_log_log_full_block_writes_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_log_log_full_block_writes_total{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Full Log Block Writes", - "metric": "", - "refId": "B", - "step": 300 - }, - { - "expr": "\ravg by (service_name) (rate(mysql_info_schema_innodb_metrics_log_log_partial_block_writes_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_log_log_partial_block_writes_total{service_name=~\"$service_name\"}[5m])\r)", - "format": "time_series", - "hide": false, - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Partial Log Block Writes", - "refId": "C", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Log Writes Details", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "ops", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "s", - "label": "", - "logBase": 2, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "(mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} != 1 and avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"}) ) or (avg by (service_name)(mysql_global_variables_innodb_redo_log_capacity{service_name=~\"$service_name\"}) unless (mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} == 1))/avg by (service_name) (rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Time to Use Redo Log Space ", + "metric": "", + "refId": "B", + "step": 300 }, { - "aliasColors": { - "Data Written to Logs": "#E24D42", - "Log Buffer Size ": "dark-red", - "Time to Use In-Memory Log Buffer": "dark-purple", - "Time to Use Redo Log Space ": "#447EBC", - "wait/io/file/innodb/innodb_log_file": "semi-dark-purple" - }, - "bars": false, - "dashLength": 10, - "dashes": false, + "expr": "avg by (service_name) (mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"})/avg by (service_name) (rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Time to Use In-Memory Log Buffer", + "refId": "C", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "InnoDB Logging Performance", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { "decimals": 2, - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 0, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 35 - }, - "hiddenSeries": false, - "id": 181, - "legend": { - "alignAsTable": true, - "avg": true, - "current": false, - "max": true, - "min": true, - "rightSide": false, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": false, - "linewidth": 2, - "links": [], - "nullPointMode": "null", - "options": { - "alertThreshold": true - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (((rate(mysql_perf_schema_file_events_seconds_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb_log_file\",mode=\"misc\"}[$interval])>0) or (irate(mysql_perf_schema_file_events_seconds_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb__log_file\",mode!=\"misc\"}[5m])>0)) /((rate(mysql_perf_schema_file_events_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb__log_file\",mode=\"misc\"}[$interval])>0 or irate(mysql_perf_schema_file_events_total{service_name=~\"$service_name\",event_name=\"wait/io/file/innodb/innodb_log_file\",mode=\"misc\"}[5m])>0)))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Log File Flush Latency", - "metric": "", - "refId": "B", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "InnoDB Log File Flush Latency", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "s", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "s", - "label": "", - "logBase": 2, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } + "format": "s", + "logBase": 2, + "min": 0, + "show": true }, { - "aliasColors": { - "Data Written to Logs": "#E24D42", - "Log Buffer Size ": "dark-red", - "Log File Flush Latency": "dark-yellow", - "Log Padding Written": "semi-dark-orange", - "Time to Use In-Memory Log Buffer": "dark-purple", - "Time to Use Redo Log Space ": "#447EBC", - "wait/io/file/innodb/innodb_log_file": "semi-dark-purple" - }, + "format": "s", + "label": "", + "logBase": 2, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Data Written to Log Files": "semi-dark-orange" + }, + "bars": true, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "**InnoDB Log File Usage Hourly**\n\nAlong with the buffer pool size, innodb_log_file_size is the most important setting when we are working with InnoDB. This graph shows how much data was written to InnoDB's redo logs over each hour. When the InnoDB log files are full, InnoDB needs to flush the modified pages from memory to disk.\n\nThe rules of the thumb is to keep one hour of traffic in those logs and let the checkpointing perform its work as smooth as possible. If you don't do this, InnoDB will do synchronous flushing at the worst possible time, ie when you are busiest.\n\nThis graph can help guide you in setting the correct innodb_log_file_size.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 17 + }, + "hiddenSeries": false, + "id": 37, + "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": [ + { + "targetBlank": true, + "title": "How to calculate a good InnoDB log file size", + "url": "https://www.percona.com/blog/2008/11/21/how-to-calculate-a-good-innodb-log-file-size/" + }, + { + "targetBlank": true, + "title": "System Variables (innodb_log_file_size)", + "url": "https://per.co.na/innodb_log_file_size" + } + ], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 5, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "alias": "Total Size of InnoDB Log Files", "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "Amount of Log Padding Written", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, + "color": "#E24D42", "fill": 0, - "fillGradient": 0, - "grid": {}, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 35 - }, - "hiddenSeries": false, - "id": 182, - "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 - }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (((rate(mysql_info_schema_innodb_metrics_log_log_padded_total{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_info_schema_innodb_metrics_log_log_padded_total{service_name=~\"$service_name\"}[5m]))))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Log Padding Written", - "metric": "", - "refId": "B", - "step": 300 - } - ], - "thresholds": [], - "timeRegions": [], - "title": "Log Padding Written", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 2, - "format": "Bps", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "s", - "label": "", - "logBase": 2, - "min": 0, - "show": false - } - ], - "yaxis": { - "align": false - } + "lines": true }, { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "bytes" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 43 - }, - "id": 363, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "alias": "Data Written", + "color": "#E0752D" + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "avg by (service_name) (increase(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[1h]))", + "format": "time_series", + "interval": "1h", + "intervalFactor": 1, + "legendFormat": "Data Written to Log Files", + "metric": "", + "range": true, + "refId": "A", + "step": 3600 + }, + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "(mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} != 1 and avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"} * mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"}) ) or (avg by (service_name)(mysql_global_variables_innodb_redo_log_capacity{service_name=~\"$service_name\"}) unless (mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} == 1))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Total Size of InnoDB Log Files", + "metric": "", + "range": true, + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeFrom": "24h", + "timeRegions": [], + "title": "InnoDB Log File Usage Hourly", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "label": "", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Data Written to Logs": "#E24D42", + "Log Buffer Size ": "dark-red", + "Time to Use In-Memory Log Buffer": "dark-purple", + "Time to Use Redo Log Space ": "#447EBC" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 25 + }, + "hiddenSeries": false, + "id": 179, + "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 + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (max_over_time(mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"}[$interval]) or\nmax_over_time(mysql_global_variables_innodb_log_buffer_size{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Log Buffer Size ", + "metric": "", + "refId": "B", + "step": 300 + }, + { + "expr": "avg by (service_name) (max_over_time((mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}-mysql_global_status_innodb_lsn_flushed{service_name=~\"$service_name\"})[$interval]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Max Log Space Used", + "refId": "C", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "InnoDB Log Buffer Usage ", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "bytes", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "label": "", + "logBase": 2, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Data Written to Logs": "#E24D42", + "Full Log Block Writes": "dark-yellow", + "Log Buffer Size ": "dark-red", + "Partial Log Block Writes": "dark-orange", + "Time to Use In-Memory Log Buffer": "dark-purple", + "Time to Use Redo Log Space ": "#447EBC" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 2, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 25 + }, + "hiddenSeries": false, + "id": 180, + "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 + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": true, + "steppedLine": true, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (rate(mysql_info_schema_innodb_metrics_log_log_full_block_writes_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_log_log_full_block_writes_total{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Full Log Block Writes", + "metric": "", + "refId": "B", + "step": 300 + }, + { + "expr": "\ravg by (service_name) (rate(mysql_info_schema_innodb_metrics_log_log_partial_block_writes_total{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_log_log_partial_block_writes_total{service_name=~\"$service_name\"}[5m])\r)", + "format": "time_series", + "hide": false, + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Partial Log Block Writes", + "refId": "C", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Log Writes Details", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "ops", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "label": "", + "logBase": 2, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Data Written to Logs": "#E24D42", + "Log Buffer Size ": "dark-red", + "Time to Use In-Memory Log Buffer": "dark-purple", + "Time to Use Redo Log Space ": "#447EBC", + "wait/io/file/innodb/innodb_log_file": "semi-dark-purple" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 33 + }, + "hiddenSeries": false, + "id": 181, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (((rate(mysql_perf_schema_file_events_seconds_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb_log_file\",mode=\"misc\"}[$interval])>0) or (irate(mysql_perf_schema_file_events_seconds_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb__log_file\",mode!=\"misc\"}[5m])>0)) /((rate(mysql_perf_schema_file_events_total{service_name=~\"$service_name\", event_name=\"wait/io/file/innodb/innodb__log_file\",mode=\"misc\"}[$interval])>0 or irate(mysql_perf_schema_file_events_total{service_name=~\"$service_name\",event_name=\"wait/io/file/innodb/innodb_log_file\",mode=\"misc\"}[5m])>0)))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Log File Flush Latency", + "metric": "", + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "InnoDB Log File Flush Latency", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "s", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "label": "", + "logBase": 2, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "aliasColors": { + "Data Written to Logs": "#E24D42", + "Log Buffer Size ": "dark-red", + "Log File Flush Latency": "dark-yellow", + "Log Padding Written": "semi-dark-orange", + "Time to Use In-Memory Log Buffer": "dark-purple", + "Time to Use Redo Log Space ": "#447EBC", + "wait/io/file/innodb/innodb_log_file": "semi-dark-purple" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "Amount of Log Padding Written", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "grid": {}, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 33 + }, + "hiddenSeries": false, + "id": 182, + "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 + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": false, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (((rate(mysql_info_schema_innodb_metrics_log_log_padded_total{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_info_schema_innodb_metrics_log_log_padded_total{service_name=~\"$service_name\"}[5m]))))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Log Padding Written", + "metric": "", + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "Log Padding Written", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "yaxes": [ + { + "decimals": 2, + "format": "Bps", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "s", + "label": "", + "logBase": 2, + "min": 0, + "show": false + } + ], + "yaxis": { + "align": false + } + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 0, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "InnoDB Log File Size", - "type": "stat" - }, - { - "description": "Number of InnoDB Redo Log Files", - "fieldConfig": { - "defaults": { - "color": { - "mode": "thresholds" - }, - "decimals": 0, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "unit": "short" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 3, - "y": 43 - }, - "id": 364, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "none", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + { + "color": "red", + "value": 80 + } + ] }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (mysql_global_variables_innodb_log_files_in_group{service_name=~\"$service_name\"})", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 - } + "unit": "bytes" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 0, + "y": 41 + }, + "id": 363, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" ], - "title": "InnoDB Log Files", - "type": "stat" + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "description": "", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] - }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 6, - "y": 43 - }, - "id": 173, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" - }, - "pluginVersion": "8.3.5", - "targets": [ - { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) ((rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))) ", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "calculatedInterval": "10m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "(mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} != 1 and avg by (service_name) (mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"}) ) or (avg by (service_name)(mysql_global_variables_innodb_redo_log_capacity{service_name=~\"$service_name\"})/32 unless (mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} == 1))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "InnoDB Log File Size", + "type": "stat" + }, + { + "description": "Number of InnoDB Redo Log Files", + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "decimals": 0, + "mappings": [ + { + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "Log Bandwidth", - "type": "stat" - }, - { - "description": "Rate at which LSN (Redo) is Created. It may not match how much data is written to log files due to block size rounding ", - "fieldConfig": { - "defaults": { - "color": { - "fixedColor": "rgb(31, 120, 193)", - "mode": "fixed" - }, - "decimals": 1, - "mappings": [ - { - "options": { - "match": "null", - "result": { - "text": "N/A" - } - }, - "type": "special" - } - ], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": null - }, - { - "color": "red", - "value": 80 - } - ] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null }, - "unit": "Bps" - }, - "overrides": [] - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 9, - "y": 43 + { + "color": "red", + "value": 80 + } + ] }, - "id": 175, - "links": [], - "maxDataPoints": 100, - "options": { - "colorMode": "none", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "horizontal", - "reduceOptions": { - "calcs": [ - "mean" - ], - "fields": "", - "values": false - }, - "text": { - "valueSize": 20 - }, - "textMode": "auto" + "unit": "short" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 3, + "y": 41 + }, + "id": 364, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "none", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "editorMode": "code", + "errors": {}, + "expr": "(mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} != 1 and avg by (service_name) (mysql_global_variables_innodb_log_file_size{service_name=~\"$service_name\"}) ) or (avg by (service_name)(32) unless (mysql_version_info{innodb_version=~\"8.[0-9].[3-9][0-9]\",service_name=~\"$service_name\"} == 1))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "range": true, + "refId": "A", + "step": 300 + } + ], + "title": "InnoDB Log Files", + "type": "stat" + }, + { + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "pluginVersion": "8.3.5", - "targets": [ + "decimals": 1, + "mappings": [ { - "calculatedInterval": "10m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) ((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m])))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "", - "metric": "", - "refId": "A", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "title": "Redo Generation Rate", - "type": "stat" + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 6, + "y": 41 + }, + "id": 173, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" + ], + "fields": "", + "values": false }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ { - "aliasColors": { - "Avg Row Lock Wait Time": "#BF1B00", - "Group Commit Batch Size": "semi-dark-blue" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "decimals": 2, - "description": "The InnoDB Group Commit Batch Size graph shows number of transactions which are committed with a single group commit operation. \n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", - "editable": true, - "error": false, - "fieldConfig": { - "defaults": { - "links": [] - }, - "overrides": [] - }, - "fill": 1, - "fillGradient": 0, - "grid": { - "leftLogBase": 1, - "leftMin": 0, - "rightLogBase": 1, - "rightMin": 0 - }, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 43 - }, - "hiddenSeries": false, - "id": 277, - "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 + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) ((rate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{service_name=~\"$service_name\"}[5m]))) ", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 + } + ], + "title": "Log Bandwidth", + "type": "stat" + }, + { + "description": "Rate at which LSN (Redo) is Created. It may not match how much data is written to log files due to block size rounding ", + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "rgb(31, 120, 193)", + "mode": "fixed" }, - "paceLength": 10, - "percentage": false, - "pluginVersion": "8.3.5", - "pointradius": 1, - "points": true, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ + "decimals": 1, + "mappings": [ { - "calculatedInterval": "2m", - "datasourceErrors": {}, - "errors": {}, - "expr": "avg by (service_name) (rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[$interval])/rate(mysql_global_status_innodb_log_writes{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[5m])/irate(mysql_global_status_innodb_log_writes{service_name=~\"$service_name\"}[5m]))", - "format": "time_series", - "interval": "$interval", - "intervalFactor": 1, - "legendFormat": "Group Commit Batch Size", - "metric": "", - "refId": "B", - "step": 300 + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "thresholds": [], - "timeRegions": [], - "title": "InnoDB Group Commit Batch Size", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 5, - "value_type": "individual" - }, - "type": "graph", - "x-axis": true, - "xaxis": { - "mode": "time", - "show": true, - "values": [] + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] }, - "y-axis": true, - "y_formats": [ - "short", - "ms" - ], - "yaxes": [ - { - "decimals": 2, - "format": "short", - "logBase": 1, - "min": 0, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": false - } + "unit": "Bps" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 3, + "x": 9, + "y": 41 + }, + "id": 175, + "links": [], + "maxDataPoints": 100, + "options": { + "colorMode": "none", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "mean" ], - "yaxis": { - "align": false - } + "fields": "", + "values": false + }, + "text": { + "valueSize": 20 + }, + "textMode": "auto" + }, + "pluginVersion": "9.2.20", + "targets": [ + { + "calculatedInterval": "10m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) ((rate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[$interval])) or (irate(mysql_global_status_innodb_lsn_current{service_name=~\"$service_name\"}[5m])))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "", + "metric": "", + "refId": "A", + "step": 300 } ], - "title": "InnoDB Logging", - "type": "row" + "title": "Redo Generation Rate", + "type": "stat" + }, + { + "aliasColors": { + "Avg Row Lock Wait Time": "#BF1B00", + "Group Commit Batch Size": "semi-dark-blue" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": 2, + "description": "The InnoDB Group Commit Batch Size graph shows number of transactions which are committed with a single group commit operation. \n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", + "editable": true, + "error": false, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "grid": { + "leftLogBase": 1, + "leftMin": 0, + "rightLogBase": 1, + "rightMin": 0 + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 41 + }, + "hiddenSeries": false, + "id": 277, + "legend": { + "alignAsTable": true, + "avg": true, + "current": false, + "max": true, + "min": true, + "rightSide": false, + "show": true, + "sort": "avg", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": false, + "linewidth": 2, + "links": [], + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "paceLength": 10, + "percentage": false, + "pluginVersion": "9.2.20", + "pointradius": 1, + "points": true, + "renderer": "flot", + "seriesOverrides": [], + "spaceLength": 10, + "stack": false, + "steppedLine": true, + "targets": [ + { + "calculatedInterval": "2m", + "datasourceErrors": {}, + "errors": {}, + "expr": "avg by (service_name) (rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[$interval])/rate(mysql_global_status_innodb_log_writes{service_name=~\"$service_name\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{service_name=~\"$service_name\"}[5m])/irate(mysql_global_status_innodb_log_writes{service_name=~\"$service_name\"}[5m]))", + "format": "time_series", + "interval": "$interval", + "intervalFactor": 1, + "legendFormat": "Group Commit Batch Size", + "metric": "", + "refId": "B", + "step": 300 + } + ], + "thresholds": [], + "timeRegions": [], + "title": "InnoDB Group Commit Batch Size", + "tooltip": { + "msResolution": false, + "shared": true, + "sort": 5, + "value_type": "individual" + }, + "type": "graph", + "x-axis": true, + "xaxis": { + "mode": "time", + "show": true, + "values": [] + }, + "y-axis": true, + "y_formats": [ + "short", + "ms" + ], + "yaxes": [ + { + "decimals": 2, + "format": "short", + "logBase": 1, + "min": 0, + "show": true + }, + { + "format": "short", + "logBase": 1, + "show": false + } + ], + "yaxis": { + "align": false + } }, { "collapsed": true, @@ -14292,7 +14261,7 @@ "h": 1, "w": 24, "x": 0, - "y": 14 + "y": 49 }, "id": 71, "panels": [ @@ -14319,8 +14288,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -14402,8 +14370,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -14492,8 +14459,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "#FA6400", @@ -14579,8 +14545,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -14664,8 +14629,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -14750,8 +14714,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -14831,8 +14794,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -15600,6 +15562,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Locking", "type": "row" }, @@ -15609,7 +15576,7 @@ "h": 1, "w": 24, "x": 0, - "y": 15 + "y": 50 }, "id": 51, "panels": [ @@ -15636,8 +15603,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -15717,8 +15683,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -15800,8 +15765,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -15885,8 +15849,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -15966,8 +15929,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -16051,8 +16013,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -16136,8 +16097,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -16221,8 +16181,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -16288,7 +16247,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Purge Performance graph shows metrics about the page purging process. The purge process removed the undo entries from the history list and cleanup the pages of the old versions of modified rows and effectively remove deleted rows.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Purge Performance graph shows metrics about the page purging process. The purge process removed the undo entries from the history list and cleanup the pages of the old versions of modified rows and effectively remove deleted rows.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -16536,7 +16495,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Undo Space Usage graph shows the amount of space used by the Undo segment. If the amount of space grows too much, look for long running transactions holding read views opened in the InnoDB status.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Undo Space Usage graph shows the amount of space used by the Undo segment. If the amount of space grows too much, look for long running transactions holding read views opened in the InnoDB status.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -17037,8 +16996,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17119,8 +17077,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17201,8 +17158,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17283,8 +17239,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17364,8 +17319,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -17449,8 +17403,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17530,8 +17483,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -17589,6 +17541,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Undo Space and Purging", "type": "row" }, @@ -17598,7 +17555,7 @@ "h": 1, "w": 24, "x": 0, - "y": 16 + "y": 51 }, "id": 52, "panels": [ @@ -17608,7 +17565,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Page Splits graph shows the InnoDB page maintenance activity related to splitting and merging pages. When an InnoDB page, other than the top most leaf page, has too much data to accept a row update or a row insert, it has to be split in two. Similarly, if an InnoDB page, after a row update or delete operation, ends up being less than half full, an attempt is made to merge the page with a neighbor page. If the resulting page size is larger than the InnoDB page size, the operation fails. If your workload causes a large number of page splits, try lowering the innodb_fill_factor variable (5.7+).\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Page Splits graph shows the InnoDB page maintenance activity related to splitting and merging pages. When an InnoDB page, other than the top most leaf page, has too much data to accept a row update or a row insert, it has to be split in two. Similarly, if an InnoDB page, after a row update or delete operation, ends up being less than half full, an attempt is made to merge the page with a neighbor page. If the resulting page size is larger than the InnoDB page size, the operation fails. If your workload causes a large number of page splits, try lowering the innodb_fill_factor variable (5.7+).\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -17875,7 +17832,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Page Reorgs graph shows information about the page reorganization operations. When a page receives an update or an insert that affect the offset of other rows in the page, a reorganization is needed. If the reorganization process finds out there is not enough room in the page, the page will be split. Page reorganization can only fail for compressed pages.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Page Reorgs graph shows information about the page reorganization operations. When a page receives an update or an insert that affect the offset of other rows in the page, a reorganization is needed. If the reorganization process finds out there is not enough room in the page, the page will be split. Page reorganization can only fail for compressed pages.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -17993,7 +17950,7 @@ "dashLength": 10, "dashes": false, "decimals": 0, - "description": "The InnoDB Page Reorgs graph shows information about the page reorganization operations. When a page receives an update or an insert that affect the offset of other rows in the page, a reorganization is needed. If the reorganization process finds out there is not enough room in the page, the page will be split. Page reorganization can only fail for compressed pages.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Page Reorgs graph shows information about the page reorganization operations. When a page receives an update or an insert that affect the offset of other rows in the page, a reorganization is needed. If the reorganization process finds out there is not enough room in the page, the page will be split. Page reorganization can only fail for compressed pages.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -18126,8 +18083,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -18185,6 +18141,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Page Operations", "type": "row" }, @@ -18194,7 +18155,7 @@ "h": 1, "w": 24, "x": 0, - "y": 17 + "y": 52 }, "id": 53, "panels": [ @@ -18223,8 +18184,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -18308,8 +18268,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -18390,8 +18349,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -18471,8 +18429,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -18557,8 +18514,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -18638,8 +18594,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -18708,7 +18663,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB AHI Usage graph shows the search operations on the InnoDB adaptive hash index and its efficiency. The adaptive hash index is a search hash designed to speed access to InnoDB pages in memory. If the Hit Ratio is small, the working data set is larger than the buffer pool, the AHI should likely be disabled.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB AHI Usage graph shows the search operations on the InnoDB adaptive hash index and its efficiency. The adaptive hash index is a search hash designed to speed access to InnoDB pages in memory. If the Hit Ratio is small, the working data set is larger than the buffer pool, the AHI should likely be disabled.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -19216,6 +19171,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Adaptive Hash Index", "type": "row" }, @@ -19225,7 +19185,7 @@ "h": 1, "w": 24, "x": 0, - "y": 18 + "y": 53 }, "id": 54, "panels": [ @@ -19253,8 +19213,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -19335,8 +19294,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20119,6 +20077,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Change Buffer", "type": "row" }, @@ -20128,7 +20091,7 @@ "h": 1, "w": 24, "x": 0, - "y": 19 + "y": 54 }, "id": 55, "panels": [ @@ -20154,8 +20117,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -20238,8 +20200,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -20323,8 +20284,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20404,8 +20364,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20486,8 +20445,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20567,8 +20525,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20648,8 +20605,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20729,8 +20685,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -20793,7 +20748,7 @@ "dashLength": 10, "dashes": false, "decimals": 3, - "description": "The InnoDB Contention - OS Waits graph shows the number of time an OS wait operation was required while waiting to get the lock. This happens once the spin rounds are exhausted.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Contention - OS Waits graph shows the number of time an OS wait operation was required while waiting to get the lock. This happens once the spin rounds are exhausted.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -20929,7 +20884,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Contention - Spin Rounds graph shows the number of spin rounds executed in order to get a lock. A spin round is a fast retry to get the lock in a loop.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Contention - Spin Rounds graph shows the number of spin rounds executed in order to get a lock. A spin round is a fast retry to get the lock in a loop.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -21059,6 +21014,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Contention", "type": "row" }, @@ -21068,7 +21028,7 @@ "h": 1, "w": 24, "x": 0, - "y": 20 + "y": 55 }, "id": 56, "panels": [ @@ -21078,7 +21038,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Main Thread Utilization graph shows the portion of time the InnoDB main thread spent at various task.\n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Main Thread Utilization graph shows the portion of time the InnoDB main thread spent at various task.\n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -21213,7 +21173,7 @@ "dashLength": 10, "dashes": false, "decimals": 2, - "description": "The InnoDB Acitivity graph shows a measure of the activity of the InnoDB threads. \n\nNote: If you do not see any metric, try running: ``SET GLOBAL innodb_monitor_enable=all;`` in the MySQL client.", + "description": "The InnoDB Acitivity graph shows a measure of the activity of the InnoDB threads. \n\nNote: If you do not see any metric, try running: SET GLOBAL innodb_monitor_enable=all; in the MySQL client.", "editable": true, "error": false, "fieldConfig": { @@ -21347,8 +21307,7 @@ "mode": "absolute", "steps": [ { - "color": "rgb(255, 255, 255)", - "value": null + "color": "rgb(255, 255, 255)" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -21432,8 +21391,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -21515,8 +21473,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -21602,8 +21559,7 @@ "mode": "absolute", "steps": [ { - "color": "#56A64B", - "value": null + "color": "#56A64B" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -21823,8 +21779,7 @@ "mode": "absolute", "steps": [ { - "color": "#FA6400", - "value": null + "color": "#FA6400" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -21908,8 +21863,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -21989,8 +21943,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -22048,6 +22001,11 @@ "type": "stat" } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Misc", "type": "row" }, @@ -22057,7 +22015,7 @@ "h": 1, "w": 24, "x": 0, - "y": 21 + "y": 56 }, "id": 57, "panels": [ @@ -22332,6 +22290,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "InnoDB Online Operations (MariaDB)", "type": "row" }, @@ -22341,7 +22304,7 @@ "h": 1, "w": 24, "x": 0, - "y": 22 + "y": 57 }, "id": 293, "panels": [ @@ -22358,8 +22321,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)", - "value": null + "color": "rgba(245, 54, 54, 0.9)" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -22439,7 +22401,7 @@ "type": "text" }, { - "description": "**Current QPS**\n\nBased on the queries reported by MySQL's ``SHOW STATUS`` command, it is the number of statements executed by the server within the last second. This variable includes statements executed within stored programs, unlike the Questions variable. It does not count \n``COM_PING`` or ``COM_STATISTICS`` commands.", + "description": "**Current QPS**\n\nBased on the queries reported by MySQL's SHOW STATUS command, it is the number of statements executed by the server within the last second. This variable includes statements executed within stored programs, unlike the Questions variable. It does not count \nCOM_PING or COM_STATISTICS commands.", "fieldConfig": { "defaults": { "color": { @@ -22452,8 +22414,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)", - "value": null + "color": "rgba(245, 54, 54, 0.9)" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -22544,8 +22505,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -22629,8 +22589,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -22715,8 +22674,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -22797,8 +22755,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -23191,7 +23148,7 @@ "dashLength": 10, "dashes": false, "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.", + "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, "fieldConfig": { @@ -23297,7 +23254,7 @@ "dashLength": 10, "dashes": false, "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.", + "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, "fieldConfig": { @@ -23632,6 +23589,11 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "MySQL Summary", "type": "row" }, @@ -23641,7 +23603,7 @@ "h": 1, "w": 24, "x": 0, - "y": 23 + "y": 58 }, "id": 291, "panels": [ @@ -23658,8 +23620,7 @@ "mode": "absolute", "steps": [ { - "color": "rgba(245, 54, 54, 0.9)", - "value": null + "color": "rgba(245, 54, 54, 0.9)" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -23745,8 +23706,7 @@ "mode": "absolute", "steps": [ { - "color": "#299c46", - "value": null + "color": "#299c46" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -23824,8 +23784,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -23901,8 +23860,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -23981,8 +23939,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -24058,8 +24015,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -24141,8 +24097,7 @@ "mode": "absolute", "steps": [ { - "color": "#d44a3a", - "value": null + "color": "#d44a3a" }, { "color": "rgba(237, 129, 40, 0.89)", @@ -24813,12 +24768,17 @@ } } ], + "targets": [ + { + "refId": "A" + } + ], "title": "Node Summary", "type": "row" } ], "refresh": "1m", - "schemaVersion": 34, + "schemaVersion": 37, "style": "dark", "tags": [ "MySQL", @@ -24894,10 +24854,9 @@ "allFormat": "glob", "current": { "selected": false, - "text": "ip-10-178-1-36.us-east-2.compute.internal", - "value": "ip-10-178-1-36.us-east-2.compute.internal" + "text": "master8-1", + "value": "master8-1" }, - "datasource": "Metrics", "definition": "label_values(mysql_up{service_name=~\"$service_name\"}, node_name)", "hide": 2, "includeAll": false, @@ -24921,10 +24880,9 @@ { "current": { "selected": false, - "text": "ps_8.0_3.142.150.215_1", - "value": "ps_8.0_3.142.150.215_1" + "text": "master1", + "value": "master1" }, - "datasource": "Metrics", "definition": "label_values(mysql_up, service_name)", "hide": 0, "includeAll": false, @@ -24948,10 +24906,9 @@ { "current": { "selected": false, - "text": "8.0.27-18", - "value": "8.0.27-18" + "text": "8.0.36-28", + "value": "8.0.36-28" }, - "datasource": "Metrics", "definition": "query_result(mysql_version_info{service_name=~\"$service_name\"})", "hide": 2, "includeAll": false, @@ -24974,11 +24931,14 @@ { "allValue": ".*", "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, environment)", "hide": 2, "includeAll": true, @@ -25001,11 +24961,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, cluster)", "hide": 2, "includeAll": true, @@ -25028,11 +24991,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, replication_set)", "hide": 2, "includeAll": true, @@ -25055,11 +25021,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values(pg_stat_database_tup_fetched{service_name=~\"$service_name\",datname!~\"template.*|postgres\"},datname)", "hide": 2, "includeAll": true, @@ -25082,11 +25051,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, node_type)", "hide": 2, "includeAll": true, @@ -25109,11 +25081,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, service_type)", "hide": 2, "includeAll": true, @@ -25136,11 +25111,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values(mysql_info_schema_user_statistics_connected_time_seconds_total{service_name=\"$service_name\"},user)", "hide": 2, "includeAll": true, @@ -25163,11 +25141,14 @@ }, { "current": { - "selected": false, - "text": "All", - "value": "$__all" + "selected": true, + "text": [ + "All" + ], + "value": [ + "$__all" + ] }, - "datasource": "Metrics", "definition": "label_values({__name__=~\"pg_up|mysql_up|mongodb_up|proxysql_mysql_status_active_transactions\"}, schema)", "hide": 2, "includeAll": true, @@ -25229,6 +25210,6 @@ "timezone": "", "title": "MySQL InnoDB Details", "uid": "mysql-innodb", - "version": 1, + "version": 2, "weekStart": "" }