{"id":23982,"date":"2025-01-10T00:33:10","date_gmt":"2025-01-09T16:33:10","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=23982"},"modified":"2025-01-10T00:33:10","modified_gmt":"2025-01-09T16:33:10","slug":"skywalking%e7%9a%84api%e6%96%87%e6%a1%a3%e5%92%8c%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97%e5%9c%a8%e5%93%aa%e9%87%8c%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/23982.html","title":{"rendered":"SkyWalking\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\u5728\u54ea\u91cc\uff1f"},"content":{"rendered":"<p>\t\t\t\t<![CDATA[\n                \n\n<p style=\"text-align: center;\">\n\n<p><img decoding=\"async\" src=\"https:\/\/pic.zadbj010.com\/2025\/1db240352c2473e.jpg\" alt=\"SkyWalking\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\u5728\u54ea\u91cc\uff1f\" ><\/p>\n\n<\/p>\n\n\n\n<p>\u5728\u5f53\u4eca\u5feb\u901f\u53d1\u5c55\u7684\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u5206\u5e03\u5f0f\u7cfb\u7edf\u7684\u76d1\u63a7\u548c\u8ffd\u8e2a\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002SkyWalking\u4f5c\u4e3a\u4e00\u6b3e\u5f00\u6e90\u7684APM\uff08\u5e94\u7528\u6027\u80fd\u7ba1\u7406\uff09\u5de5\u5177\uff0c\u51ed\u501f\u5176\u5f3a\u5927\u7684\u529f\u80fd\u548c\u7075\u6d3b\u7684\u6269\u5c55\u6027\uff0c\u6210\u4e3a\u4e86\u4f17\u591a\u5f00\u53d1\u8005\u548c\u8fd0\u7ef4\u4eba\u5458\u7684\u9996\u9009\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u5982\u4f55\u5feb\u901f\u627e\u5230SkyWalking\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\uff0c\u5f80\u5f80\u662f\u4e00\u4e2a\u4ee4\u4eba\u5934\u75bc\u7684\u95ee\u9898\u3002\u672c\u6587\u5c06\u4e3a\u60a8\u8be6\u7ec6\u89e3\u7b54\u8fd9\u4e00\u95ee\u9898\uff0c\u5e2e\u52a9\u60a8\u8f7b\u677e\u4e0a\u624bSkyWalking\u3002<\/p>\n\n\n\n\n<p><strong>SkyWalking\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\u5728\u54ea\u91cc\uff1f<\/strong><\/p>\n\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u660e\u786e\u7684\u662f\uff0cSkyWalking\u7684\u5b98\u65b9\u6587\u6863\u662f\u5176\u6700\u6743\u5a01\u7684\u4fe1\u606f\u6765\u6e90\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95eeSkyWalking\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/skywalking.apache.org\/\">https:\/\/skywalking.apache.org\/<\/a>\uff09\u6765\u83b7\u53d6\u6700\u65b0\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\u3002\u5728\u5b98\u65b9\u7f51\u7ad9\u7684\u201cDocumentation\u201d\u90e8\u5206\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u8be6\u7ec6\u7684\u5b89\u88c5\u6307\u5357\u3001\u914d\u7f6e\u8bf4\u660e\u3001API\u53c2\u8003\u4ee5\u53ca\u5e38\u89c1\u95ee\u9898\u89e3\u7b54\u3002<\/p>\n\n\n\n\n<p><strong>1. \u5b98\u65b9\u6587\u6863\u7684\u7ed3\u6784<\/strong><\/p>\n\n\n\n\n<p>SkyWalking\u7684\u5b98\u65b9\u6587\u6863\u7ed3\u6784\u6e05\u6670\uff0c\u5185\u5bb9\u4e30\u5bcc\uff0c\u6db5\u76d6\u4e86\u4ece\u5165\u95e8\u5230\u8fdb\u9636\u7684\u5404\u4e2a\u65b9\u9762\u3002\u4ee5\u4e0b\u662f\u6587\u6863\u7684\u4e3b\u8981\u90e8\u5206\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>Getting Started<\/strong>\uff1a\u8fd9\u90e8\u5206\u5185\u5bb9\u9002\u5408\u521d\u5b66\u8005\uff0c\u63d0\u4f9b\u4e86SkyWalking\u7684\u57fa\u672c\u4ecb\u7ecd\u3001\u5b89\u88c5\u6b65\u9aa4\u4ee5\u53ca\u5feb\u901f\u4e0a\u624b\u7684\u6559\u7a0b\u3002<\/li>\n\n\n\n\n<li><strong>Configuration<\/strong>\uff1a\u8be6\u7ec6\u4ecb\u7ecd\u4e86SkyWalking\u7684\u914d\u7f6e\u6587\u4ef6\u53ca\u5176\u5404\u9879\u53c2\u6570\u7684\u542b\u4e49\uff0c\u5e2e\u52a9\u60a8\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8fdb\u884c\u5b9a\u5236\u5316\u914d\u7f6e\u3002<\/li>\n\n\n\n\n<li><strong>Architecture<\/strong>\uff1a\u6df1\u5165\u89e3\u6790\u4e86SkyWalking\u7684\u67b6\u6784\u8bbe\u8ba1\uff0c\u5305\u62ec\u5176\u6838\u5fc3\u7ec4\u4ef6\u3001\u6570\u636e\u6d41\u548c\u5de5\u4f5c\u539f\u7406\u3002<\/li>\n\n\n\n\n<li><strong>Advanced Features<\/strong>\uff1a\u4ecb\u7ecd\u4e86SkyWalking\u7684\u9ad8\u7ea7\u529f\u80fd\uff0c\u5982\u81ea\u5b9a\u4e49\u63d2\u4ef6\u3001\u5206\u5e03\u5f0f\u8ffd\u8e2a\u3001\u6027\u80fd\u4f18\u5316\u7b49\u3002<\/li>\n\n\n\n\n<li><strong>API Reference<\/strong>\uff1a\u63d0\u4f9b\u4e86SkyWalking\u7684API\u6587\u6863\uff0c\u5305\u62ecREST API\u3001Java Agent API\u7b49\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8fdb\u884c\u4e8c\u6b21\u5f00\u53d1\u548c\u96c6\u6210\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong>2. \u5982\u4f55\u4f7f\u7528API\u6587\u6863<\/strong><\/p>\n\n\n\n\n<p>SkyWalking\u7684API\u6587\u6863\u662f\u5176\u6838\u5fc3\u8d44\u6e90\u4e4b\u4e00\uff0c\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\u5c24\u4e3a\u91cd\u8981\u3002API\u6587\u6863\u8be6\u7ec6\u5217\u51fa\u4e86SkyWalking\u63d0\u4f9b\u7684\u5404\u79cd\u63a5\u53e3\u53ca\u5176\u4f7f\u7528\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528API\u6587\u6863\u7684\u51e0\u70b9\u5efa\u8bae\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>REST API<\/strong>\uff1aSkyWalking\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684REST API\uff0c\u7528\u4e8e\u67e5\u8be2\u548c\u7ba1\u7406\u76d1\u63a7\u6570\u636e\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7API\u6587\u6863\u4e86\u89e3\u6bcf\u4e2a\u63a5\u53e3\u7684URL\u3001\u8bf7\u6c42\u53c2\u6570\u3001\u54cd\u5e94\u683c\u5f0f\u4ee5\u53ca\u4f7f\u7528\u793a\u4f8b\u3002<\/li>\n\n\n\n\n<li><strong>Java Agent API<\/strong>\uff1a\u5982\u679c\u60a8\u9700\u8981\u5728Java\u5e94\u7528\u4e2d\u4f7f\u7528SkyWalking\u8fdb\u884c\u76d1\u63a7\uff0cJava Agent API\u5c06\u662f\u60a8\u7684\u5f97\u529b\u52a9\u624b\u3002API\u6587\u6863\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u914d\u7f6e\u548c\u4f7f\u7528Java Agent\uff0c\u4ee5\u53ca\u5982\u4f55\u81ea\u5b9a\u4e49\u76d1\u63a7\u6307\u6807\u3002<\/li>\n\n\n\n\n<li><strong>\u63d2\u4ef6\u5f00\u53d1API<\/strong>\uff1aSkyWalking\u652f\u6301\u81ea\u5b9a\u4e49\u63d2\u4ef6\u5f00\u53d1\uff0cAPI\u6587\u6863\u63d0\u4f9b\u4e86\u63d2\u4ef6\u5f00\u53d1\u7684\u8be6\u7ec6\u6307\u5357\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u5e2e\u52a9\u60a8\u5feb\u901f\u4e0a\u624b\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong>3. \u4f7f\u7528\u6307\u5357\u7684\u83b7\u53d6<\/strong><\/p>\n\n\n\n\n<p>\u9664\u4e86API\u6587\u6863\uff0cSkyWalking\u7684\u4f7f\u7528\u6307\u5357\u4e5f\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u8d44\u6e90\u3002\u4f7f\u7528\u6307\u5357\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>\u5b89\u88c5\u4e0e\u90e8\u7f72<\/strong>\uff1a\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u5b89\u88c5\u548c\u90e8\u7f72SkyWalking\uff0c\u5305\u62ecDocker\u3001Kubernetes\u7b49\u3002<\/li>\n\n\n\n\n<li><strong>\u914d\u7f6e\u4e0e\u7ba1\u7406<\/strong>\uff1a\u63d0\u4f9b\u4e86SkyWalking\u7684\u914d\u7f6e\u8bf4\u660e\u548c\u7ba1\u7406\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u5e2e\u52a9\u60a8\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u7ef4\u62a4\u76d1\u63a7\u7cfb\u7edf\u3002<\/li>\n\n\n\n\n<li><strong>\u6545\u969c\u6392\u67e5<\/strong>\uff1a\u5217\u51fa\u4e86\u5e38\u89c1\u7684\u6545\u969c\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff0c\u5e2e\u52a9\u60a8\u5feb\u901f\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong>4. \u793e\u533a\u4e0e\u652f\u6301<\/strong><\/p>\n\n\n\n\n<p>SkyWalking\u62e5\u6709\u4e00\u4e2a\u6d3b\u8dc3\u7684\u5f00\u6e90\u793e\u533a\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u83b7\u53d6\u66f4\u591a\u7684\u5e2e\u52a9\u548c\u652f\u6301\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>GitHub<\/strong>\uff1aSkyWalking\u7684GitHub\u4ed3\u5e93\uff08<a href=\"https:\/\/github.com\/apache\/skywalking\">https:\/\/github.com\/apache\/skywalking<\/a>\uff09\u662f\u83b7\u53d6\u6700\u65b0\u4ee3\u7801\u3001\u63d0\u4ea4\u95ee\u9898\u548c\u53c2\u4e0e\u8ba8\u8bba\u7684\u6700\u4f73\u5e73\u53f0\u3002<\/li>\n\n\n\n\n<li><strong>\u90ae\u4ef6\u5217\u8868<\/strong>\uff1a\u52a0\u5165SkyWalking\u7684\u90ae\u4ef6\u5217\u8868\uff0c\u4e0e\u5168\u7403\u7684\u5f00\u53d1\u8005\u4ea4\u6d41\u7ecf\u9a8c\u548c\u5fc3\u5f97\u3002<\/li>\n\n\n\n\n<li><strong>Slack<\/strong>\uff1aSkyWalking\u7684Slack\u9891\u9053\u662f\u4e00\u4e2a\u5b9e\u65f6\u4ea4\u6d41\u7684\u5e73\u53f0\uff0c\u60a8\u53ef\u4ee5\u5728\u8fd9\u91cc\u63d0\u95ee\u548c\u83b7\u53d6\u5373\u65f6\u5e2e\u52a9\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong>5. \u5b9e\u8df5\u6848\u4f8b\u4e0e\u6559\u7a0b<\/strong><\/p>\n\n\n\n\n<p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528SkyWalking\uff0c\u53c2\u8003\u4e00\u4e9b\u5b9e\u8df5\u6848\u4f8b\u548c\u6559\u7a0b\u662f\u975e\u5e38\u6709\u5e2e\u52a9\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684\u8d44\u6e90\uff1a<\/p>\n\n\n\n\n<ul>\n\n\n<li><strong>\u5b98\u65b9\u535a\u5ba2<\/strong>\uff1aSkyWalking\u7684\u5b98\u65b9\u535a\u5ba2\u5b9a\u671f\u53d1\u5e03\u6700\u65b0\u7684\u6280\u672f\u6587\u7ae0\u548c\u6848\u4f8b\u5206\u6790\uff0c\u5e2e\u52a9\u60a8\u6df1\u5165\u4e86\u89e3SkyWalking\u7684\u5e94\u7528\u573a\u666f\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n\n\n\n\n<li><strong>\u793e\u533a\u8d21\u732e<\/strong>\uff1a\u8bb8\u591a\u5f00\u53d1\u8005\u5728\u793e\u533a\u4e2d\u5206\u4eab\u4e86\u4ed6\u4eec\u7684\u4f7f\u7528\u7ecf\u9a8c\u548c\u6559\u7a0b\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7GitHub\u6216\u535a\u5ba2\u627e\u5230\u8fd9\u4e9b\u5b9d\u8d35\u7684\u8d44\u6e90\u3002<\/li>\n\n\n\n\n<li><strong>\u5728\u7ebf\u8bfe\u7a0b<\/strong>\uff1a\u4e00\u4e9b\u5728\u7ebf\u6559\u80b2\u5e73\u53f0\u63d0\u4f9b\u4e86SkyWalking\u7684\u8bfe\u7a0b\uff0c\u9002\u5408\u5e0c\u671b\u901a\u8fc7\u7cfb\u7edf\u5b66\u4e60\u638c\u63e1SkyWalking\u7684\u5f00\u53d1\u8005\u3002<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong>6. \u603b\u7ed3<\/strong><\/p>\n\n\n\n\n<p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u76f8\u4fe1\u60a8\u5df2\u7ecf\u5bf9\u5982\u4f55\u83b7\u53d6\u548c\u4f7f\u7528SkyWalking\u7684API\u6587\u6863\u548c\u4f7f\u7528\u6307\u5357\u6709\u4e86\u6e05\u6670\u7684\u8ba4\u8bc6\u3002\u65e0\u8bba\u662f\u521d\u5b66\u8005\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\uff0cSkyWalking\u7684\u5b98\u65b9\u6587\u6863\u548c\u793e\u533a\u8d44\u6e90\u90fd\u80fd\u4e3a\u60a8\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002\u5e0c\u671b\u60a8\u80fd\u591f\u5145\u5206\u5229\u7528\u8fd9\u4e9b\u8d44\u6e90\uff0c\u5feb\u901f\u4e0a\u624bSkyWalking\uff0c\u63d0\u5347\u60a8\u7684\u5206\u5e03\u5f0f\u7cfb\u7edf\u76d1\u63a7\u80fd\u529b\u3002<\/p>\n\n\n                ]]>\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":5,"featured_media":23983,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-23982","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/23982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/comments?post=23982"}],"version-history":[{"count":0,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/23982\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media\/23983"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=23982"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=23982"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=23982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}