1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- 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,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 14,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "RHqnODP4k"
},
"gridPos": {
"h": 22,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"interval": "15s",
"options": {
"nodes": {
"arcs": [
{
"color": "#5794F2",
"field": "arc__color"
}
]
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "RHqnODP4k"
},
"editorMode": "code",
"exemplar": false,
"expr": "label_join(label_join(\n(rate(traces_service_graph_request_total{}[$__interval]))\n, \"id\", \"\", \"client\")\n, \"title\", \"\", \"client\")\n\nor\n\nlabel_join(label_join(\n(rate(traces_service_graph_request_total{}[$__interval]))\n, \"id\", \"\", \"server\")\n, \"title\", \"\", \"server\")\n",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "nodes"
},
{
"datasource": {
"type": "prometheus",
"uid": "RHqnODP4k"
},
"editorMode": "code",
"exemplar": false,
"expr": "increase(\n (sum by (id, source, target, mainStat) \n (\n (\n label_replace(\n label_replace(\n label_join(\n (traces_service_graph_request_total{})\n , \"id\", \":\", \"client\", \"server\")\n , \"source\", \"$1\", \"client\", \"(.*)\")\n , \"target\", \"$1\", \"server\", \"(.*)\")\n )\n )\n )[$__range:$__interval]\n) > 0",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "__auto",
"range": false,
"refId": "edges"
}
],
"title": "Service Map ☸️",
"type": "nodeGraph"
}
],
"refresh": "",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-5m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "架构拓扑图",
"uid": "k0Om62pVf",
"version": 2,
"weekStart": ""
}
|