{"id":43235,"date":"2023-10-03T16:45:54","date_gmt":"2023-08-14T09:14:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/"},"modified":"2024-05-04T02:40:26","modified_gmt":"2024-05-03T18:40:26","slug":"%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/","title":{"rendered":"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1"},"content":{"rendered":"<p>(2021\u5e749\u670830\u65e5 \u8ffd\u8a18)<br \/>\nAmazon Managed Service for Prometheus \u8fdb\u5165\u4e86\u4e00\u822c\u53ef\u7528\u72b6\u6001\uff0c\u8fd9\u662f\u4e2a\u597d\u6d88\u606f\uff01<\/p>\n<p>\u5728\u9884\u89c8\u7248\u672c\u4e2d\u6ca1\u6709\u63d0\u4f9b\u7684\u8b66\u62a5\u7ba1\u7406\u5668\u76f8\u5173\u529f\u80fd\u73b0\u5728\u53ef\u7528\uff0c\u5e76\u4e14\u73b0\u5728\u67099\u4e2a\u53ef\u7528\u5730\u533a\uff08\u5305\u62ec\u4e1c\u4eac\uff09\uff01<\/p>\n<p>\uff08\u8865\u5145\u6b64\u5904\u4e4b\u524d\uff09<\/p>\n<p>\u5927\u5bb6AWS re:Invent\u73a9\u5f97\u5f00\u5fc3\u5417\uff0112\u670818\u65e5\u4e4b\u524d\u4e00\u76f4\u4f1a\u6301\u7eed\u8fdb\u884c\uff0c\u8fd8\u6ca1\u53c2\u52a0\u7684\u4eba\u53ef\u4ee5\u53bb\u770b\u770b\uff01<\/p>\n<p>\u6211\u5728\u4eca\u5e74\u590f\u5929\u5c06EKS\u8fc1\u79fb\u65f6\uff0c\u8f9b\u82e6\u5730\u5728Kubernetes\u4e0a\u5f15\u5165\u4e86Airflow\u3001Grafana\u548cPrometheus\uff0c\u7ed3\u679c\u5374\u5728\u77ed\u65f6\u95f4\u5185\u5168\u90e8\u88ab\u5ba3\u5e03\u6210\u4e86\u6258\u7ba1\u670d\u52a1\u3002\u7136\u800c\uff0c\u7531\u4e8e\u6211\u9009\u62e9\u4e86\u81ea\u5df1\u642d\u5efa\u548c\u8fd0\u7ef4\u8fd9\u4e9b\u670d\u52a1\uff0c\u800c\u4e0d\u662f\u4f7f\u7528AWS\u6258\u7ba1\u7684\u670d\u52a1\uff0c\u6240\u4ee5\u6211\u80fd\u591f\u5b66\u5230\u5173\u4e8e\u6bcf\u4e2a\u670d\u52a1\u7684\u6982\u5ff5\u548c\u7ecf\u9a8c\uff0c\u6240\u4ee5\u6211\u5e76\u4e0d\u540e\u6094\u3002<\/p>\n<p>\u5173\u4e8e\u5728 EKS \u4e0a\u7ba1\u7406\u7684 Prometheus\uff0c\u55ef\uff0c\u73b0\u5728\u6765\u8c08\u8c08\u5427\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e1\u30e2\u30ea\u3092\u98df\u3044\u307e\u304f\u3063\u3066\u843d\u3061\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u7d4c\u7531\u3057\u3066\u4e00\u5b9a\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u62c5\u4fdd\u3057\u305f\u4e0a\u3067\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u683c\u7d0d &amp; \u30af\u30a8\u30ea\u3057\u305f\u3044<\/ul>\n<p>\u6211\u521a\u597d\u6709\u7c7b\u4f3c\u7684\u56f0\u6270\u548c\u9700\u6c42\uff0c\u6b63\u601d\u8003\u7740\u600e\u4e48\u89e3\u51b3\u5462\u3002\u6b63\u597d\u4eca\u5929 Amazon \u63a8\u51fa\u4e86 Prometheus \u7684\u6258\u7ba1\u670d\u52a1\u2014\u2014Amazon Managed Service for Prometheus\uff0c\u770b\u8d77\u6765\u53ef\u4ee5\u89e3\u51b3\u6240\u6709\u95ee\u9898\uff0c\u4e8e\u662f\u6211\u8bd5\u7528\u4e86\u4e00\u4e0b\u5e76\u5206\u4eab\u7ed9\u5927\u5bb6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u5bf9\u4e8e EKS \u8fc1\u79fb\u4e8b\u9879\u611f\u5174\u8da3\u7684\u8bdd\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0b\u9762\u7684\u7b14\u8bb0\u3002\u867d\u7136\u8bdd\u9898\u7a0d\u6709\u504f\u79bb\uff0c\u4f46\u8bf7\u968f\u610f\uff01<\/p>\n<h1>\u5173\u4e8eAmazon\u6258\u7ba1\u7684Prometheus\u670d\u52a1<\/h1>\n<p>\u8bf7\u4e0d\u8981\u8be6\u7ec6\u89e3\u91caPrometheus\uff0c\u8bf7\u67e5\u9605\u5176\u4ed6\u6587\u7ae0\u3002<\/p>\n<p>Amazon Managed Service for Prometheus \u662f\u4e00\u4e2a\u53ef\u4ee5\u5b58\u50a8\u548c\u67e5\u8be2\u517c\u5bb9Prometheus\u7684\u6307\u6807\u6570\u636e\u7684\u670d\u52a1\u3002<br \/>\n\u60a8\u53ef\u4ee5\u4f7f\u7528Prometheus Exporter\u7b49\u5de5\u5177\u5c06\u6307\u6807\u5b58\u50a8\u5728Amazon Managed Service for Prometheus\u4e2d\uff0c\u5e76\u901a\u8fc7Grafana\u67e5\u8be2Amazon Managed Service for Prometheus\u4e2d\u7684\u6307\u6807\u6570\u636e\uff0c\u5e76\u4ee5\u56fe\u5f62\u7684\u5f62\u5f0f\u8fdb\u884c\u786e\u8ba4\u3002<br \/>\n\u867d\u7136\u5b83\u88ab\u79f0\u4e3aPrometheus\u7684\u6258\u7ba1\u670d\u52a1\uff0c\u4f46\u5b83\u66f4\u50cf\u662f\u4e00\u4e2a\u7528\u4e8e\u5b58\u50a8\u7531Prometheus\u6536\u96c6\u7684\u6307\u6807\u6570\u636e\u7684\u4ed3\u5e93\u3002<br \/>\n\u4ece\u6839\u672c\u4e0a\u8bb2\uff0cPrometheus\u5e76\u4e0d\u4fdd\u5b58\u6307\u6807\u6570\u636e\u3002<br \/>\n\u5982\u679c\u60a8\u60f3\u8981\u6c38\u4e45\u4fdd\u5b58\u6307\u6807\u6570\u636e\uff0c\u90a3\u4e48\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u670d\u52a1\uff0c\u5982Thanos\u6216Cortex\u6765\u5b58\u50a8\u6307\u6807\u6570\u636e\uff08\u6211\u4eec\u516c\u53f8\u91c7\u7528\u7684\u662fThanos\uff0c\u800cAmazon Managed Service for Prometheus\u4f3c\u4e4e\u4f7f\u7528\u7684\u662fCortex\uff09\u3002<br \/>\n\u56e0\u6b64\uff0c\u5373\u4f7f\u4f7f\u7528\u4e86Amazon Managed Service for Prometheus\uff0c\u60a8\u4ecd\u9700\u8981\u81ea\u884c\u90e8\u7f72Exporter\u7b49\u5de5\u5177\u6765\u4ece\u5bb9\u5668\u4e2d\u6293\u53d6\u6307\u6807\uff0c\u5e76\u4e14\u9700\u8981\u81ea\u884c\u51c6\u5907Grafana\u7b49\u5de5\u5177\u6765\u67e5\u8be2\u548c\u5c55\u793a\u5b58\u50a8\u7684\u6570\u636e\u3002<br \/>\n\u81f3\u4e8eGrafana\uff0c\u6211\u4eec\u4e5f\u6709Amazon Managed Service for Grafana\uff01\uff08\u6b63\u5728\u79ef\u6781\u7533\u8bf7\u9884\u89c8\uff09<\/p>\n<h2>\u5e94\u7531\u8c01\u6765\u4f7f\u7528\uff1f<\/h2>\n<p>\u90a3\u4e48\uff0cAmazon Managed Service for Grafana \u7684\u76ee\u6807\u7528\u6237\u548c\u53d7\u76ca\u8005\u662f\u8c01\u5462\uff1f<br \/>\nAWS\u771f\u5389\u5bb3\uff0c\u8be6\u7ec6\u8bb0\u5f55\u5728FAQ\u4e2d\u3002<\/p>\n<blockquote><p>Q: \u4e3a\u4ec0\u4e48\u6211\u5e94\u8be5\u4f7f\u7528\u4e9a\u9a6c\u900aPrometheus\u6258\u7ba1\u670d\u52a1\uff1f<br \/>\n\u5982\u679c\u60a8\u5df2\u7ecf\u91c7\u7528\u4e86\u57fa\u4e8e\u5f00\u6e90\u7684\u76d1\u63a7\u7b56\u7565\uff0c\u5df2\u7ecf\u90e8\u7f72\u4e86\u6216\u8ba1\u5212\u91c7\u7528Prometheus\u8fdb\u884c\u5bb9\u5668\u76d1\u63a7\uff0c\u5e76\u4e14\u66f4\u559c\u6b22\u7531AWS\u63d0\u4f9b\u589e\u5f3a\u7684\u5b89\u5168\u6027\u3001\u53ef\u6269\u5c55\u6027\u548c\u53ef\u7528\u6027\u7684\u5168\u6258\u7ba1\u4f53\u9a8c\uff0c\u90a3\u4e48\u60a8\u5e94\u8be5\u4f7f\u7528AMP\u3002<\/p>\n<p>Q: \u4e9a\u9a6c\u900aPrometheus\u6258\u7ba1\u670d\u52a1\u4e0e\u4e9a\u9a6c\u900aCloudWatch\u6709\u4f55\u5173\u7cfb\uff1f\u6211\u5e94\u8be5\u4f7f\u7528\u54ea\u4e00\u4e2a\uff1f<br \/>\n\u5982\u679c\u60a8\u6b63\u5728\u5bfb\u627e\u4e00\u4e2a\u7efc\u5408\u7684\u76d1\u6d4b\u670d\u52a1\uff0c\u80fd\u591f\u7edf\u4e00AWS\u670d\u52a1\u3001EC2\u3001\u5bb9\u5668\u548c\u65e0\u670d\u52a1\u5668\u7684\u65e5\u5fd7\u3001\u6307\u6807\u3001\u8ffd\u8e2a\u3001\u4eea\u8868\u677f\u548c\u8b66\u62a5\uff0c\u60a8\u5e94\u8be5\u4f7f\u7528\u4e9a\u9a6c\u900aCloudWatch\u3002<br \/>\n\u5982\u679c\u60a8\u6b63\u5728\u8fd0\u884c\u5bb9\u5668\uff0c\u5e76\u4e14\u5e0c\u671b\u4f7f\u7528\u4e00\u4e2a\u4e0ePrometheus\u5f00\u6e90\u9879\u76ee\u5b8c\u5168\u517c\u5bb9\u7684\u670d\u52a1\uff0c\u60a8\u5e94\u8be5\u9009\u62e9AMP\u3002\u5982\u679c\u60a8\u5df2\u7ecf\u5728\u8fd0\u884cPrometheus\uff0c\u5e76\u4e14\u5e0c\u671b\u6d88\u9664\u6301\u7eed\u7684\u8fd0\u7ef4\u6210\u672c\u540c\u65f6\u63d0\u5347\u5b89\u5168\u6027\uff0c\u60a8\u4e5f\u5e94\u8be5\u9009\u62e9AMP\u3002<\/p><\/blockquote>\n<p>\u4ee5\u4e0b\u662f\u4ecehttps:\/\/aws.amazon.com\/jp\/grafana\/faqs\/\u4e0a\u63d0\u53d6\u7684\u4fe1\u606f:<\/p>\n<p>\u76ee\u6807\u53d7\u4f17\u4f3c\u4e4e\u662f\u90a3\u4e9b\u5df2\u7ecf\u4f7f\u7528Prometheus\u6784\u5efa\u76d1\u63a7\u7cfb\u7edf\uff0c\u5e76\u5bf9\u8fd0\u8425\u6210\u672c\u611f\u5230\u75b2\u5026\u7684\u4eba\u3002\u901a\u8fc7\u4f7f\u7528Amazon Managed Service for Prometheus\uff0c\u60a8\u5c06\u4e0d\u518d\u9700\u8981\u62c5\u5fc3\u7ba1\u7406\u6536\u96c6\u5230\u7684\u5ea6\u91cf\u6570\u636e\u7b49\u4e8b\u9879\u3002<\/p>\n<h2>\u4e3b\u8981\u529f\u80fd<\/h2>\n<p>\u6211\u5c06\u5728\u4e0b\u9762\u7684\u6587\u4ef6\u4e2d\u8bb0\u5f55\u6240\u8bfb\u5230\u7684\u5185\u5bb9\u3002<\/p>\n<h3>\u5b89\u5168\u6027<\/h3>\n<p>\u5728 Amazon Managed Service for Prometheus \u4e2d\uff0c\u5b58\u50a8\u548c\u83b7\u53d6\u6307\u6807\u6570\u636e\u9700\u8981\u4f7f\u7528\u5b58\u50a8\u4e86 AWS IAM \u8ba4\u8bc1\u4fe1\u606f\u7684 AWS Signature Version 4 \u7684\u7b7e\u540d\u3002\u56e0\u6b64\uff0c\u60a8\u53ef\u4ee5\u5728 AWS IAM \u7684\u5b89\u5168\u529f\u80fd\u4e4b\u4e0a\u4f7f\u7528 Prometheus\u3002\u4e3a\u4e86\u8fdb\u4e00\u6b65\u6ee1\u8db3\u4e0d\u5e0c\u671b\u901a\u8fc7\u4e92\u8054\u7f51\u4ea4\u6362\u6307\u6807\u6570\u636e\u7684\u7528\u4f8b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 VPC Endpoint\uff08Interface \u578b\uff09\u3002<\/p>\n<h3>\u53ef\u5229\u7528\u6027<\/h3>\n<p>\u6839\u636e\u6587\u6863\u663e\u793a\uff0c\u6709\u5173\u5ea6\u91cf\u6570\u636e\u7684\u5b58\u50a8\u91c7\u7528\u4e86Multi-AZ\u7684\u65b9\u5f0f\uff0c\u5e76\u8fdb\u884c\u4e863\u4e2a\u53ef\u7528\u533a\u7684\u90e8\u7f72\u3002\u6570\u636e\u9996\u5148\u5b58\u50a8\u5728EBS\u4e0a\uff0c\u7136\u540e\u4fdd\u5b58\u5728S3\u4e0a\u3002<\/p>\n<h3>\u8cc7\u6599\u4fdd\u5b58\u671f\u9650<\/h3>\n<p>\u76ee\u524d\u53ea\u80fd\u9009\u62e9150\u5929\u7684\u4fdd\u7ba1\u671f\u9650\u3002<\/p>\n<h3>\u8b66\u544a\u7ecf\u7406<\/h3>\n<p>\u4ece2021\u5e749\u670830\u65e5\u5f00\u59cb\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u8b66\u62a5\u7ba1\u7406\u5668\u529f\u80fd\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u9009\u62e9\u5c06SNS\u4f5c\u4e3a\u901a\u77e5\u76ee\u6807\uff0c\u901a\u8fc7SNS\u2192Lambda\u5b9e\u73b0\u7075\u6d3b\u7684\u901a\u77e5\u6267\u884c\u3002<\/p>\n<h3>\u533a\u57df (q\u016b y\u00f9)<\/h3>\n<p>\u4ee5\u4e0b\u76849\u4e2a\u5730\u533a\u53ef\u7528\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">US East (N. Virginia)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">US East (Ohio)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">US West (Oregon)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Europe (Frankfurt)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Europe (Ireland)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Europe (Stockholm)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Asia Pacific (Singapore)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Asia Pacific (Sydney)<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Asia Pacific (Tokyo).<\/ul>\n<h1>\u6211\u7528EKS\u4f53\u9a8c\u4e86\u4e00\u4e0bAmazon Prometheus\u6258\u7ba1\u670d\u52a1\u3002<\/h1>\n<p>\u5982\u679c\u4f60\u53c2\u8003\u4e86\u4ee5\u4e0b\u7684\u535a\u5ba2\uff0c\u8bf7\u4e0d\u8981\u9605\u8bfb\u4e0b\u9762\u7684\u5185\u5bb9\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5bf9\u80fd\u5426\u8de8\u533a\u57df\u4f7f\u7528\u611f\u5174\u8da3\u6216\u8005\u60f3\u7528\u65e5\u8bed\u9605\u8bfb\uff0c\u8bf7\u7ee7\u7eed\u9605\u8bfb\u3002<\/p>\n<p>\u6211\u6b63\u5728\u8de8\u8d8a\u4ee5\u4e0b\u5730\u533a\u3002<\/p>\n<div>\n<div class=\"post-table\">\u30ea\u30bd\u30fc\u30b9\u30ea\u30fc\u30b8\u30e7\u30f3Amazon Managed Service for Prometheusus-east-1EKSap-northeast-1<\/div>\n<\/div>\n<p>\u6b64\u5916\uff0c\u5728\u4e0b\u9762\u7684\u64cd\u4f5c\u4e2d\uff0c\u9700\u8981\u4f7f\u7528AWS CLI\u3001eksctl\u3001kubectl\u548chelm\uff0c\u56e0\u6b64\u9700\u8981\u5177\u5907\u8fd9\u4e9b\u5de5\u5177\u7684\u53ef\u7528\u6027\uff0c\u5e76\u4e14\u9700\u8981\u6709\u76f8\u5e94\u7684\u8ba4\u8bc1\u4fe1\u606f\u7684shell\u73af\u5883\u3002<\/p>\n<h2>\u521b\u5efa\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/41-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u8bf7\u767b\u5f55AWS\u7ba1\u7406\u63a7\u5236\u53f0\uff0c\u7136\u540e\u524d\u5f80Amazon Managed Service for Prometheus\u7684\u9875\u9762\uff08https:\/\/console.aws.amazon.com\/prometheus\/home\uff09\u3002<br \/>\n\u5c3d\u7ba1Amazon Managed Service for Prometheus\u5904\u4e8e\u9884\u89c8\u72b6\u6001\uff0c\u4f46\u65e0\u9700\u7533\u8bf7\u5373\u53ef\u9884\u89c8\u3002<br \/>\n\u6309\u7167\u4e0a\u9762\u7684\u56fe\u7247\u4e00\u6837\uff0c\u5feb\u901f\u521b\u5efa\u4e00\u4e2a\u5de5\u4f5c\u533a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/43-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u7136\u540e\uff0c\u51e0\u79d2\u949f\u540e\uff0c\u72b6\u6001\u5c06\u53d8\u4e3aACTIVE\uff0c\u8d44\u6e90\u5c06\u88ab\u521b\u5efa\u3002<br \/>\n\u4e00\u65e6\u8d44\u6e90\u88ab\u521b\u5efa\uff0c\u5c06\u4f1a\u751f\u6210\u4e24\u79cdHTTP\u5730\u5740\uff08Endpoint-\u8fdc\u7a0b\u5199\u5165URL\uff0cEndpoint-\u67e5\u8be2URL\uff09\uff0c\u5206\u522b\u7528\u4e8e\u5b58\u50a8\u548c\u67e5\u8be2\u6307\u6807\u6570\u636e\u3002<br \/>\n\u6b64\u5916\uff0c\u8fd9\u4e9bURL\u4f3c\u4e4e\u662f\u53ef\u4ee5\u516c\u5f00\u8bbf\u95ee\u7684\u3002<\/p>\n<pre class=\"post-pre\"><code>$ dig aps-workspaces.us-east-1.amazonaws.com +short\r\n3.223.166.82\r\n100.24.159.220\r\n52.70.212.28\r\n54.210.4.8\r\n35.169.187.85\r\n54.243.211.98\r\n<\/code><\/pre>\n<h2>\u6211\u521b\u5efa\u4e86\u4e00\u4e2a IAM \u89d2\u8272\u548c\u63d0\u4f9b\u8005\u3002<\/h2>\n<p>\u4e0b\u4e00\u6b65\u662f\u5728Amazon Managed Service for Prometheus\u4e2d\u5b58\u50a8\u5ea6\u91cf\u6570\u636e\uff0c\u5e76\u521b\u5efa\u7528\u4e8e\u83b7\u53d6\u5df2\u5b58\u50a8\u5ea6\u91cf\u6570\u636e\u7684IAM\u8d44\u6e90\u3002<br \/>\n\u6267\u884c\u4ee5\u4e0b\u535a\u5ba2\u4e2d\u63d0\u4f9b\u7684bash\u811a\u672c\u3002<br \/>\n\u9700\u8981\u66f4\u6539\u7684\u662f\u7b2c\u4e00\u884c\u7684YOUR_EKS_CLUSTER_NAME\u548c\u6700\u540e\u4e00\u884c\u7684eksctl\uff0c\u56e0\u4e3a\u6b64\u6b21\u7684EKS\u4f4d\u4e8eap-northeast-1\u533a\u57df\uff0c\u9700\u8981\u4f20\u9012&#8211;region\u53c2\u6570\u7ed9eksctl\u3002<\/p>\n<p>\u6267\u884c\u4e0a\u8ff0\u811a\u672c\u540e\u5c06\u4f1a\u51fa\u73b0\u5982\u4e0b\u60c5\u51b5\uff0c\u5c3d\u7ba1\u4f3c\u4e4e\u4f1a\u8f93\u51fa\u9519\u8bef\u4fe1\u606f\uff0c\u4f46\u5176\u5b9e\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>\u2726 \u276f bash init.sh \r\nCreating a new trust policy\r\n\r\nAn error occurred (NoSuchEntity) when calling the GetRole operation: The role with name EKS-AMP-ServiceAccount-Role cannot be found.\r\nAppending to the existing trust policy\r\n\r\nAn error occurred (NoSuchEntity) when calling the GetPolicy operation: Policy arn:aws:iam::XXXXXXXXXX:policy\/AWSManagedPrometheusWriteAccessPolicy was not found.\r\nCreating a new permission policy AWSManagedPrometheusWriteAccessPolicy\r\n{\r\n    \"Policy\": {\r\n        \"PolicyName\": \"AWSManagedPrometheusWriteAccessPolicy\",\r\n        \"PolicyId\": \"ANPARVSLQ63UWTO7GOCOY\",\r\n        \"Arn\": \"arn:aws:iam::XXXXXXXXXX:policy\/AWSManagedPrometheusWriteAccessPolicy\",\r\n        \"Path\": \"\/\",\r\n        \"DefaultVersionId\": \"v1\",\r\n        \"AttachmentCount\": 0,\r\n        \"PermissionsBoundaryUsageCount\": 0,\r\n        \"IsAttachable\": true,\r\n        \"CreateDate\": \"2020-12-17T12:50:08+00:00\",\r\n        \"UpdateDate\": \"2020-12-17T12:50:08+00:00\"\r\n    }\r\n}\r\n\r\nAn error occurred (NoSuchEntity) when calling the GetRole operation: The role with name EKS-AMP-ServiceAccount-Role cannot be found.\r\nEKS-AMP-ServiceAccount-Role role does not exist. Creating a new role with a trust and permission policy\r\narn:aws:iam::XXXXXXXXXX:role\/EKS-AMP-ServiceAccount-Role\r\n[\u2139]  eksctl version 0.30.0\r\n[\u2139]  using region ap-northeast-1\r\n[\u2139]  will create IAM Open ID Connect provider for cluster \"eks-cluster\" in \"ap-northeast-1\"\r\n[\u2714]  created IAM Open ID Connect provider for cluster \"eks-cluster\" in \"ap-northeast-1\"\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/50-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u5b89\u88c5Prometheus\u3002<\/h2>\n<p>\u4e3a\u4e86\u4f7f\u7528Amazon Managed Service for Prometheus\uff0c\u9700\u8981\u8f93\u5165\u4e00\u4e9b\u9002\u5f53\u7684\u6570\u636e\u3002<br \/>\n\u56e0\u6b64\uff0c\u5c06Prometheus\u5b89\u88c5\u5728EKS\u4e0a\u3002<br \/>\n\u53ea\u9700\u8981\u4f7f\u7528Helm\u6267\u884c\u547d\u4ee4\u5373\u53ef\u3002<\/p>\n<pre class=\"post-pre\"><code>$ helm repo add prometheus-community https:\/\/prometheus-community.github.io\/helm-charts\r\n\"prometheus-community\" has been added to your repositories\r\n\r\n$ kubectl create ns prometheus\r\nnamespace\/prometheus created\r\n\r\n$ helm install prometheus-for-amp prometheus-community\/prometheus -n prometheus\r\nNAME: prometheus-for-amp\r\nLAST DEPLOYED: Thu Dec 17 12:56:30 2020\r\nNAMESPACE: prometheus\r\nSTATUS: deployed\r\nREVISION: 1\r\nTEST SUITE: None\r\nNOTES:\r\nThe Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:\r\nprometheus-for-amp-server.prometheus.svc.cluster.local\r\n\r\n\r\nGet the Prometheus server URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=server\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9090\r\n\r\n\r\nThe Prometheus alertmanager can be accessed via port 80 on the following DNS name from within your cluster:\r\nprometheus-for-amp-alertmanager.prometheus.svc.cluster.local\r\n\r\n\r\nGet the Alertmanager URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=alertmanager\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9093\r\n#################################################################################\r\n######   WARNING: Pod Security Policy has been moved to a global property.  #####\r\n######            use .Values.podSecurityPolicy.enabled with pod-based      #####\r\n######            annotations                                               #####\r\n######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####\r\n#################################################################################\r\n\r\n\r\nThe Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:\r\nprometheus-for-amp-pushgateway.prometheus.svc.cluster.local\r\n\r\n\r\nGet the PushGateway URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=pushgateway\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9091\r\n\r\nFor more information on running Prometheus, visit:\r\nhttps:\/\/prometheus.io\/\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u5df2\u5728prometheus\u7684\u547d\u540d\u7a7a\u95f4\u4e2d\u521b\u5efa\u4e86\u4e0ePrometheus\u76f8\u5173\u7684POD\u3002<\/p>\n<pre class=\"post-pre\"><code>$ k get po -n prometheus\r\nNAME                                                    READY   STATUS    RESTARTS   AGE\r\nprometheus-for-amp-alertmanager-5cb9f4478c-km4ht        2\/2     Running   0          6m26s\r\nprometheus-for-amp-kube-state-metrics-bc9cb958f-l7p7k   1\/1     Running   0          6m26s\r\nprometheus-for-amp-node-exporter-69qsw                  1\/1     Running   0          6m27s\r\nprometheus-for-amp-node-exporter-bg4ss                  1\/1     Running   0          6m26s\r\nprometheus-for-amp-node-exporter-fs74x                  1\/1     Running   0          6m26s\r\nprometheus-for-amp-pushgateway-56ff9d9d99-4z2sf         1\/1     Running   0          6m26s\r\nprometheus-for-amp-server-7f6d6fcf59-kpl5m              2\/2     Running   0          6m26s\r\n<\/code><\/pre>\n<h2>\u90e8\u7f72 AWS \u7b7e\u540d\u4ee3\u7406<\/h2>\n<p>(2021-04-16 \u66f4\u65b0)<br \/>\n\u4ece Prometheus 2.26.0 \u5f00\u59cb\uff0c\u539f\u751f\u652f\u6301 AWS Signature Version 4 \u8ba4\u8bc1\u3002<br \/>\n\u5982\u679c\u4f7f\u7528 Prometheus 2.26.0\uff0c\u5219\u65e0\u9700\u4f7f\u7528 AWS signing proxy \u5bb9\u5668\u3002<\/p>\n<p>\u4f7f\u7528 Prometheus 2.26.0 \u7684\u6b65\u9aa4\u5df2\u5728\u4e0b\u5217\u7f51\u5740\u4e2d\u8bb0\u5f55\uff1a<br \/>\nhttps:\/\/aws.amazon.com\/jp\/blogs\/mt\/getting-started-amazon-managed-service-for-prometheus\/<\/p>\n<p>\uff082021-04-16\u66f4\u65b0\uff09\u8bf7\u63d0\u4f9b\u4e2d\u6587\u539f\u6587\uff0c\u6211\u5c06\u7ffb\u8bd1\u4e3a\u7b49\u6548\u7684\u4e2d\u6587\u7248\u672c\u3002<\/p>\n<p>\u5982\u524d\u6240\u8ff0\uff0c\u8981\u5c06\u6307\u6807\u6570\u636e\u6295\u5165\u548c\u63d0\u53d6\u51faAmazon Managed Service for Prometheus\uff0c\u9700\u8981\u4f7f\u7528AWS Signature Version 4\u7b7e\u540d\u3002<br \/>\n\u4e4b\u524d\u7684Helm\u6a21\u677f\u4e0d\u662f\u4e3aAmazon Managed Service for Prometheus\u8bbe\u8ba1\u7684\uff0c\u6ca1\u6709\u63d0\u4f9b\u5305\u542bAWS Signature Version 4\u7b7e\u540d\u7684\u673a\u5236\u3002<br \/>\nAWS\u7b7e\u540d\u4ee3\u7406\uff08AWS signing proxy\uff09\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u5b83\u4f5c\u4e3aPrometheus\u7684sidecar\u5bb9\u5668\u8fdb\u884c\u90e8\u7f72\u3002<\/p>\n<p>\u53ef\u4ee5\u590d\u5236\u535a\u5ba2\u4e2d\u63d0\u4f9b\u7684YAML\u5e76\u6839\u636e\u81ea\u5df1\u7684\u73af\u5883\u8fdb\u884c\u8986\u76d6\uff0c\u4f46\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1\u7684\u7ba1\u7406\u63a7\u5236\u53f0\u4e5f\u63d0\u4f9b\u4e86\u76f8\u540c\u7684\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/63-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u53ea\u9700\u5c06\u7ba1\u7406\u63a7\u5236\u53f0\u7684YAML\u4e2d\u7684annotations\u5b57\u6bb5\u7684eks.amazonaws.com\/role-arn\u7684\u503c\u66ff\u6362\u4e3a&#8221;IAM\u89d2\u8272\u3001\u63d0\u4f9b\u8005\u521b\u5efa&#8221;\u65f6\u6240\u521b\u5efa\u7684IAM\u89d2\u8272\u7684ARN (arn:aws:iam:::role\/EKS-AMP-ServiceAccount-Role)\uff0c\u5373\u53ef\u3002<\/p>\n<p>\u5f53\u51c6\u5907\u597dYAML\u6587\u4ef6\u540e\uff0c\u5c06\u5176\u4f5c\u4e3aHelm\u6a21\u677f\u7684\u503c\u4f20\u9012\uff0c\u91cd\u65b0\u90e8\u7f72Prometheus\u3002<\/p>\n<pre class=\"post-pre\"><code>$ helm upgrade --install prometheus-for-amp prometheus-community\/prometheus -n prometheus -f .\/amp_ingest_override_values.yaml\r\n\r\nRelease \"prometheus-for-amp\" has been upgraded. Happy Helming!\r\nNAME: prometheus-for-amp\r\nLAST DEPLOYED: Thu Dec 17 13:03:23 2020\r\nNAMESPACE: prometheus\r\nSTATUS: deployed\r\nREVISION: 2\r\nTEST SUITE: None\r\nNOTES:\r\nThe Prometheus server can be accessed via port 80 on the following DNS name from within your cluster:\r\nprometheus-for-amp-server.prometheus.svc.cluster.local\r\n\r\n\r\nGet the Prometheus server URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=server\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9090\r\n\r\n\r\nThe Prometheus alertmanager can be accessed via port 80 on the following DNS name from within your cluster:\r\nprometheus-for-amp-alertmanager.prometheus.svc.cluster.local\r\n\r\n\r\nGet the Alertmanager URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=alertmanager\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9093\r\n#################################################################################\r\n######   WARNING: Pod Security Policy has been moved to a global property.  #####\r\n######            use .Values.podSecurityPolicy.enabled with pod-based      #####\r\n######            annotations                                               #####\r\n######            (e.g. .Values.nodeExporter.podSecurityPolicy.annotations) #####\r\n#################################################################################\r\n\r\n\r\nThe Prometheus PushGateway can be accessed via port 9091 on the following DNS name from within your cluster:\r\nprometheus-for-amp-pushgateway.prometheus.svc.cluster.local\r\n\r\n\r\nGet the PushGateway URL by running these commands in the same shell:\r\n  export POD_NAME=$(kubectl get pods --namespace prometheus -l \"app=prometheus,component=pushgateway\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n  kubectl --namespace prometheus port-forward $POD_NAME 9091\r\n\r\nFor more information on running Prometheus, visit:\r\nhttps:\/\/prometheus.io\/\r\n<\/code><\/pre>\n<p>\u67e5\u770b\u5df2\u90e8\u7f72\u7684\u5185\u5bb9\u540e\uff0c\u53ea\u6709Prometheus\u670d\u52a1\u5668\u8fdb\u884c\u4e86\u91cd\u65b0\u90e8\u7f72\u3002<\/p>\n<pre class=\"post-pre\"><code>$ k get po -n prometheus\r\nNAME                                                    READY   STATUS              RESTARTS   AGE\r\nprometheus-for-amp-alertmanager-5cb9f4478c-km4ht        2\/2     Running             0          7m10s\r\nprometheus-for-amp-kube-state-metrics-bc9cb958f-l7p7k   1\/1     Running             0          7m10s\r\nprometheus-for-amp-node-exporter-69qsw                  1\/1     Running             0          7m11s\r\nprometheus-for-amp-node-exporter-bg4ss                  1\/1     Running             0          7m10s\r\nprometheus-for-amp-node-exporter-fs74x                  1\/1     Running             0          7m10s\r\nprometheus-for-amp-pushgateway-56ff9d9d99-4z2sf         1\/1     Running             0          7m10s\r\nprometheus-for-amp-server-0                             0\/3     ContainerCreating   0          17s\r\n<\/code><\/pre>\n<p>\u5f53\u4ed4\u7ec6\u786e\u8ba4\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u9644\u5e26\u4e86\u8fb9\u8f66\u5bb9\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>$ k describe po prometheus-for-amp-server-0  -n prometheus\r\nName:         prometheus-for-amp-server-0\r\n\r\n...\r\n\r\nContainers:\r\n  prometheus-server-configmap-reload:\r\n    Container ID:  docker:\/\/51f6c62b778acb9b6c895b7dc6f14efe54f9747ed07936206be487fe4227a2ef\r\n    Image:         jimmidyson\/configmap-reload:v0.4.0\r\n\r\n...\r\n\r\n  prometheus-server:\r\n    Container ID:  docker:\/\/35840c35fcad0428b5568f469cd2e28209cda1eab52dc135bee1a1d8693546d7\r\n    Image:         quay.io\/prometheus\/prometheus:v2.22.1\r\n\r\n...\r\n\r\n  aws-sigv4-proxy-sidecar:\r\n    Container ID:  docker:\/\/6897c52c5114bee6886e254c8c526c80ce2f94fcd807ae202f4b5491bbbc6bdb\r\n    Image:         public.ecr.aws\/aws-observability\/aws-sigv4-proxy:1.0\r\n\r\n...\r\n\r\n\r\nEvents:\r\n  Type    Reason                  Age   From                                                    Message\r\n  ----    ------                  ----  ----                                                    -------\r\n  Normal  Scheduled               50s   default-scheduler                                       Successfully assigned prometheus\/prometheus-for-amp-server-0 to ip-10-0-44-92.ap-northeast-1.compute.internal\r\n  Normal  SuccessfulAttachVolume  47s   attachdetach-controller                                 AttachVolume.Attach succeeded for volume \"pvc-c1a0ad74-fe75-4646-86d8-61c51e320f87\"\r\n  Normal  Pulling                 40s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Pulling image \"jimmidyson\/configmap-reload:v0.4.0\"\r\n  Normal  Pulled                  35s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Successfully pulled image \"jimmidyson\/configmap-reload:v0.4.0\"\r\n  Normal  Created                 35s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Created container prometheus-server-configmap-reload\r\n  Normal  Started                 35s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Started container prometheus-server-configmap-reload\r\n  Normal  Pulling                 35s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Pulling image \"quay.io\/prometheus\/prometheus:v2.22.1\"\r\n  Normal  Pulled                  24s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Successfully pulled image \"quay.io\/prometheus\/prometheus:v2.22.1\"\r\n  Normal  Created                 23s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Created container prometheus-server\r\n  Normal  Started                 23s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Started container prometheus-server\r\n  Normal  Pulling                 23s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Pulling image \"public.ecr.aws\/aws-observability\/aws-sigv4-proxy:1.0\"\r\n  Normal  Pulled                  19s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Successfully pulled image \"public.ecr.aws\/aws-observability\/aws-sigv4-proxy:1.0\"\r\n  Normal  Created                 19s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Created container aws-sigv4-proxy-sidecar\r\n  Normal  Started                 19s   kubelet, ip-10-0-44-92.ap-northeast-1.compute.internal  Started container aws-sigv4-proxy-sidecar\r\n<\/code><\/pre>\n<h1>Grafana \u7684\u90e8\u7f72<\/h1>\n<p>\u90a3\u4e48\uff0c\u8ba9\u6211\u4eec\u6765\u786e\u8ba4\u4e00\u4e0b\u662f\u5426\u5df2\u7ecf\u6210\u529f\u5c06\u6307\u6807\u6570\u636e\u6295\u5165\u5230 Amazon Managed Service for Prometheus \u4e2d\u3002<br \/>\n\u7531\u4e8e\u5c1a\u672a\u7ecf\u8fc7 Amazon Managed Service for Grafana \u7684\u9884\u89c8\u7533\u8bf7\uff0c\u6211\u4eec\u5c06\u90e8\u7f72 Grafana\u3002<\/p>\n<pre class=\"post-pre\"><code>$helm repo add grafana https:\/\/grafana.github.io\/helm-charts\r\n\"grafana\" has been added to your repositories\r\n\r\n$kubectl create ns grafana\r\nnamespace\/grafana created\r\n\r\n$helm install grafana-for-amp grafana\/grafana -n grafana\r\nNAME: grafana-for-amp\r\nLAST DEPLOYED: Thu Dec 17 13:08:08 2020\r\nNAMESPACE: grafana\r\nSTATUS: deployed\r\nREVISION: 1\r\nNOTES:\r\n1. Get your 'admin' user password by running:\r\n\r\n   kubectl get secret --namespace grafana grafana-for-amp -o jsonpath=\"{.data.admin-password}\" | base64 --decode ; echo\r\n\r\n2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster:\r\n\r\n   grafana-for-amp.grafana.svc.cluster.local\r\n\r\n   Get the Grafana URL to visit by running these commands in the same shell:\r\n\r\n     export POD_NAME=$(kubectl get pods --namespace grafana -l \"app.kubernetes.io\/name=grafana,app.kubernetes.io\/instance=grafana-for-amp\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n     kubectl --namespace grafana port-forward $POD_NAME 3000\r\n\r\n3. Login with the password from step 1 and the username: admin\r\n#################################################################################\r\n######   WARNING: Persistence is disabled!!! You will lose your data when   #####\r\n######            the Grafana pod is terminated.                            #####\r\n#################################################################################\r\n<\/code><\/pre>\n<p>\u4e0e Prometheus \u7684\u60c5\u51b5\u7c7b\u4f3c\uff0c\u90e8\u7f72 AWS signing \u4ee3\u7406\uff08\u8bf7\u53c2\u8003\u535a\u5ba2\uff0c\u56e0\u4e3a Amazon Managed Service for Prometheus \u7684\u7ba1\u7406\u63a7\u5236\u53f0\u4e2d\u6ca1\u6709\u6240\u9700\u7684 YAML \u6587\u4ef6\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>$ helm upgrade --install grafana-for-amp grafana\/grafana -n grafana -f .\/amp_query_override_values.yaml\r\nRelease \"grafana-for-amp\" has been upgraded. Happy Helming!\r\nNAME: grafana-for-amp\r\nLAST DEPLOYED: Thu Dec 17 13:08:47 2020\r\nNAMESPACE: grafana\r\nSTATUS: deployed\r\nREVISION: 2\r\nNOTES:\r\n1. Get your 'admin' user password by running:\r\n\r\n   kubectl get secret --namespace grafana grafana-for-amp -o jsonpath=\"{.data.admin-password}\" | base64 --decode ; echo\r\n\r\n2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster:\r\n\r\n   grafana-for-amp.grafana.svc.cluster.local\r\n\r\n   Get the Grafana URL to visit by running these commands in the same shell:\r\n\r\n     export POD_NAME=$(kubectl get pods --namespace grafana -l \"app.kubernetes.io\/name=grafana,app.kubernetes.io\/instance=grafana-for-amp\" -o jsonpath=\"{.items[0].metadata.name}\")\r\n     kubectl --namespace grafana port-forward $POD_NAME 3000\r\n\r\n3. Login with the password from step 1 and the username: admin\r\n#################################################################################\r\n######   WARNING: Persistence is disabled!!! You will lose your data when   #####\r\n######            the Grafana pod is terminated.                            #####\r\n#################################################################################\r\n<\/code><\/pre>\n<p>\u5b8c\u6210\u90e8\u7f72\u540e\uff0c\u9996\u5148\u786e\u8ba4Grafana POD\u7684\u540d\u79f0\uff0c\u7136\u540e\u4f7f\u7528kubectl port-forward\u547d\u4ee4\u5728\u672c\u5730\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u3002\uff08\u6211\u5728Cloud9\u4e0a\u6267\u884c\uff0c\u6240\u4ee5\u5c06\u5176\u8f6c\u53d1\u52308080\u7aef\u53e3\u3002\uff09<\/p>\n<pre class=\"post-pre\"><code>$ k get po -n grafana\r\nNAME                               READY   STATUS    RESTARTS   AGE\r\ngrafana-for-amp-79d5454dbc-ghhp8   1\/1     Running   0          3h42m\r\n$ kubectl port-forward -n grafana pods\/grafana-for-amp-79d5454dbc-ghhp8 8080:3000\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/78-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5982\u679c\u8fdb\u5c55\u987a\u5229\uff0c\u767b\u5f55\u754c\u9762\u5c06\u5982\u4e0a\u6240\u793a\u5448\u73b0\u3002<br \/>\n\u5bc6\u7801\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8ff0\u6307\u4ee4\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ kubectl get secrets grafana-for-amp -n grafana -o jsonpath='{.data.admin-password}'|base64 --decode\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/81-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u4e00\u65e6\u767b\u5f55Grafana\u540e\uff0c\u5c06\u8fdb\u884cPrometheus\u7684\u914d\u7f6e\u3002<br \/>\n\u8bf7\u5728Grafana\u9875\u9762\u5de6\u4fa7\u70b9\u51fb\u9f7f\u8f6e\u56fe\u6807\uff0c\u9009\u62e9&#8221;\u6570\u636e\u6e90&#8221;\uff0c\u7136\u540e\u9009\u62e9&#8221;Prometheus&#8221;\u3002<br \/>\n\u7136\u540e\uff0c\u5c06\u4f1a\u51fa\u73b0\u5982\u4e0a\u6240\u793a\u7684\u753b\u9762\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">HTTP &gt; URL: Amazon Managed Service for Prometheus \u306e\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u306e Endpoint &#8211; query URL<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Auth &gt; SigV4 auth: ON<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">SigV4 Auth Details &gt; Authentication Provider: AWS SDK Default<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">SigV4 Auth Details &gt; Default Region: us-east-1<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/84-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u5728Grafana\u9875\u9762\u7684\u5e95\u90e8\uff0c\u50cf\u4e0a\u9762\u7684\u56fe\u7247\u4e00\u6837\u627e\u5230\u4e00\u4e2a\u540d\u4e3a\u201c\u4fdd\u5b58\u5e76\u6d4b\u8bd5\u201d\u7684\u6309\u94ae\uff0c\u5355\u51fb\u5b83\uff0c\u5982\u679c\u51fa\u73b0\u201c\u6570\u636e\u6e90\u6b63\u5e38\u5de5\u4f5c\u201d\u7684\u63d0\u793a\uff0c\u8868\u793a\u8bbe\u7f6e\u5df2\u5b8c\u6210\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/86-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u6211\u5011\u5c07\u5be6\u969b\u67e5\u8a62\u6307\u6a19\u6578\u64da\u3002<br \/>\n\u5728Grafana\u9801\u9762\u7684\u5de6\u5074\uff0c\u9ede\u64ca\u6307\u5357\u91dd\u5716\u6a19\u3002<br \/>\n\u5728&#8221;Metrics&#8221;\u53f3\u908a\u8f38\u5165\u8981\u67e5\u8a62\u7684\u6307\u6a19\u540d\u7a31\uff0c\u7136\u5f8c\u9ede\u64ca\u53f3\u4e0a\u89d2\u7684\u6309\u9215\uff0c\u5716\u8868\u5c07\u6703\u986f\u793a\u51fa\u4f86\u3002<\/p>\n<h1>\u4ee5\u540e\u6211\u60f3\u5c1d\u8bd5\u7684\u4e8b\u60c5<\/h1>\n<p>\u6211\u53ea\u662f\u7b80\u5355\u5730\u6d4f\u89c8\u4e86\u4e00\u4e0b\uff0c\u6240\u4ee5\u6211\u60f3\u589e\u52a0\u4e00\u4e9b\u5ea6\u91cf\u6807\u51c6\uff0c\u5e76\u6bd4\u8f83\u81ea\u5df1\u5efa\u7acb\u7684 Prometheus \u73af\u5883\u548c\u67e5\u8be2\u901f\u5ea6\uff0c\u8fd8\u60f3\u8fdb\u884c\u8d39\u7528\u6210\u672c\u7684\u6bd4\u8f83\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u539f\u6587\u4e2d\u6307\u51fa\u4e86\u5bf9\u4e8e\u81ea\u6709\u7684Prometheus\u7684\u8981\u6c42\uff0c\u5e0c\u671b\u901a\u8fc7\u4e92\u8054\u7f51\u786e\u4fdd\u4e00\u5b9a\u7684\u5b89\u5168\u6027\u5e76\u5b58\u50a8\u548c\u67e5\u8be2\u6307\u6807\u3002\u8fd9\u662f\u4e3a\u4e86\u5728\u91d1\u4e1d\u96c0\u53d1\u5e03\u4e2d\u4f7f\u7528Spinnaker\u7684\u91d1\u4e1d\u96c0\u5206\u6790\u5de5\u5177Kayenta\uff0c\u5e76\u5229\u7528Prometheus\u7684\u6307\u6807\u3002\u56e0\u6b64\uff0c\u6211\u5e0c\u671b\u5728\u5c06\u6765\u80fd\u591f\u9a8c\u8bc1\u5728\u4f7f\u7528kayenta\u65f6\u662f\u5426\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\uff0c\u4ee5\u53ca\u6211\u6b63\u5728\u4f7f\u7528Istio\uff0c\u56e0\u6b64\u662f\u5426\u53ef\u4ee5\u540c\u65f6\u4f7f\u7528Istio\u4ee3\u7406\u548cAWS\u7b7e\u540d\u4ee3\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(2021\u5e749\u670830\u65e5 \u8ffd\u8a18) Amazon Managed Service for Prometheus \u8fdb [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43235","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684prometheus\u670d\u52a1\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1\" \/>\n<meta property=\"og:description\" content=\"(2021\u5e749\u670830\u65e5 \u8ffd\u8a18) Amazon Managed Service for Prometheus \u8fdb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684prometheus\u670d\u52a1\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-14T09:14:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T18:40:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/41-0.png\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/\",\"name\":\"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-14T09:14:31+00:00\",\"dateModified\":\"2024-05-03T18:40:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684prometheus\u670d\u52a1\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1","og_description":"(2021\u5e749\u670830\u65e5 \u8ffd\u8a18) Amazon Managed Service for Prometheus \u8fdb [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684prometheus\u670d\u52a1\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-14T09:14:31+00:00","article_modified_time":"2024-05-03T18:40:26+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d50f137434c4406cc81b8\/41-0.png"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"9 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/","name":"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-14T09:14:31+00:00","dateModified":"2024-05-03T18:40:26+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u6765\u8bd5\u8bd5\u4e9a\u9a6c\u900a\u6258\u7ba1\u7684Prometheus\u670d\u52a1"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e6%9d%a5%e8%af%95%e8%af%95%e4%ba%9a%e9%a9%ac%e9%80%8a%e6%89%98%e7%ae%a1%e7%9a%84prometheus%e6%9c%8d%e5%8a%a1%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=43235"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43235\/revisions"}],"predecessor-version":[{"id":95618,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43235\/revisions\/95618"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}