mirror of https://gitee.com/anolis/sysom.git
1200 lines
49 KiB
JSON
1200 lines
49 KiB
JSON
{
|
|
"dashboard": {
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": "sysom-mysql",
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"target": {
|
|
"limit": 100,
|
|
"matchAny": false,
|
|
"tags": [],
|
|
"type": "dashboard"
|
|
},
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": false,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 0,
|
|
"id": null,
|
|
"links": [],
|
|
"liveNow": false,
|
|
"panels": [
|
|
{
|
|
"datasource": "sysom-mysql",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "left",
|
|
"displayMode": "auto",
|
|
"inspect": false
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "semi-dark-red"
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "ts"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "time"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "value"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "description"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "root_analyze"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "displayName",
|
|
"value": "root cause analyse"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "root_analyze"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": []
|
|
},
|
|
{
|
|
"id": "mappings",
|
|
"value": [
|
|
{
|
|
"options": {
|
|
"\u65e0": {
|
|
"color": "text",
|
|
"index": 0
|
|
}
|
|
},
|
|
"type": "value"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.displayMode",
|
|
"value": "color-text"
|
|
},
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "",
|
|
"url": "../${__data.fields.root_analyz_flag}\ufeff\ufeff\ufeff\ufeffinstance=${__data.fields.instance}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "root_analyz_flag"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "time"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 160
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "podId"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 314
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "description"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 371
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "instance"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 319
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "reason"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 410
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "port"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 71
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 12,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 10,
|
|
"options": {
|
|
"footer": {
|
|
"enablePagination": true,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": []
|
|
},
|
|
"pluginVersion": "9.2.2",
|
|
"targets": [
|
|
{
|
|
"dataset": "sysom",
|
|
"datasource": "sysom-mysql",
|
|
"editorMode": "code",
|
|
"format": "table",
|
|
"hide": false,
|
|
"rawQuery": true,
|
|
"rawSql": "SELECT annotations, instance,\n CASE \n WHEN JSON_EXTRACT(annotations, '$.root_analyz_flag') = 'journal/node?'\n THEN '\u65e0'\n ELSE '\u8fdb\u4e00\u6b65\u8bca\u65ad'\n END AS root_analyze\nFROM sysom.sys_alert_data\nWHERE (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\") AND alert_time > $__from AND alert_time < $__to AND JSON_EXTRACT(annotations, '$.reason') IS NOT NULL AND JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld' \nORDER BY alert_time DESC LIMIT 20\n",
|
|
"refId": "A",
|
|
"sql": {
|
|
"columns": [
|
|
{
|
|
"parameters": [
|
|
{
|
|
"name": "extra",
|
|
"type": "functionParameter"
|
|
}
|
|
],
|
|
"type": "function"
|
|
}
|
|
],
|
|
"groupBy": [
|
|
{
|
|
"property": {
|
|
"type": "string"
|
|
},
|
|
"type": "groupBy"
|
|
}
|
|
],
|
|
"limit": 50
|
|
},
|
|
"table": "sys_node_log"
|
|
}
|
|
],
|
|
"title": "Mysql\u5e94\u7528\u76f8\u5173\u5f02\u5e38\u4e8b\u4ef6",
|
|
"transformations": [
|
|
{
|
|
"disabled": true,
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app_log": true,
|
|
"containerId": true,
|
|
"curr": true,
|
|
"disk": true,
|
|
"extra": false,
|
|
"level": true,
|
|
"metrics": false,
|
|
"os_log": true,
|
|
"pid": false,
|
|
"root_analyze": false,
|
|
"tag_set": false,
|
|
"thresh": true,
|
|
"unit": true,
|
|
"value": false
|
|
},
|
|
"indexByName": {
|
|
"containerId": 7,
|
|
"metrics": 5,
|
|
"pid": 6,
|
|
"podId": 1,
|
|
"tag_set": 2,
|
|
"ts": 0,
|
|
"unit": 4,
|
|
"value": 3
|
|
},
|
|
"renameByName": {
|
|
"metrics": "metrics",
|
|
"pid": "",
|
|
"tag_set": "app name",
|
|
"ts": "time",
|
|
"unit": "",
|
|
"value": "description"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"replace": false,
|
|
"source": "annotations"
|
|
}
|
|
},
|
|
{
|
|
"disabled": true,
|
|
"id": "filterByValue",
|
|
"options": {
|
|
"filters": [
|
|
{
|
|
"config": {
|
|
"id": "equal",
|
|
"options": {
|
|
"value": "mysqld"
|
|
}
|
|
},
|
|
"fieldName": "tag_set"
|
|
}
|
|
],
|
|
"match": "any",
|
|
"type": "include"
|
|
}
|
|
},
|
|
{
|
|
"disabled": true,
|
|
"id": "filterByValue",
|
|
"options": {
|
|
"filters": [
|
|
{
|
|
"config": {
|
|
"id": "isNotNull",
|
|
"options": {}
|
|
},
|
|
"fieldName": "reason"
|
|
}
|
|
],
|
|
"match": "any",
|
|
"type": "include"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"annotations": true,
|
|
"app_log": true,
|
|
"containerId": true,
|
|
"curr": true,
|
|
"disk": true,
|
|
"extra": true,
|
|
"instance": false,
|
|
"level": true,
|
|
"metrics": true,
|
|
"os_log": true,
|
|
"pid": true,
|
|
"reason": false,
|
|
"root_analyze": false,
|
|
"tag_set": true,
|
|
"thresh": true,
|
|
"unit": true
|
|
},
|
|
"indexByName": {
|
|
"app_log": 9,
|
|
"containerId": 7,
|
|
"extra": 12,
|
|
"instance": 13,
|
|
"level": 8,
|
|
"metrics": 4,
|
|
"os_log": 11,
|
|
"pid": 6,
|
|
"podId": 1,
|
|
"port": 2,
|
|
"reason": 10,
|
|
"root_analyz_flag": 15,
|
|
"root_analyze": 14,
|
|
"tag_set": 5,
|
|
"ts": 0,
|
|
"value": 3
|
|
},
|
|
"renameByName": {
|
|
"podId": "",
|
|
"ts": "",
|
|
"value": "description"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "sortBy",
|
|
"options": {
|
|
"fields": {},
|
|
"sort": [
|
|
{
|
|
"desc": true,
|
|
"field": "time"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": "sysom-mysql",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"custom": {
|
|
"align": "left",
|
|
"displayMode": "auto",
|
|
"inspect": false
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "semi-dark-red"
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "value"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 408
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": false
|
|
},
|
|
{
|
|
"id": "displayName",
|
|
"value": "desc"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "pid"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 123
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "podId"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 300
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "tag_set"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 110
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "ts"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 137
|
|
},
|
|
{
|
|
"id": "displayName",
|
|
"value": "time"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "metrics"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 232
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "app name"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 97
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "description"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 379
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "time"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 156
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "root cause analyze"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "links",
|
|
"value": [
|
|
{
|
|
"targetBlank": true,
|
|
"title": "\u6839\u56e0\u8bca\u65ad",
|
|
"url": "../${__data.fields.root_analyz_flag}instance=${__data.fields.instance}"
|
|
},
|
|
{
|
|
"targetBlank": true,
|
|
"title": "\u6307\u6807\u5173\u8054\u5206\u6790",
|
|
"url": "../api/v1/rca/rca_call?timestamp=${__data.fields.ts}\ufeff&base_item=${__data.fields.metrics}&machine_ip=${__data.fields.instance}"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "custom.displayMode",
|
|
"value": "color-text"
|
|
},
|
|
{
|
|
"id": "mappings",
|
|
"value": [
|
|
{
|
|
"options": {
|
|
"responseTimeAvg": {
|
|
"index": 0,
|
|
"text": "\u8fdb\u4e00\u6b65\u8bca\u65ad"
|
|
}
|
|
},
|
|
"type": "value"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "disk"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "curr"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "thresh"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "annotations"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "level"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "unit"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "containerId"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "app_log"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "os_log"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "reason"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "description"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "instance"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 407
|
|
},
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "desc"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 373
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "root_analyz_flag"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "details"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.hidden",
|
|
"value": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"matcher": {
|
|
"id": "byName",
|
|
"options": "port"
|
|
},
|
|
"properties": [
|
|
{
|
|
"id": "custom.width",
|
|
"value": 89
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"gridPos": {
|
|
"h": 13,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 12
|
|
},
|
|
"id": 6,
|
|
"options": {
|
|
"footer": {
|
|
"enablePagination": true,
|
|
"fields": "",
|
|
"reducer": [
|
|
"sum"
|
|
],
|
|
"show": false
|
|
},
|
|
"showHeader": true,
|
|
"sortBy": []
|
|
},
|
|
"pluginVersion": "9.2.2",
|
|
"targets": [
|
|
{
|
|
"dataset": "sysom",
|
|
"datasource": "sysom-mysql",
|
|
"editorMode": "code",
|
|
"format": "table",
|
|
"hide": false,
|
|
"rawQuery": true,
|
|
"rawSql": "SELECT alert_time, annotations, instance, '\u8fdb\u4e00\u6b65\u8bca\u65ad' as 'root cause analyze' FROM sysom.sys_alert_data \nWHERE alert_time > (\n SELECT COALESCE(MAX(alert_time / 1000), '0000-00-00 00:00:00') \n FROM sysom.sys_alert_data \n WHERE (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\") \n AND alert_time > $__from \n AND alert_time < $__to\n AND JSON_EXTRACT(annotations, '$.reason') IS NOT NULL \n AND JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld'\n)\nAND alert_time > $__from\nAND alert_time < $__to\nAND (JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld' OR JSON_EXTRACT(annotations, '$.value') LIKE '%mysqld%')\nAND JSON_EXTRACT(annotations, '$.app_log') IS NULL\nAND (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\" OR JSON_EXTRACT(annotations, '$.value') LIKE '%$Pid%')\nORDER BY alert_time DESC \nLIMIT 20",
|
|
"refId": "A",
|
|
"sql": {
|
|
"columns": [
|
|
{
|
|
"parameters": [
|
|
{
|
|
"name": "*",
|
|
"type": "functionParameter"
|
|
}
|
|
],
|
|
"type": "function"
|
|
}
|
|
],
|
|
"groupBy": [
|
|
{
|
|
"property": {
|
|
"type": "string"
|
|
},
|
|
"type": "groupBy"
|
|
}
|
|
],
|
|
"limit": 50
|
|
},
|
|
"table": "sys_node_log"
|
|
}
|
|
],
|
|
"title": "Mysql OS\u76f8\u5173\u5f02\u5e38\u4e8b\u4ef6",
|
|
"transformations": [
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"alert_time": true,
|
|
"app_log": true,
|
|
"containerId": true,
|
|
"create_at": true,
|
|
"description": true,
|
|
"event_type": true,
|
|
"extra": false,
|
|
"id": true,
|
|
"level": true,
|
|
"metrics": false,
|
|
"os_log": true,
|
|
"pid": false,
|
|
"reason": true,
|
|
"root cause analyze": false,
|
|
"tag_set": false,
|
|
"ts": true,
|
|
"unit": true,
|
|
"update_at": true,
|
|
"value": false
|
|
},
|
|
"indexByName": {
|
|
"create_at": 2,
|
|
"description": 7,
|
|
"event_type": 5,
|
|
"extra": 6,
|
|
"id": 1,
|
|
"instance": 4,
|
|
"ts": 0,
|
|
"update_at": 3
|
|
},
|
|
"renameByName": {
|
|
"metrics": "metrics",
|
|
"pid": "",
|
|
"tag_set": "app name",
|
|
"ts": "time",
|
|
"unit": "",
|
|
"value": "description"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"replace": false,
|
|
"source": "annotations"
|
|
}
|
|
},
|
|
{
|
|
"id": "filterByValue",
|
|
"options": {
|
|
"filters": [
|
|
{
|
|
"config": {
|
|
"id": "equal",
|
|
"options": {
|
|
"value": "mysqld"
|
|
}
|
|
},
|
|
"fieldName": "tag_set"
|
|
}
|
|
],
|
|
"match": "any",
|
|
"type": "include"
|
|
}
|
|
},
|
|
{
|
|
"disabled": true,
|
|
"id": "calculateField",
|
|
"options": {
|
|
"alias": "root cause analyze",
|
|
"binary": {
|
|
"left": "metrics",
|
|
"operator": "+",
|
|
"reducer": "sum",
|
|
"right": "metrics"
|
|
},
|
|
"mode": "reduceRow",
|
|
"reduce": {
|
|
"include": [
|
|
"metrics"
|
|
],
|
|
"reducer": "allValues"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"disabled": true,
|
|
"id": "filterByValue",
|
|
"options": {
|
|
"filters": [
|
|
{
|
|
"config": {
|
|
"id": "isNotNull",
|
|
"options": {}
|
|
},
|
|
"fieldName": "app_log"
|
|
}
|
|
],
|
|
"match": "all",
|
|
"type": "exclude"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app_log": false,
|
|
"tag_set": false,
|
|
"value": false
|
|
},
|
|
"indexByName": {
|
|
"annotations": 10,
|
|
"containerId": 7,
|
|
"details": 12,
|
|
"instance": 1,
|
|
"level": 8,
|
|
"pid": 4,
|
|
"podId": 2,
|
|
"port": 3,
|
|
"root cause analyze": 9,
|
|
"root_analyz_flag": 11,
|
|
"tag_set": 6,
|
|
"ts": 0,
|
|
"value": 5
|
|
},
|
|
"renameByName": {}
|
|
}
|
|
},
|
|
{
|
|
"id": "sortBy",
|
|
"options": {
|
|
"fields": {},
|
|
"sort": [
|
|
{
|
|
"desc": true,
|
|
"field": "ts"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
}
|
|
],
|
|
"refresh": "15s",
|
|
"schemaVersion": 37,
|
|
"style": "dark",
|
|
"tags": [],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "36ec6dca_b5da_4b3b_b693_b6dbe4b8a9a6",
|
|
"value": "36ec6dca_b5da_4b3b_b693_b6dbe4b8a9a6"
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_mysqld_process, podID)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "podId",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_mysqld_process, podID)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "a83df925aa86",
|
|
"value": "a83df925aa86"
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\"}, containerID)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "containerId",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\"}, containerID)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "192.168.0.138",
|
|
"value": "192.168.0.138"
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\"}, exported_instance)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "hostIp",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\"}, exported_instance)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "3306",
|
|
"value": "3306"
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\"}, port)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "Port",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\"}, port)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "4110",
|
|
"value": "4110"
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\",port=\"$Port\"}, pid)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "Pid",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\",port=\"$Port\"}, pid)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
},
|
|
{
|
|
"current": {
|
|
"isNone": true,
|
|
"selected": false,
|
|
"text": "None",
|
|
"value": ""
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_obser_app_rt_ntopo{PodUUID=\"$podId\"}, Pod)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "podname",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_obser_app_rt_ntopo{PodUUID=\"$podId\"}, Pod)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-30m",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {
|
|
"refresh_intervals": [
|
|
"5s",
|
|
"10s",
|
|
"15s",
|
|
"30s",
|
|
"1m",
|
|
"5m",
|
|
"15m",
|
|
"30m",
|
|
"1h",
|
|
"2h",
|
|
"1d"
|
|
]
|
|
},
|
|
"timezone": "",
|
|
"title": "app-mysql-events",
|
|
"uid": "Ub__1x3Vz",
|
|
"version": 107,
|
|
"weekStart": ""
|
|
}
|
|
} |