mirror of https://gitee.com/anolis/sysom.git
165 lines
8.6 KiB
JSON
165 lines
8.6 KiB
JSON
{
|
|
"dashboard": {
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": "sysom-prometheus",
|
|
"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-prometheus",
|
|
"gridPos": {
|
|
"h": 24,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"detailColorRules": [
|
|
"color_thresh__MaxLatency__200000:red",
|
|
"color_thresh__MaxLatency__100000:yellow",
|
|
"color_thresh__Alarm__1:red"
|
|
],
|
|
"detailLinks": [
|
|
"APP:/app_observable/${app_name}?var-podId=${podId}&var-containerId=${containerID}"
|
|
],
|
|
"hideNoLinkNode": true,
|
|
"hightlightRelatedNode": false,
|
|
"nodeColorRules": [],
|
|
"nodeDetailPriority": [
|
|
"Name:0",
|
|
"MaxLatency:1",
|
|
"Url:2",
|
|
"InBytes:3",
|
|
"OutBytes:4",
|
|
"Ip:5",
|
|
"APP:6"
|
|
],
|
|
"nodeErrorColor": "#f00",
|
|
"nodeErrorFontColor": "#f00",
|
|
"nodeFloatWindowLinkTarget": "_blank",
|
|
"nodeIconMappingLabel": "Icon",
|
|
"nodeIconSize": 48,
|
|
"nodeNormalColor": "#a6a6ff",
|
|
"nodeNormalFontColor": "#3883f4",
|
|
"nodeRenameRules": [
|
|
"Value #C ==> detail__number__Alarm"
|
|
],
|
|
"nodeSize": 60,
|
|
"nodeStatusRules": [
|
|
"node_status_thresh__MaxLatency__100000:warning",
|
|
"node_status_thresh__MaxLatency__200000:error",
|
|
"node_status_thresh__Alarm__1:error"
|
|
],
|
|
"nodeWarningColor": "#f90",
|
|
"nodeWarningFontColor": "#f90"
|
|
},
|
|
"targets": [
|
|
{
|
|
"datasource": "sysom-prometheus",
|
|
"editorMode": "code",
|
|
"exemplar": false,
|
|
"expr": "avg by (nodeId, sub_title, variable__podId, variable__app_name, variable__containerID, detail__string__Name, detail__string__InBytes, detail__string__OutBytes, detail__string__MaxLatency, Icon, detail__string__Ip, detail__string__APP, detail__string__Url) \n (\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n sysom_ntopo_node, \"detail__string__Name\", \"$1\", \"Title\", \"(.*)\"\n ), \"nodeId\", \"$1\", \"Ip\", \"(.*)\"\n ), \"variable__podId\", \"$1\", \"PodUUID\", \"(.*)\"\n ), \"variable__containerID\", \"$1\", \"ContainerID\", \"(.*)\"\n ), \"variable__app_name\", \"$1\", \"APP\", \"(.*)\"\n ), \"detail__string__InBytes\", \"$1\", \"InBytes\", \"(.*)\"\n ), \"detail__string__OutBytes\", \"$1\", \"OutBytes\", \"(.*)\"\n ), \"detail__string__MaxLatency\", \"$1\", \"MaxRT\", \"(.*)\"\n ), \"Icon\", \"$1\", \"Icon\", \"(.*)\"\n ), \"detail__string__Ip\", \"$1\", \"Ip\", \"(.*)\"\n ), \"detail__string__APP\", \"$1\", \"APP\", \"(.*)\"\n ), \"detail__string__Url\", \"$1\", \"Url\", \"(.*)\"\n )\n )",
|
|
"format": "table",
|
|
"instant": true,
|
|
"legendFormat": "__auto",
|
|
"range": false,
|
|
"refId": "A"
|
|
},
|
|
{
|
|
"datasource": "sysom-prometheus",
|
|
"editorMode": "code",
|
|
"exemplar": false,
|
|
"expr": "avg by (linkId, source, target, detail__string__ReqBytes, detail__string__RespBytes, detail__string__RequestsNumber)\n (\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n label_replace(\n sysom_ntopo_edge{APP=~\"$APP\"}, \"target\", \"$1\", \"ServerIp\", \"(.*)\"\n ), \"linkId\", \"$1\", \"LinkId\", \"(.*)\"\n ), \"source\", \"$1\", \"ClientIp\", \"(.*)\"\n ), \"detail__string__ReqBytes\", \"$1\", \"ReqBytes\", \"(.*)\"\n ), \"detail__string__RespBytes\", \"$1\", \"RespBytes\", \"(.*)\"\n ), \"detail__string__RequestsNumber\", \"$1\", \"RequestsNumber\", \"(.*)\"\n )\n )",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"legendFormat": "__auto",
|
|
"range": false,
|
|
"refId": "B"
|
|
},
|
|
{
|
|
"datasource": "sysom-prometheus",
|
|
"editorMode": "code",
|
|
"exemplar": false,
|
|
"expr": "label_replace(\n label_replace(\n sum(sysom_obser_mysqld_alarm) by (podIp), \"nodeId\", \"$1\", \"podIp\", \"(.*)\"\n ), \"detail__number__alarm\", \"$1\", \"Value\", \"(.*)\"\n)",
|
|
"format": "table",
|
|
"hide": false,
|
|
"instant": true,
|
|
"legendFormat": "__auto",
|
|
"range": false,
|
|
"refId": "C"
|
|
}
|
|
],
|
|
"title": "网络拓扑",
|
|
"type": "sysom-network-topology-pannel"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 37,
|
|
"style": "dark",
|
|
"tags": [],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"current": {
|
|
"selected": true,
|
|
"text": [
|
|
"MYSQL"
|
|
],
|
|
"value": [
|
|
"MYSQL"
|
|
]
|
|
},
|
|
"datasource": "sysom-prometheus",
|
|
"definition": "label_values(sysom_ntopo_edge, APP)",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": true,
|
|
"name": "APP",
|
|
"options": [],
|
|
"query": {
|
|
"query": "label_values(sysom_ntopo_edge, APP)",
|
|
"refId": "StandardVariableQuery"
|
|
},
|
|
"refresh": 2,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"sort": 0,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "",
|
|
"title": "ntopo",
|
|
"uid": "H04tHN34k",
|
|
"version": 2,
|
|
"weekStart": ""
|
|
}
|
|
} |