examples/MySQL2openGauss/grafana/samplemodel.json

1293 lines
35 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 1,
"links": [],
"panels": [
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 1000000
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 19,
"options": {
"displayMode": "gradient",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"showUnfilled": true,
"text": {}
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\nUNIX_TIMESTAMP(proctime) AS time_sec,\r\n 'Êý¾Ý¿âÊýÁ¿' AS metric,\r\n count(*) AS 'Êý¾Ý¿âÊýÁ¿' \r\nFROM db_info_metrics\r\n WHERE\r\n $__timeFilter(proctime) group by metric;\r\n ",
"refId": "A1",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\r\nUNIX_TIMESTAMP(proctime) AS time_sec,\r\n '±íÊýÁ¿' AS metric,\r\n sum(tablecount) AS '±íÊýÁ¿' \r\nFROM db_info_metrics\r\n WHERE\r\n $__timeFilter(proctime) group by metric;\r\n ",
"refId": "A2",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\nUNIX_TIMESTAMP(proctime) AS time_sec,\r\n 'ÊÓͼÊýÁ¿' AS metric,\r\n sum(viewcount) AS 'ÊÓͼÊýÁ¿' \r\nFROM db_info_metrics\r\n WHERE\r\n $__timeFilter(proctime) group by metric;\r\n ",
"refId": "B",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\nUNIX_TIMESTAMP(proctime) AS time_sec,\r\n '´æ´¢¹ý³ÌÊýÁ¿' AS metric,\r\n sum(procedurecount) AS '´æ´¢¹ý³ÌÊýÁ¿' \r\nFROM db_info_metrics WHERE\r\n $__timeFilter(proctime) group by metric;\r\n ",
"refId": "C",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\nUNIX_TIMESTAMP(proctime) AS time_sec,\r\n 'º¯ÊýÊýÁ¿' AS metric,\r\n sum(functioncount) AS 'º¯ÊýÊýÁ¿' \r\nFROM db_info_metrics WHERE\r\n $__timeFilter(proctime) group by metric;\r\n ",
"refId": "D",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "Ç¨ÒÆÊýÁ¿",
"type": "bargauge"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 5,
"x": 12,
"y": 0
},
"id": 20,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.0.6",
"targets": [
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n 'Ö´ÐÐÕýÈ·Óï¾äÊýÁ¿' AS metric,\r\n sum(rightcount) AS 'Ö´ÐÐÕýÈ·Óï¾äÊýÁ¿' \r\nFROM db_info_metrics\r\n WHERE\r\n $__timeFilter(proctime);\r\n ",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n 'Ö´ÐдíÎóÓï¾äÊýÁ¿' AS metric,\r\n sum(errorcount) AS 'Ö´ÐдíÎóÓï¾äÊýÁ¿' \r\nFROM db_info_metrics\r\n WHERE\r\n $__timeFilter(proctime);\r\n ",
"refId": "B",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "Ö´ÐÐÓï¾äÇé¿ö",
"type": "piechart"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 4,
"x": 17,
"y": 0
},
"id": 21,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.0.6",
"targets": [
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n proctime AS time,\r\n concat(concat(srcaddr, srcdb), tablename) as series,\r\n insertrightcount AS value \r\nFROM table_info_metrics\r\n WHERE\r\n $__timeFilter(proctime)\r\norder by value desc;\r\n ",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "²åÈëÊý¾ÝÁ¿",
"type": "piechart"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}
},
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 3,
"x": 21,
"y": 0
},
"id": 22,
"options": {
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": true
},
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.0.6",
"targets": [
{
"format": "table",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n proctime AS time,\r\n concat(concat(srcaddr, srcdb), tablename) as series,\r\n consumetime AS value \r\nFROM table_info_metrics\r\n WHERE\r\n $__timeFilter(proctime)\r\norder by value desc;\r\n ",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "ºÄʱÇé¿ö(ºÁÃë)",
"type": "piechart"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 8
},
"id": 14,
"panels": [],
"title": "»ù±¾ÐÅÏ¢",
"type": "row"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 0
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": null
},
{
"color": "dark-blue",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 9
},
"id": 16,
"options": {
"alignValue": "left",
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"mergeValues": true,
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.0.6",
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\r\n $__timeGroupAlias(A.updatetime, $__interval),\r\n concat(A.srcdb, '±í') AS metric,\r\n A.tablecount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(A.updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "±íÊýÁ¿",
"select": [
[
{
"params": [
"tablecount"
],
"type": "column"
},
{
"params": [
"value"
],
"type": "alias"
}
]
],
"table": "time_db_info_metrics",
"timeColumn": "updatetime",
"timeColumnType": "datetime",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "time_series",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n $__timeGroupAlias(A.updatetime, $__interval),\r\n concat(A.srcdb, 'ÊÓͼ') AS metric,\r\n A.viewcount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(A.updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "ÊÓͼÊýÁ¿",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "time_series",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n $__timeGroupAlias(A.updatetime, $__interval),\r\n concat(A.srcdb, '¹ý³Ì') AS metric,\r\n A.procedurecount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(A.updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "¹ý³ÌÊýÁ¿",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "time_series",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n $__timeGroupAlias(A.updatetime, $__interval),\r\n concat(A.srcdb, 'º¯Êý') AS metric,\r\n A.functioncount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(A.updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "º¯ÊýÊýÁ¿",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "×î½üÁ½¸öÊý¾Ý¿âµÄÇ¨ÒÆÊýÁ¿",
"type": "state-timeline"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 0
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": null
},
{
"color": "dark-blue",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 9
},
"id": 17,
"options": {
"alignValue": "left",
"legend": {
"displayMode": "list",
"placement": "bottom"
},
"mergeValues": true,
"rowHeight": 0.9,
"showValue": "auto",
"tooltip": {
"mode": "single"
}
},
"pluginVersion": "8.0.6",
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\r\n UNIX_TIMESTAMP(A.updatetime) AS time_sec,\r\n concat(A.srcdb, '×ÜÊý') AS metric,\r\n A.totalcount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "×ÜÊý",
"select": [
[
{
"params": [
"tablecount"
],
"type": "column"
},
{
"params": [
"value"
],
"type": "alias"
}
]
],
"table": "time_db_info_metrics",
"timeColumn": "updatetime",
"timeColumnType": "datetime",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "time_series",
"group": [],
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\r\n UNIX_TIMESTAMP(A.updatetime) AS time_sec,\r\n concat(A.srcdb, '´íÎóÊý') AS metric,\r\n A.errorcount AS value \r\nFROM time_db_info_metrics A, (select srcdb from time_db_info_metrics group by proctime, srcdb order by updatetime desc limit 2) B\r\n WHERE\r\n $__timeFilter(updatetime) and \r\n A.srcdb = B.srcdb\r\n ORDER BY A.updatetime;\r\n ",
"refId": "´íÎóÊýÁ¿",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "×î½üÁ½¸öÊý¾Ý¿âµÄÇ¨ÒÆÓï¾äÖ´ÐÐÊýÁ¿",
"type": "state-timeline"
},
{
"collapsed": false,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 16
},
"id": 12,
"panels": [],
"title": "ÏêϸÐÅÏ¢",
"type": "row"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Ô´Êý¾Ý¿â"
},
"properties": [
{
"id": "custom.width",
"value": null
}
]
},
{
"matcher": {
"id": "byName",
"options": "Ç¨ÒÆÊ±¼ä"
},
"properties": [
{
"id": "custom.width",
"value": null
}
]
},
{
"matcher": {
"id": "byName",
"options": "´íÎóÓï¾ä×ÜÊý"
},
"properties": [
{
"id": "custom.width",
"value": null
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 17
},
"id": 6,
"options": {
"showHeader": true,
"sortBy": []
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\n date_sub(proctime, interval 8 hour) AS \"Ç¨ÒÆÊ±¼ä\",\n srcdb AS \"Ô´Êý¾Ý¿â\",\n dstdb AS \"Ä¿µÄÊý¾Ý¿â\",\n errorcount AS \"´íÎóÓï¾ä×ÜÊý\",\n totalcount AS \"Ö´ÐÐÓï¾ä×ÜÊý\",\n rightcount AS \"ÕýÈ·Óï¾ä×ÜÊý\",\n insertrightcount AS \"ÕýÈ·²åÈëÊý¾Ý×ÜÁ¿\",\n inserterrorcount AS \"´íÎó²åÈëÊý¾Ý×ÜÁ¿\",\n consumetime AS \"Ç¨ÒÆºÄʱ£¨ºÁÃ룩\",\n srcaddr AS \"Ô´Êý¾Ý¿âµØÖ·\",\n dstaddr AS \"Ä¿µÄÊý¾Ý¿âµØÖ·\",\n date_sub(starttime, interval 8 hour) AS \"¿ªÊ¼Ê±¼ä\",\n date_sub(endtime, interval 8 hour) AS \"½áÊøÊ±¼ä\"\nFROM db_info_metrics\nWHERE\n $__timeFilter(starttime)\nORDER BY errorcount desc,srcdb asc limit 10",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "´íÎó×î¶àµÄÊý¾Ý¿â",
"type": "table"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 17
},
"id": 4,
"options": {
"showHeader": true
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\n date_sub(proctime, interval 8 hour) AS \"Ç¨ÒÆÊ±¼ä\",\n srcdb AS \"Ô´Êý¾Ý¿â\",\n dstdb AS \"Ä¿µÄÊý¾Ý¿â\",\n consumetime AS \"Ç¨ÒÆºÄʱ£¨ºÁÃ룩\",\n totalcount AS \"Ö´ÐÐÓï¾ä×ÜÊý\",\n rightcount AS \"ÕýÈ·Óï¾ä×ÜÊý\",\n errorcount AS \"´íÎóÓï¾ä×ÜÊý\",\n insertrightcount AS \"ÕýÈ·²åÈëÊý¾Ý×ÜÁ¿\",\n inserterrorcount AS \"´íÎó²åÈëÊý¾Ý×ÜÁ¿\",\n srcaddr AS \"Ô´Êý¾Ý¿âµØÖ·\",\n dstaddr AS \"Ä¿µÄÊý¾Ý¿âµØÖ·\",\n date_sub(starttime, interval 8 hour) AS \"¿ªÊ¼Ê±¼ä\",\n date_sub(endtime, interval 8 hour) AS \"½áÊøÊ±¼ä\"\nFROM db_info_metrics\nWHERE\n $__timeFilter(starttime)\nORDER BY consumetime desc,srcdb asc limit 10",
"refId": "A",
"select": [
[
{
"params": [
"srcdb"
],
"type": "column"
},
{
"params": [
"Ô´Êý¾Ý¿â"
],
"type": "alias"
}
],
[
{
"params": [
"dstdb"
],
"type": "column"
},
{
"params": [
"Ä¿±êÊý¾Ý¿â"
],
"type": "alias"
}
],
[
{
"params": [
"consumetime"
],
"type": "column"
},
{
"params": [
"Ç¨ÒÆºÄʱ"
],
"type": "alias"
}
]
],
"table": "db_info_metrics",
"timeColumn": "starttime",
"timeColumnType": "datetime",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "Ç¨ÒÆºÄʱ×µÄÊý¾Ý¿â",
"type": "table"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "±íÃû"
},
"properties": [
{
"id": "custom.width",
"value": 150
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 0,
"y": 22
},
"id": 8,
"options": {
"showHeader": true,
"sortBy": []
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\n date_sub(proctime, interval 8 hour) AS \"Ç¨ÒÆÊ±¼ä\",\n tablename AS \"±íÃû\",\n errorcount AS \"´íÎóÓï¾ä×ÜÊý\",\n totalcount AS \"Ö´ÐÐÓï¾ä×ÜÊý\",\n rightcount AS \"ÕýÈ·Óï¾ä×ÜÊý\",\n insertrightcount AS \"ÕýÈ·²åÈëÊý¾Ý×ÜÁ¿\",\n inserterrorcount AS \"´íÎó²åÈëÊý¾Ý×ÜÁ¿\",\n srcdb AS \"Ô´Êý¾Ý¿â\",\n dstdb AS \"Ä¿µÄÊý¾Ý¿â\",\n consumetime AS \"Ç¨ÒÆºÄʱ£¨ºÁÃ룩\",\n srcaddr AS \"Ô´Êý¾Ý¿âµØÖ·\",\n dstaddr AS \"Ä¿µÄÊý¾Ý¿âµØÖ·\",\n date_sub(starttime, interval 8 hour) AS \"¿ªÊ¼Ê±¼ä\",\n date_sub(endtime, interval 8 hour) AS \"½áÊøÊ±¼ä\"\nFROM table_info_metrics\nWHERE\n $__timeFilter(starttime)\nORDER BY errorcount desc,tablename asc limit 10",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "´íÎó×î¶àµÄ±í",
"type": "table"
},
{
"datasource": "MySQL",
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "time"
},
"properties": [
{
"id": "custom.width",
"value": 172
}
]
},
{
"matcher": {
"id": "byName",
"options": "tablename"
},
"properties": [
{
"id": "custom.width",
"value": null
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 12,
"x": 12,
"y": 22
},
"id": 2,
"options": {
"showHeader": true,
"sortBy": []
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\n date_sub(proctime, interval 8 hour) AS \"Ç¨ÒÆÊ±¼ä\",\n tablename AS \"±íÃû\",\n consumetime AS \"Ç¨ÒÆºÄʱ£¨ºÁÃ룩\",\n srcdb AS \"Ô´Êý¾Ý¿â\",\n dstdb AS \"Ä¿µÄÊý¾Ý¿â\",\n totalcount AS \"Ö´ÐÐÓï¾ä×ÜÊý\",\n rightcount AS \"ÕýÈ·Óï¾ä×ÜÊý\",\n errorcount AS \"´íÎóÓï¾ä×ÜÊý\",\n insertrightcount AS \"ÕýÈ·²åÈëÊý¾Ý×ÜÁ¿\",\n inserterrorcount AS \"´íÎó²åÈëÊý¾Ý×ÜÁ¿\",\n srcaddr AS \"Ô´Êý¾Ý¿âµØÖ·\",\n dstaddr AS \"Ä¿µÄÊý¾Ý¿âµØÖ·\",\n date_sub(starttime, interval 8 hour) AS \"¿ªÊ¼Ê±¼ä\",\n date_sub(endtime, interval 8 hour) AS \"½áÊøÊ±¼ä\"\nFROM table_info_metrics\nWHERE\n $__timeFilter(starttime)\nORDER BY consumetime desc, tablename asc limit 10",
"refId": "A",
"select": [
[
{
"params": [
"consumetime"
],
"type": "column"
}
]
],
"table": "table_info_metrics",
"timeColumn": "starttime",
"timeColumnType": "datetime",
"where": []
}
],
"title": "Ç¨ÒÆºÄʱ×µÄ±í",
"type": "table"
},
{
"datasource": "MySQL",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"displayMode": "auto"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 27
},
"id": 10,
"options": {
"showHeader": true
},
"pluginVersion": "8.1.1",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"queryType": "randomWalk",
"rawQuery": true,
"rawSql": "SELECT\n date_sub(proctime, interval 8 hour) AS \"Ç¨ÒÆÊ±¼ä\",\n name AS \"Ãû³Æ\",\n type AS \"ÀàÐÍ\",\n errorinfo AS \"´íÎóÐÅÏ¢\",\n sqldata AS \"sqlÓï¾ä\",\n srcaddr AS \"Ô´Êý¾Ý¿âµØÖ·\",\n dstaddr AS \"Ä¿µÄÊý¾Ý¿âµØÖ·\",\n srcdb AS \"Ô´Êý¾Ý¿â\",\n dstdb AS \"Ä¿µÄÊý¾Ý¿â\",\n date_sub(starttime, interval 8 hour) AS \"¿ªÊ¼Ê±¼ä\",\n date_sub(endtime, interval 8 hour) AS \"½áÊøÊ±¼ä\",\n consumetime AS \"Ö´ÐкÄʱ£¨ºÁÃ룩\"\nFROM sql_info_metrics\nWHERE\n $__timeFilter(starttime)\nORDER BY starttime desc, name asc limit 20",
"refId": "A",
"select": [
[
{
"params": [
"procpid"
],
"type": "column"
}
]
],
"table": "db_info_metrics",
"timeColumn": "proctime",
"timeColumnType": "timestamp",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"title": "×î½üµÄsql´íÎó",
"type": "table"
}
],
"refresh": "",
"schemaVersion": 30,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "mysql2opengauss",
"uid": "JK9lbinnz",
"version": 6
}