{"id":119702,"date":"2026-10-30T08:18:34","date_gmt":"2026-10-30T00:18:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/119702.html"},"modified":"2026-10-30T08:18:34","modified_gmt":"2026-10-30T00:18:34","slug":"%e6%89%93%e9%80%a0%e6%9e%81%e7%ae%80%e8%bf%90%e7%bb%b4%e7%9c%8b%e6%9d%bf%ef%bc%9a%e7%bb%88%e7%ab%af%e7%ba%af%e5%ad%97%e7%ac%a6ui%e5%91%88%e7%8e%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%a0%b8%e5%bf%83%e5%81%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/119702.html","title":{"rendered":"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001833-6ae3e2593c714.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u73b0\u4ee3\u4e91\u539f\u751f\u67b6\u6784\u4e0b&#xff0c;\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4e60\u60ef\u4e86\u6253\u5f00\u6d4f\u89c8\u5668\u67e5\u770b\u70ab\u76ee\u7684 Grafana \u4eea\u8868\u76d8\u3002\u4f46\u51e1\u7ecf\u5386\u8fc7\u673a\u623f\u7f51\u7edc\u9aa8\u5e72\u5149\u7f06\u6316\u65ad\u3001\u7269\u7406\u670d\u52a1\u5668\u4ec5\u5269\u4e00\u6761\u4e32\u53e3\u8c03\u8bd5\u7ebf&#xff08;Serial Console&#xff09;\u3001\u6216\u8005\u8282\u70b9\u81ea\u8eab\u9ad8\u8d1f\u8f7d\u5bfc\u81f4 Web \u76d1\u63a7\u4ee3\u7406&#xff08;Agent&#xff09;\u5168\u90e8\u5931\u8054\u7684\u6781\u7aef\u6545\u969c\u73b0\u573a&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d&#xff1a;\u90a3\u4e9b\u9700\u8981\u52a0\u8f7d\u51e0\u5341\u5146 JavaScript \u811a\u672c\u3001\u5fc5\u987b\u4f9d\u8d56\u5916\u90e8\u65f6\u5e8f\u6570\u636e\u5e93\u6e32\u67d3\u7684\u73b0\u4ee3\u770b\u677f&#xff0c;\u5728\u6025\u6551\u65f6\u523b\u5f80\u5f80\u662f\u6307\u671b\u4e0d\u4e0a\u7684\u6446\u8bbe\u3002<\/p>\n<p>\u5728\u53ea\u6709\u4e00\u6761\u6ce2\u7279\u7387 115200 \u7684\u4e32\u53e3\u6216\u9ad8\u4e22\u5305\u7387\u7684\u5e94\u6025 SSH \u96a7\u9053\u91cc&#xff0c;\u771f\u6b63\u80fd\u6551\u547d\u7684&#xff0c;\u662f\u4e00\u4e2a\u4f53\u79ef\u4ec5\u6570\u5146\u5b57\u8282\u3001\u96f6\u52a8\u6001\u4f9d\u8d56\u3001\u57fa\u4e8e\u539f\u751f ANSI \u5b57\u7b26\u63a7\u5236\u5e8f\u5217\u9a71\u52a8\u7684\u7eaf\u7ec8\u7aef&#xff08;TUI&#xff09;\u6781\u7b80\u5065\u5eb7\u770b\u677f\u3002<\/p>\n<h4>\u6452\u5f03\u7b2c\u4e09\u65b9\u91cd\u578b\u5e93&#xff1a;\u539f\u751f ANSI \u8f6c\u4e49\u5e8f\u5217\u4e0e\u53cc\u7f13\u51b2\u6e32\u67d3<\/h4>\n<p>\u5e02\u9762\u4e0a\u5f88\u591a Go \u8bed\u8a00\u7ec8\u7aef UI \u5e93&#xff08;\u5982 bubbletea\u3001tview&#xff09;\u867d\u7136\u529f\u80fd\u5b8c\u5907&#xff0c;\u4f46\u5f15\u5165\u4e86\u5927\u91cf\u72b6\u6001\u62bd\u8c61\u548c\u590d\u6742\u7684\u4e8b\u4ef6\u8c03\u5ea6\u6811\u3002\u5728\u8d44\u6e90\u6781\u5ea6\u53d7\u9650\u3001\u5185\u5b58\u9762\u4e34\u51fb\u7a7f\u7684\u5d29\u6e83\u8282\u70b9\u4e0a&#xff0c;\u6211\u4eec\u53ea\u9700\u8981\u6700\u5e95\u5c42\u3001\u6700\u76f4\u63a5\u7684\u7ec8\u7aef\u63a7\u5236\u539f\u8bed\u3002<\/p>\n<p>\u5229\u7528 VT100 \/ ANSI \u8f6c\u4e49\u5e8f\u5217&#xff0c;\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u5b8c\u6210\u5168\u90e8\u7684\u5c4f\u5e55\u63a7\u5236&#xff1a;<\/p>\n<ul>\n<li>\u9690\u85cf\u5149\u6807&#xff1a;\\\\033[?25l<\/li>\n<li>\u6062\u590d\u5149\u6807\u5e76\u590d\u4f4d\u5c5e\u6027&#xff1a;\\\\033[?25h\\\\033[0m<\/li>\n<li>\u6e05\u5c4f\u5e76\u5149\u6807\u5f52\u96f6&#xff1a;\\\\033[2J\\\\033[H<\/li>\n<li>\u79fb\u52a8\u5149\u6807\u81f3\u6307\u5b9a\u884c\u5217&#xff1a;\\\\033[%d;%dH<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u675c\u7edd\u7ec8\u7aef\u5237\u65b0\u65f6\u7684\u5267\u70c8\u95ea\u70c1&#xff0c;\u5fc5\u987b\u91c7\u7528\u5185\u5b58\u7f13\u51b2\u533a\u53cc\u7f13\u51b2&#xff08;Double Buffering&#xff09;\u673a\u5236\u3002\u6240\u6709 CPU \u67f1\u72b6\u56fe\u3001\u5185\u5b58\u4f7f\u7528\u7387\u6761\u5f62\u56fe\u4ee5\u53ca\u78c1\u76d8 I\/O \u541e\u5410\u6570\u636e&#xff0c;\u5728\u5185\u5b58\u4e2d\u5148\u683c\u5f0f\u5316\u4e3a\u4e00\u4e2a\u5b8c\u6574\u7684\u5b57\u8282\u5207\u7247&#xff0c;\u6700\u540e\u4ec5\u901a\u8fc7\u4e00\u6b21\u539f\u5b50\u6027\u7684 os.Stdout.Write \u7cfb\u7edf\u8c03\u7528\u5c06\u6574\u4e2a\u5c4f\u5e55\u5e27\u5237\u5165\u7ec8\u7aef&#xff0c;\u5f7b\u5e95\u6d88\u9664\u6b8b\u5f71\u3002<\/p>\n<p>package main<\/p>\n<p>import (<br \/>\n&#034;fmt&#034;<br \/>\n&#034;os&#034;<br \/>\n&#034;os\/signal&#034;<br \/>\n&#034;strings&#034;<br \/>\n&#034;syscall&#034;<br \/>\n&#034;time&#034;<br \/>\n)<\/p>\n<p>\/\/ \u7ed8\u5236\u7eaf\u5b57\u7b26\u98ce\u683c\u7684\u8fdb\u5ea6\u6761<br \/>\nfunc renderProgressBar(ratio float64, width int) string {<br \/>\nfilled :&#061; int(ratio * float64(width))<br \/>\nif filled &gt; width {<br \/>\nfilled &#061; width<br \/>\n}<br \/>\nvar sb strings.Builder<br \/>\nsb.WriteString(&#034;[&#034;)<br \/>\nfor i :&#061; 0; i &lt; filled; i&#043;&#043; {<br \/>\nsb.WriteString(&#034;\u25a0&#034;)<br \/>\n}<br \/>\nfor i :&#061; filled; i &lt; width; i&#043;&#043; {<br \/>\nsb.WriteString(&#034; &#034;)<br \/>\n}<br \/>\nsb.WriteString(&#034;]&#034;)<br \/>\nreturn sb.String()<br \/>\n}<\/p>\n<p>func main() {<br \/>\n\/\/ \u9690\u85cf\u5149\u6807<br \/>\nfmt.Print(&#034;\\\\033[?25l&#034;)<\/p>\n<p>\/\/ \u9000\u51fa\u4fe1\u53f7\u62e6\u622a&#xff0c;\u786e\u4fdd\u7ec8\u7aef\u5149\u6807\u6062\u590d<br \/>\nsigChan :&#061; make(chan os.Signal, 1)<br \/>\nsignal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)<\/p>\n<p>ticker :&#061; time.NewTicker(500 * time.Millisecond)<br \/>\ndefer ticker.Stop()<\/p>\n<p>go func() {<br \/>\n&lt;-sigChan<br \/>\nfmt.Print(&#034;\\\\033[?25h\\\\033[0m\\\\033[2J\\\\033[H&#034;)<br \/>\nos.Exit(0)<br \/>\n}()<\/p>\n<p>for range ticker.C {<br \/>\nvar frame strings.Builder<br \/>\n\/\/ \u5149\u6807\u5f52\u4f4d<br \/>\nframe.WriteString(&#034;\\\\033[H&#034;)<br \/>\nframe.WriteString(&#034;\\\\033[1;36m&#061;&#061;&#061; \u751f\u4ea7\u8282\u70b9\u73b0\u573a\u6025\u6551\u7ec8\u7aef\u4eea\u8868\u76d8 &#061;&#061;&#061;\\\\033[0m\\\\n\\\\n&#034;)<\/p>\n<p>\/\/ \u6a21\u62df\u4ece \/proc \u91c7\u96c6\u7684\u5173\u952e\u8d1f\u8f7d\u6307\u6807<br \/>\ncpuUsage :&#061; 0.78<br \/>\nmemUsage :&#061; 0.65<\/p>\n<p>frame.WriteString(fmt.Sprintf(&#034;CPU  \u4f7f\u7528\u7387: %5.1f%% %s\\\\n&#034;, cpuUsage*100, renderProgressBar(cpuUsage, 30)))<br \/>\nframe.WriteString(fmt.Sprintf(&#034;\u5185\u5b58 \u4f7f\u7528\u7387: %5.1f%% %s\\\\n&#034;, memUsage*100, renderProgressBar(memUsage, 30)))<br \/>\nframe.WriteString(&#034;\\\\n\\\\033[90m\u6309 Ctrl&#043;C \u9000\u51fa\u6025\u6551\u770b\u677f\\\\033[0m\\\\n&#034;)<\/p>\n<p>\/\/ \u5355\u6b21\u7cfb\u7edf\u8c03\u7528\u843d\u76d8&#xff0c;\u575a\u51b3\u675c\u7edd\u5c4f\u5e55\u6495\u88c2\u4e0e\u95ea\u70c1<br \/>\nos.Stdout.WriteString(frame.String())<br \/>\n}<br \/>\n}<\/p>\n<h4>\u6781\u4f4e\u5f00\u9500\u7684\u6570\u636e\u91c7\u96c6\u8def\u5f84<\/h4>\n<p>\u7ec8\u7aef\u770b\u677f\u7684\u91c7\u6837\u903b\u8f91\u5fc5\u987b\u4e25\u683c\u9075\u5b88\u201c\u8f7b\u91cf\u5316\u201d\u94c1\u5f8b\u3002\u575a\u51b3\u7981\u6b62\u5728\u91c7\u6837\u5faa\u73af\u4e2d\u8c03\u7528\u5916\u90e8\u547d\u4ee4\u3002<\/p>\n<li>CPU \u7edf\u8ba1&#xff1a;\u5b9a\u65f6\u5dee\u503c\u8bfb\u53d6 \/proc\/stat \u7684\u9996\u884c&#xff0c;\u63d0\u53d6 user\u3001nice\u3001system\u3001idle\u3001iowait \u8ba1\u6570\u5668&#xff0c;\u524d\u540e\u4e24\u6b21\u65f6\u949f\u6ef4\u7b54\u5dee\u5373\u53ef\u7b97\u51fa\u77ac\u65f6\u6838\u5fc3\u4f7f\u7528\u7387\u4e0e\u771f\u5b9e I\/O \u7b49\u5f85\u5360\u6bd4\u3002<\/li>\n<li>\u5185\u5b58\u6c34\u7ebf&#xff1a;\u4ece \/proc\/meminfo \u63d0\u53d6 MemTotal \u4e0e MemAvailable&#xff0c;\u4ee5\u6700\u63a5\u8fd1\u5185\u6838\u89c6\u89d2\u7684\u771f\u5b9e\u53ef\u7528\u5185\u5b58\u4e3a\u57fa\u51c6&#xff0c;\u907f\u514d\u8bef\u5c06\u7528\u4e8e\u7f13\u5b58\u7684\u5185\u5b58\u7b97\u4f5c\u6cc4\u6f0f\u3002<\/li>\n<li>\u7f51\u7edc\u6536\u53d1&#xff1a;\u5dee\u503c\u8bfb\u53d6 \/proc\/net\/dev \u4e2d\u7684 Receive bytes \u548c Transmit bytes&#xff0c;\u5b9e\u65f6\u8ba1\u7b97\u7269\u7406\u7f51\u5361\u7684\u5f53\u524d\u6bcf\u79d2\u541e\u5410\u5e26\u5bbd\u3002<\/li>\n<h4>\u5b57\u7b26\u4e4b\u7f8e\u7684\u5de5\u7a0b\u529b\u91cf<\/h4>\n<p>\u5728\u8fd9\u4e2a\u56fe\u5f62\u754c\u9762\u8fc7\u5ea6\u5305\u88c5\u7684\u65f6\u4ee3&#xff0c;\u7eaf\u5b57\u7b26\u7ec8\u7aef\u4e0d\u4ec5\u6ca1\u6709\u843d\u4f0d&#xff0c;\u53cd\u800c\u5728\u6781\u7aef\u5de5\u51b5\u4e0b\u5c55\u73b0\u51fa\u65e0\u4e0e\u4f26\u6bd4\u7684\u575a\u97e7\u3002\u5b83\u4e0d\u9700\u8981 X11 \u8f6c\u53d1&#xff0c;\u4e0d\u9700\u8981 Chromium \u5f15\u64ce&#xff0c;\u751a\u81f3\u4e0d\u9700\u8981\u5206\u914d\u8d85\u8fc7 4MB \u7684\u7269\u7406\u5185\u5b58\u3002\u53ea\u9700\u4e00\u4e2a\u7b80\u5355\u7684 VT100 \u7ec8\u7aef\u7a97\u53e3&#xff0c;\u51e0\u7ec4\u95ea\u70c1\u7740\u7eff\u8272\u4e0e\u9ec4\u8272\u51b7\u5149\u7684\u7eaf\u6587\u672c\u8fdb\u5ea6\u6761&#xff0c;\u5c31\u80fd\u5728\u4e00\u77ac\u95f4\u5c06\u751f\u4ea7\u670d\u52a1\u5668\u5e95\u5c42\u7684\u8109\u640f\u6e05\u6670\u5448\u73b0\u3002\u5bf9\u4e8e\u8ffd\u6c42\u6781\u81f4\u53ef\u9760\u6027\u7684\u7cfb\u7edf\u7ea7\u6781\u5ba2\u800c\u8a00&#xff0c;\u8fd9\u5c31\u662f\u6700\u53ef\u9760\u7684\u5de5\u4e1a\u7f8e\u5b66\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u73b0\u4ee3\u4e91\u539f\u751f\u67b6\u6784\u4e0b&#xff0c;\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4e60\u60ef\u4e86\u6253\u5f00\u6d4f\u89c8\u5668\u67e5\u770b\u70ab\u76ee\u7684 Grafana \u4eea\u8868\u76d8\u3002\u4f46\u51e1\u7ecf\u5386\u8fc7\u673a\u623f\u7f51\u7edc\u9aa8\u5e72\u5149\u7f06\u6316\u65ad\u3001\u7269\u7406\u670d\u52a1\u5668\u4ec5\u5269\u4e00\u6761\u4e32\u53e3\u8c03\u8bd5\u7ebf&#xff08;Serial Console&#xff09;\u3001\u6216\u8005\u8282\u70b9\u81ea\u8eab\u9ad8\u8d1f\u8f7d\u5bfc\u81f4 Web \u76d1\u63a7\u4ee3\u7406&#xff08;Agent&#xff09;\u5168\u90e8\u5931\u8054\u7684\u6781\u7aef\u6545\u969c\u73b0\u573a&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d&#xff1a;\u90a3\u4e9b\u9700\u8981\u52a0\u8f7d\u51e0\u5341\u5146 JavaScript \u811a\u672c\u3001\u5fc5\u987b\u4f9d\u8d56\u5916\u90e8\u65f6\u5e8f\u6570\u636e\u5e93\u6e32\u67d3\u7684\u73b0\u4ee3\u770b\u677f&#xff0c;\u5728\u6025\u6551\u65f6\u523b\u5f80\u5f80\u662f<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9152,66,58,50,219],"topic":[],"class_list":["post-119702","post","type-post","status-publish","format-standard","hentry","category-server","tag-9152","tag-ai","tag-linux","tag-50","tag-219"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/119702.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u73b0\u4ee3\u4e91\u539f\u751f\u67b6\u6784\u4e0b&#xff0c;\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4e60\u60ef\u4e86\u6253\u5f00\u6d4f\u89c8\u5668\u67e5\u770b\u70ab\u76ee\u7684 Grafana \u4eea\u8868\u76d8\u3002\u4f46\u51e1\u7ecf\u5386\u8fc7\u673a\u623f\u7f51\u7edc\u9aa8\u5e72\u5149\u7f06\u6316\u65ad\u3001\u7269\u7406\u670d\u52a1\u5668\u4ec5\u5269\u4e00\u6761\u4e32\u53e3\u8c03\u8bd5\u7ebf&#xff08;Serial Console&#xff09;\u3001\u6216\u8005\u8282\u70b9\u81ea\u8eab\u9ad8\u8d1f\u8f7d\u5bfc\u81f4 Web \u76d1\u63a7\u4ee3\u7406&#xff08;Agent&#xff09;\u5168\u90e8\u5931\u8054\u7684\u6781\u7aef\u6545\u969c\u73b0\u573a&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d&#xff1a;\u90a3\u4e9b\u9700\u8981\u52a0\u8f7d\u51e0\u5341\u5146 JavaScript \u811a\u672c\u3001\u5fc5\u987b\u4f9d\u8d56\u5916\u90e8\u65f6\u5e8f\u6570\u636e\u5e93\u6e32\u67d3\u7684\u73b0\u4ee3\u770b\u677f&#xff0c;\u5728\u6025\u6551\u65f6\u523b\u5f80\u5f80\u662f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/119702.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-30T00:18:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001833-6ae3e2593c714.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119702.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/119702.html\",\"name\":\"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-30T00:18:34+00:00\",\"dateModified\":\"2026-10-30T00:18:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/119702.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/119702.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/119702.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/119702.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u73b0\u4ee3\u4e91\u539f\u751f\u67b6\u6784\u4e0b&#xff0c;\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u4e60\u60ef\u4e86\u6253\u5f00\u6d4f\u89c8\u5668\u67e5\u770b\u70ab\u76ee\u7684 Grafana \u4eea\u8868\u76d8\u3002\u4f46\u51e1\u7ecf\u5386\u8fc7\u673a\u623f\u7f51\u7edc\u9aa8\u5e72\u5149\u7f06\u6316\u65ad\u3001\u7269\u7406\u670d\u52a1\u5668\u4ec5\u5269\u4e00\u6761\u4e32\u53e3\u8c03\u8bd5\u7ebf&#xff08;Serial Console&#xff09;\u3001\u6216\u8005\u8282\u70b9\u81ea\u8eab\u9ad8\u8d1f\u8f7d\u5bfc\u81f4 Web \u76d1\u63a7\u4ee3\u7406&#xff08;Agent&#xff09;\u5168\u90e8\u5931\u8054\u7684\u6781\u7aef\u6545\u969c\u73b0\u573a&#xff0c;\u4f60\u5c31\u4f1a\u660e\u767d&#xff1a;\u90a3\u4e9b\u9700\u8981\u52a0\u8f7d\u51e0\u5341\u5146 JavaScript \u811a\u672c\u3001\u5fc5\u987b\u4f9d\u8d56\u5916\u90e8\u65f6\u5e8f\u6570\u636e\u5e93\u6e32\u67d3\u7684\u73b0\u4ee3\u770b\u677f&#xff0c;\u5728\u6025\u6551\u65f6\u523b\u5f80\u5f80\u662f","og_url":"https:\/\/www.wsisp.com\/helps\/119702.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-30T00:18:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261030001833-6ae3e2593c714.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/119702.html","url":"https:\/\/www.wsisp.com\/helps\/119702.html","name":"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-30T00:18:34+00:00","dateModified":"2026-10-30T00:18:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/119702.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/119702.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/119702.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6253\u9020\u6781\u7b80\u8fd0\u7ef4\u770b\u677f\uff1a\u7ec8\u7aef\u7eaf\u5b57\u7b26UI\u5448\u73b0\u670d\u52a1\u5668\u6838\u5fc3\u5065\u5eb7\u72b6\u6001\u7684\u5b9e\u8df5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=119702"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/119702\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=119702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=119702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=119702"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=119702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}