{"id":38543,"date":"2025-04-24T04:56:28","date_gmt":"2025-04-23T20:56:28","guid":{"rendered":"https:\/\/www.yunshan.net\/blog\/?p=38543"},"modified":"2025-04-24T04:56:28","modified_gmt":"2025-04-23T20:56:28","slug":"skywalking%e5%a6%82%e4%bd%95%e5%b8%ae%e5%8a%a9%e5%ae%9e%e7%8e%b0%e6%9c%8d%e5%8a%a1%e7%9a%84awscloudformation%e9%9b%86%e6%88%90","status":"publish","type":"post","link":"https:\/\/www.yunshan.net\/blog\/archives\/38543.html","title":{"rendered":"SkyWalking\u5982\u4f55\u5e2e\u52a9\u5b9e\u73b0\u670d\u52a1\u7684AWSCloudFormation\u96c6\u6210"},"content":{"rendered":"<p style=\"text-align: center;\">\n<p><img decoding=\"async\" src=\"https:\/\/pic.zadbj010.com\/2025\/5c391796dfc44.webp\" alt=\"SkyWalking\u5982\u4f55\u5e2e\u52a9\u5b9e\u73b0\u670d\u52a1\u7684AWSCloudFormation\u96c6\u6210\" ><\/p>\n<\/p>\n<p>SkyWalking\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08APM\uff09\u7cfb\u7edf\uff0c\u4e13\u95e8\u7528\u4e8e\u5fae\u670d\u52a1\u3001\u4e91\u539f\u751f\u548c\u5bb9\u5668\u7b49\u67b6\u6784\u3002\u867d\u7136\u8981\u6c42\u4e2d\u6ca1\u6709\u76f4\u63a5\u63d0\u5230SkyWalking\u4e0eAWS CloudFormation\u96c6\u6210\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u4ece\u76f8\u5173\u6587\u6863\u4e2d\u63a8\u6d4b\u51fa\u4e00\u4e9b\u53ef\u80fd\u7684\u96c6\u6210\u65b9\u5f0f\u3002<\/p>\n<h2>1. \u4f7f\u7528AWS CLI\u548c\u670d\u52a1\u53d1\u73b0\u90e8\u7f72SkyWalking OAP Server<\/h2>\n<p>\u6587\u6863\u63d0\u5230\u4e86\u4f7f\u7528AWS CLI\u5728ECS Fargate\u4e0a\u90e8\u7f72SkyWalking OAP Server\uff0c\u5e76\u5229\u7528AWS\u670d\u52a1\u53d1\u73b0\u4e3agRPC\u6d41\u91cf\u63d0\u4f9b\u4e00\u4e2a\u9759\u6001\u5165\u53e3\u70b9\u3002\u8fd9\u8868\u660e\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199AWS CLI\u547d\u4ee4\u6216\u811a\u672c\uff0c\u7ed3\u5408CloudFormation\u6a21\u677f\uff0c\u5b9e\u73b0SkyWalking\u7684\u81ea\u52a8\u5316\u90e8\u7f72\u3002<\/p>\n<h2>2. \u5728EKS\u4e2d\u4f7f\u7528SkyWalking\u5b9e\u73b0\u5e94\u7528\u6027\u80fd\u76d1\u63a7<\/h2>\n<p>\u6587\u6863\u867d\u7136\u6ca1\u6709\u5177\u4f53\u63d0\u5230CloudFormation\u96c6\u6210\uff0c\u4f46\u5b83\u8ba8\u8bba\u4e86\u5728EKS\uff08Elastic Kubernetes Service\uff09\u4e2d\u4f7f\u7528Apache SkyWalking\u5b9e\u73b0\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u3002\u8fd9\u6697\u793a\u4e86\u53ef\u4ee5\u901a\u8fc7Kubernetes\u8d44\u6e90\u5b9a\u4e49\u6587\u4ef6\uff08\u5982YAML\u6587\u4ef6\uff09\u6765\u90e8\u7f72SkyWalking\uff0c\u800c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u4f5c\u4e3aCloudFormation\u6a21\u677f\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<h2>3. \u5229\u7528OpenTelemetry Collector\u76d1\u63a7EKS<\/h2>\n<p>\u6587\u6863\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528OpenTelemetry Collector\u76d1\u63a7EKS\uff0c\u5e76\u5c06\u6570\u636e\u5bfc\u51fa\u5230SkyWalking OAP\u3002\u8fd9\u8868\u660e\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6eOpenTelemetry Collector\uff0c\u5c06\u5176\u4f5c\u4e3aCloudFormation\u6a21\u677f\u4e2d\u7684\u4e00\u4e2a\u7ec4\u4ef6\uff0c\u5b9e\u73b0\u4e0eSkyWalking\u7684\u96c6\u6210\u3002<\/p>\n<h2>4. \u90e8\u7f72SkyWalking UI\u5e76\u901a\u8fc7ALB\u63d0\u4f9b\u670d\u52a1<\/h2>\n<p>\u6587\u6863\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5982\u4f55\u4f7f\u7528AWS CLI\u5728ECS Fargate\u4e0a\u90e8\u7f72SkyWalking UI\uff0c\u5e76\u901a\u8fc7Application Load Balancer (ALB)\u63d0\u4f9b\u516c\u7f51\u8bbf\u95ee\u5165\u53e3\u3002\u8fd9\u4e00\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199CloudFormation\u6a21\u677f\u6765\u81ea\u52a8\u5316\u3002<\/p>\n<h2>\u96c6\u6210\u6b65\u9aa4\u63a8\u6d4b<\/h2>\n<p>1. <strong>\u7f16\u5199CloudFormation\u6a21\u677f<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2aCloudFormation\u6a21\u677f\uff0c\u5b9a\u4e49\u6240\u9700\u7684AWS\u8d44\u6e90\uff0c\u5982ECS\u4efb\u52a1\u5b9a\u4e49\u3001\u670d\u52a1\u3001ALB\u7b49\u3002<\/p>\n<p>2. <strong>\u914d\u7f6eSkyWalking\u7ec4\u4ef6<\/strong>\uff1a\u5728\u6a21\u677f\u4e2d\u6dfb\u52a0SkyWalking OAP Server\u548cUI\u7684\u90e8\u7f72\u914d\u7f6e\u3002<\/p>\n<p>3. <strong>\u4f7f\u7528AWS CLI\u6216SDK\u90e8\u7f72<\/strong>\uff1a\u4f7f\u7528AWS CLI\u6216SDK\u6267\u884cCloudFormation\u6a21\u677f\uff0c\u521b\u5efa\u548c\u914d\u7f6e\u6240\u6709\u76f8\u5173\u8d44\u6e90\u3002<\/p>\n<p>4. <strong>\u9a8c\u8bc1\u548c\u6d4b\u8bd5<\/strong>\uff1a\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1SkyWalking\u662f\u5426\u6b63\u786e\u8fd0\u884c\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u6d4b\u8bd5\u3002<\/p>\n<p>\u867d\u7136\u8981\u6c42\u4e2d\u6ca1\u6709\u63d0\u4f9bSkyWalking\u4e0eAWS CloudFormation\u96c6\u6210\u7684\u5177\u4f53\u6b65\u9aa4\uff0c\u4f46\u901a\u8fc7\u5206\u6790\u76f8\u5173\u6587\u6863\uff0c\u6211\u4eec\u53ef\u4ee5\u63a8\u6d4b\u51fa\u4e00\u4e9b\u53ef\u80fd\u7684\u96c6\u6210\u65b9\u6cd5\u3002\u8fd9\u4e9b\u65b9\u6cd5\u6d89\u53ca\u4f7f\u7528AWS CLI\u3001\u7f16\u5199CloudFormation\u6a21\u677f\u4ee5\u53ca\u914d\u7f6eSkyWalking\u7ec4\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SkyWalking\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5e94\u7528\u6027\u80fd\u76d1\u63a7\uff08APM\uff09\u7cfb\u7edf\uff0c\u4e13\u95e8\u7528\u4e8e\u5fae\u670d\u52a1\u3001\u4e91\u539f\u751f\u548c\u5bb9\u5668\u7b49\u67b6\u6784\u3002\u867d\u7136\u8981\u6c42\u4e2d\u6ca1\u6709\u76f4\u63a5\u63d0\u5230SkyWalking\u4e0eAWS CloudFormation\u96c6\u6210\u7684\u5177\u4f53\u65b9\u6cd5\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u4ece\u76f8\u5173\u6587\u6863\u4e2d\u63a8\u6d4b\u51fa\u4e00\u4e9b\u53ef\u80fd\u7684\u96c6\u6210\u65b9\u5f0f\u3002 1. \u4f7f\u7528AWS CLI\u548c\u670d\u52a1\u53d1\u73b0\u90e8\u7f72SkyWalking OAP Server \u6587\u6863\u63d0\u5230\u4e86\u4f7f\u7528AWS CLI\u5728ECS Fargate\u4e0a\u90e8\u7f72SkyWalking OAP Server\uff0c\u5e76\u5229\u7528AWS\u670d\u52a1\u53d1\u73b0\u4e3agRPC\u6d41\u91cf\u63d0\u4f9b\u4e00\u4e2a\u9759\u6001\u5165\u53e3\u70b9\u3002\u8fd9\u8868\u660e\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199AWS CLI\u547d\u4ee4\u6216\u811a\u672c\uff0c\u7ed3\u5408CloudFormation\u6a21\u677f\uff0c\u5b9e\u73b0SkyWalking\u7684\u81ea\u52a8\u5316\u90e8\u7f72\u3002 2. \u5728EKS\u4e2d\u4f7f\u7528SkyWalking\u5b9e\u73b0\u5e94\u7528\u6027\u80fd\u76d1\u63a7 \u6587\u6863\u867d\u7136\u6ca1\u6709\u5177\u4f53\u63d0\u5230CloudFormation\u96c6\u6210\uff0c\u4f46\u5b83\u8ba8\u8bba\u4e86\u5728EKS\uff08Elastic Kubernetes Service\uff09\u4e2d\u4f7f\u7528Apache SkyWalking\u5b9e\u73b0\u5e94\u7528\u6027\u80fd\u76d1\u63a7\u3002\u8fd9\u6697\u793a\u4e86\u53ef\u4ee5\u901a\u8fc7Kubernetes\u8d44\u6e90\u5b9a\u4e49\u6587\u4ef6\uff08\u5982YAML\u6587\u4ef6\uff09\u6765\u90e8\u7f72SkyWalking\uff0c\u800c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u4f5c\u4e3aCloudFormation\u6a21\u677f\u7684\u4e00\u90e8\u5206\u3002 3. \u5229\u7528OpenTelemetry Collector\u76d1\u63a7EKS \u6587\u6863\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528OpenTelemetry Collector\u76d1\u63a7EKS\uff0c\u5e76\u5c06\u6570\u636e\u5bfc\u51fa\u5230SkyWalking OAP\u3002\u8fd9\u8868\u660e\u53ef\u4ee5\u901a\u8fc7\u914d\u7f6eOpenTelemetry Collector\uff0c\u5c06\u5176\u4f5c\u4e3aCloudFormation\u6a21\u677f\u4e2d\u7684\u4e00\u4e2a\u7ec4\u4ef6\uff0c\u5b9e\u73b0\u4e0eSkyWalking\u7684\u96c6\u6210\u3002 4. \u90e8\u7f72SkyWalking UI\u5e76\u901a\u8fc7ALB\u63d0\u4f9b\u670d\u52a1 \u6587\u6863\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5982\u4f55\u4f7f\u7528AWS CLI\u5728ECS Fargate\u4e0a\u90e8\u7f72SkyWalking UI\uff0c\u5e76\u901a\u8fc7Application Load Balancer (ALB)\u63d0\u4f9b\u516c\u7f51\u8bbf\u95ee\u5165\u53e3\u3002\u8fd9\u4e00\u8fc7\u7a0b\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199CloudFormation\u6a21\u677f\u6765\u81ea\u52a8\u5316\u3002 \u96c6\u6210\u6b65\u9aa4\u63a8\u6d4b 1. \u7f16\u5199CloudFormation\u6a21\u677f\uff1a\u521b\u5efa\u4e00\u4e2aCloudFormation\u6a21\u677f\uff0c\u5b9a\u4e49\u6240\u9700\u7684AWS\u8d44\u6e90\uff0c\u5982ECS\u4efb\u52a1\u5b9a\u4e49\u3001\u670d\u52a1\u3001ALB\u7b49\u3002 2. \u914d\u7f6eSkyWalking\u7ec4\u4ef6\uff1a\u5728\u6a21\u677f\u4e2d\u6dfb\u52a0SkyWalking OAP Server\u548cUI\u7684\u90e8\u7f72\u914d\u7f6e\u3002 3. \u4f7f\u7528AWS CLI\u6216SDK\u90e8\u7f72\uff1a\u4f7f\u7528AWS CLI\u6216SDK\u6267\u884cCloudFormation\u6a21\u677f\uff0c\u521b\u5efa\u548c\u914d\u7f6e\u6240\u6709\u76f8\u5173\u8d44\u6e90\u3002 4. \u9a8c\u8bc1\u548c\u6d4b\u8bd5\uff1a\u90e8\u7f72\u5b8c\u6210\u540e\uff0c\u9a8c\u8bc1SkyWalking\u662f\u5426\u6b63\u786e\u8fd0\u884c\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u6d4b\u8bd5\u3002 \u867d\u7136\u8981\u6c42\u4e2d\u6ca1\u6709\u63d0\u4f9bSkyWalking\u4e0eAWS CloudFormation\u96c6\u6210\u7684\u5177\u4f53\u6b65\u9aa4\uff0c\u4f46\u901a\u8fc7\u5206\u6790\u76f8\u5173\u6587\u6863\uff0c\u6211\u4eec\u53ef\u4ee5\u63a8\u6d4b\u51fa\u4e00\u4e9b\u53ef\u80fd\u7684\u96c6\u6210\u65b9\u6cd5\u3002\u8fd9\u4e9b\u65b9\u6cd5\u6d89\u53ca\u4f7f\u7528AWS CLI\u3001\u7f16\u5199CloudFormation\u6a21\u677f\u4ee5\u53ca\u914d\u7f6eSkyWalking\u7ec4\u4ef6\u3002<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-38543","post","type-post","status-publish","format-standard","hentry","category-discussion"],"_links":{"self":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38543","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=38543"}],"version-history":[{"count":1,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38543\/revisions"}],"predecessor-version":[{"id":38544,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/posts\/38543\/revisions\/38544"}],"wp:attachment":[{"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/media?parent=38543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/categories?post=38543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yunshan.net\/blog\/wp-json\/wp\/v2\/tags?post=38543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}