{"id":43458,"date":"2023-11-20T07:54:05","date_gmt":"2023-01-26T02:55:44","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/"},"modified":"2024-05-04T09:57:27","modified_gmt":"2024-05-04T01:57:27","slug":"%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/","title":{"rendered":"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c"},"content":{"rendered":"<h1>\u6982\u8ff0<\/h1>\n<p>\u53bb\u5e74\uff0cCloudWatch Agent\uff08\u4ee5\u4e0b\u7b80\u79f0CWA\uff09\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c<br \/>\n\u589e\u52a0\u4e86\u4ecePrometheus\u7684Exporter\u6536\u96c6\u6307\u6807\uff0c\u5e76\u5c06\u5176\u63a8\u9001\u5230CloudWatch\u7684\u529f\u80fd\u3002<br \/>\n\u53c2\u8003\uff1a\u4f7f\u7528Amazon CloudWatch\u4e0a\u7684Prometheus\u6307\u6807\u3002<\/p>\n<p>\u901a\u8fc7\u8fd9\u4e00\u6539\u8fdb\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u901a\u8fc7CWA\u7684\u6807\u51c6\u529f\u80fd\u6536\u96c6\u6307\u6807\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u73b0\u6709\u7684Prometheus Exporter\u8fdb\u884c\u6536\u96c6\uff0c\u8fdb\u4e00\u6b65\u5c06\u5176\u805a\u5408\u5230CloudWatch\u4e2d\u3002<br \/>\n\u5728\u4e0a\u8ff0\u53c2\u8003\u94fe\u63a5\u4e2d\uff0c\u4ecb\u7ecd\u4e86\u5728EKS\u4e0a\u90e8\u7f72CWA\uff0c\u5e76\u4ece\u5185\u90e8\u5404\u79cd\u5bb9\u5668\u4e2d\u6536\u96c6\u6307\u6807\u7684\u65b9\u6cd5\u3002<br \/>\n\u8fd9\u6837\u505a\u53ef\u80fd\u4f1a\u8ba9\u4eba\u89c9\u5f97\u53ea\u9002\u7528\u4e8eEKS\uff0c\u4f46\u5b9e\u9645\u4e0a\u540c\u6837\u9002\u7528\u4e8e\u4efb\u4f55\u4e0eEKS\u65e0\u5173\u7684\u73af\u5883\uff0c\u5305\u62ec\u672c\u5730\u73af\u5883\u7b49\u3002<br \/>\n\u867d\u7136\u975e\u5e38\u7b80\u5355\uff0c\u4f46\u9996\u5148\u4ecb\u7ecd\u9002\u7528\u4e8e\u4efb\u4f55\u4e0eEKS\u65e0\u5173\u7684\u65b9\u6cd5\u3002<br \/>\n\u867d\u7136\u672c\u6587\u7684\u6807\u9898\u5199\u7740\u672c\u5730\u73af\u5883\uff0c\u4f46\u603b\u7684\u6765\u8bf4\u5c31\u662f\u9664\u4e86EKS\u4ee5\u5916\u7684\u73af\u5883\u90fd\u53ef\u4ee5\u3002<\/p>\n<p>\u6700\u8fd1\uff0c\u6211\u5728\u5bfb\u627e\u4e00\u79cd\u80fd\u591f\u5728\u73b0\u6709\u7684\u672c\u5730\u73af\u5883\u4e0a\u5229\u7528Prometheus\u8d44\u4ea7\uff0c\u5e76\u4e0eAWS\u7ed3\u5408\u7684\u597d\u65b9\u6cd5\u3002\u56e0\u6b64\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u66f4\u591a\u5730\u662f\u4e3a\u81ea\u5df1\u8bb0\u5f55\u5907\u5fd8\u3002\u975e\u5e38\u62b1\u6b49\u3002<\/p>\n<h1>\u73af\u5883<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">CentOS Linux release 8.3.2011<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">amazon-cloudwatch-agent 1.247346.1b249759<\/ul>\n<p>CWA\u5373\u4f7f\u5728\u8f83\u4f4e\u7248\u672c\u4e5f\u80fd\u8fd0\u884c\uff0c\u4f46\u6211\u4eec\u5728\u672c\u6587\u4e2d\u9a8c\u8bc1\u7684\u7248\u672c\u662f\u8fd9\u4e2a\u7248\u672c\u3002<\/p>\n<h1>\u8bf7\u6ce8\u610f<\/h1>\n<p>\u8a73\u7d30\u306f\u5f8c\u3067\u8aac\u660e\u3057\u307e\u3059\u304c\u3001CWA\u306b\u3088\u3063\u3066 exporter \u304b\u3089\u53ce\u96c6\u3055\u308c\u305f\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u306f\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u3001CloudWatch Logs \u306b\u96c6\u3081\u3089\u308c\u307e\u3059\u3002\u76f4\u63a5\u7684\u306a\u5f62\u3067\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u3068\u3057\u3066\u4fdd\u5b58\u3055\u308c\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u5316\u3059\u308b\u305f\u3081\u306b\u30ed\u30b0\u304b\u3089\u624b\u4f5c\u696d\u3067\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h1>\u6b65\u9aa4<\/h1>\n<h2>\u5b89\u88c5CWA<\/h2>\n<p>\u4ece\u4e0b\u9762\u4e0b\u8f7d\u5e76\u5b89\u88c5\u9002\u5408\u4f60\u7684\u73af\u5883\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<ul class=\"post-ul\">Download and Configure the CloudWatch Agent Using the Command Line<\/ul>\n<p>\u5982\u679c\u662fCentOS\uff0c\u4f60\u53ef\u4ee5\u7528\u8fd9\u4e2a\u3002<br \/>\nhttps:\/\/s3.amazonaws.com\/amazoncloudwatch-agent\/centos\/amd64\/latest\/amazon-cloudwatch-agent.rpm<\/p>\n<pre class=\"post-pre\"><code>$ rpm -Uvh https:\/\/s3.amazonaws.com\/amazoncloudwatch-agent\/centos\/amd64\/latest\/amazon-cloudwatch-agent.rpm\r\n<\/code><\/pre>\n<p>\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u5728\u6700\u521d\u8fdb\u884c\u9a8c\u8bc1\u65f6\uff0c\u53d1\u73b0\u5728rpm\u7b49\u8f6f\u4ef6\u5305\u4e2d\u516c\u5f00\u7684\u7248\u672c\u4e2d\u6ca1\u6709\u5b9e\u65bd\u8fd9\u4e00\u529f\u80fd\u3002<br \/>\n\u6240\u4ee5\u9700\u8981\u4eceGitHub\u4e0a\u516c\u5f00\u7684\u4e0a\u6e38\u6e90\u4ee3\u7801\u4e2d\u8fdb\u884c\u7f16\u8bd1\u3002<br \/>\n\u5728\u64b0\u5199\u672c\u6587\u65f6\u518d\u6b21\u786e\u8ba4\u540e\u53d1\u73b0\uff0c\u5373\u4f7f\u662f\u5728\u516c\u5f00\u7684rpm\u4e2d\u4e5f\u6ca1\u6709\u95ee\u9898\uff0c\u6240\u4ee5\u4ee5\u8be5\u6b65\u9aa4\u8fdb\u884c\u4ecb\u7ecd\u3002<\/p>\n<h2>\u5c06\u9a8c\u8bc1\u7528\u7684\u51fa\u53e3\u5546\u6295\u5165\u8fd0\u8425<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">node_exporter\u3092\u30b3\u30f3\u30c6\u30ca\u3068\u3057\u3066\u8d77\u52d5\u3057\u3066\u304a\u304f<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3042\u3068\u3067CWA\u306b\u3053\u306eexporter\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u53ce\u96c6\u3055\u305b\u3066CloudWatch\u306b\u96c6\u7d04\u3055\u305b\u308b<\/ul>\n<pre class=\"post-pre\"><code>$ docker run -d \\\r\n  --rm \\\r\n  --net=\"host\" \\\r\n  --pid=\"host\" \\\r\n  -v \"\/:\/host:ro,rslave\" \\\r\n  --name node_exporter \\\r\n  quay.io\/prometheus\/node-exporter \\\r\n  --path.rootfs=\/host\r\n<\/code><\/pre>\n<ul class=\"post-ul\">curl\u3067\u52d5\u4f5c\u78ba\u8a8d<\/ul>\n<pre class=\"post-pre\"><code>$ curl localhost:9100\/metrics -s | head\r\n# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.\r\n# TYPE go_gc_duration_seconds summary\r\ngo_gc_duration_seconds{quantile=\"0\"} 0\r\ngo_gc_duration_seconds{quantile=\"0.25\"} 0\r\ngo_gc_duration_seconds{quantile=\"0.5\"} 0\r\ngo_gc_duration_seconds{quantile=\"0.75\"} 0\r\ngo_gc_duration_seconds{quantile=\"1\"} 0\r\ngo_gc_duration_seconds_sum 0\r\ngo_gc_duration_seconds_count 0\r\n# HELP go_goroutines Number of goroutines that currently exist.\r\n<\/code><\/pre>\n<h2>\u51c6\u5907AWS\u7684Config\u548cCredential\u3002<\/h2>\n<p>\u6839\u636e\u81ea\u8eab\u73af\u5883\u9002\u5f53\u51c6\u5907\u3002<\/p>\n<pre class=\"post-pre\"><code>$ cat ~\/.aws\/config\r\n[default]\r\nregion = ap-northeast-1\r\n[profile AmazonCloudWatchAgent]\r\nregion = ap-northeast-1\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ cat ~\/.aws\/credentials\r\n[default]\r\naws_access_key_id = hoge\r\naws_secret_access_key = hogehoge\r\n[AmazonCloudWatchAgent]\r\naws_access_key_id = foo\r\naws_secret_access_key = foobar\r\n<\/code><\/pre>\n<h2>\u914d\u7f6e\u51c6\u5907\u5b8c\u6210<\/h2>\n<p>\u6240\u9700\u7684\u662fCWA\u7684\u914d\u7f6e\u548c\u52a0\u8f7d\u5230CWA\u7684Prometheus\u914d\u7f6e\u3002<br \/>\n\u672c\u6b21\u53ea\u9700\u8981\u6700\u57fa\u672c\u7684\u914d\u7f6e\u3002<\/p>\n<h3>CWA\u914d\u7f6e<\/h3>\n<p>\u5b89\u88c5rpm\u540e\uff0c\u4f1a\u5728\/etc\/amazon\/amazon-cloudwatch-agent\u76ee\u5f55\u4e0b\u521b\u5efaamazon-cloudwatch-agent.d\u5b50\u76ee\u5f55\u3002\u5728\u8be5\u5b50\u76ee\u5f55\u4e0b\uff0c\u653e\u7f6e\u540d\u4e3afile_amazon-cloudwatch-agent.json\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u7531\u4e8e*.json\u53ef\u4ee5\u8bfb\u53d6\u4efb\u4f55json\u6587\u4ef6\uff0c\u56e0\u6b64\u53ef\u4ee5\u968f\u610f\u66f4\u6539\u6587\u4ef6\u540d\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\/etc\/amazon\/amazon-cloudwatch-agent\/amazon-cloudwatch-agent.d\/file_amazon-cloudwatch-agent.json<\/ul>\n<\/li>\n<\/ul>\n<p>\u6700\u4f4e\u9650\u3053\u308c\u3060\u3051\u66f8\u3044\u3066\u3044\u308c\u3070\u52d5\u304f\u3068\u601d\u3046<\/p>\n<p>log_group_name\u306b\u6307\u5b9a\u3057\u305f\u540d\u524d\u3067CloudWatch Logs\u306b\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b (\u4eca\u56de\u306f\u691c\u8a3c\u7528\u9014\u306a\u306e\u3067test)<\/p>\n<p>prometheus_config_path\u306b\u306fPrometheus\u306e\u30b3\u30f3\u30d5\u30a3\u30b0\u30d1\u30b9\u3092\u6307\u5b9a\u3059\u308b (\u5225\u306b\u3069\u3053\u3067\u3082\u826f\u3044)<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span>\r\n  <span class=\"nl\">\"agent\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nl\">\"run_as_user\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"root\"<\/span>\r\n  <span class=\"p\">},<\/span>\r\n  <span class=\"nl\">\"logs\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"nl\">\"metrics_collected\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n      <span class=\"nl\">\"prometheus\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"nl\">\"log_group_name\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"test\"<\/span><span class=\"p\">,<\/span>\r\n        <span class=\"nl\">\"prometheus_config_path\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"\/etc\/prometheusconfig\/prometheus.yaml\"<\/span>\r\n      <span class=\"p\">}<\/span>\r\n    <span class=\"p\">},<\/span>\r\n    <span class=\"nl\">\"force_flush_interval\"<\/span><span class=\"p\">:<\/span> <span class=\"mi\">5<\/span>\r\n  <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<h3>Prometheus\u7684\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u5e76\u4e0d\u662f\u8bf4\u4e0eCWA\u7ec4\u5408\u4f7f\u7528\u5c31\u6709\u7279\u522b\u7684\u4e1c\u897f\u3002\u53ea\u662f\u666e\u901a\u7684Prometheus\u914d\u7f6e\u800c\u5df2\u3002<br \/>\n\u6211\u60f3\u8fd9\u91cc\u53ef\u80fd\u6709\u5176\u4ed6\u4eba\u8fdb\u884c\u4e86\u8be6\u7ec6\u7684\u89e3\u91ca\uff0c\u6240\u4ee5\u6211\u7701\u7565\u4e86\u7ec6\u8282\u3002<br \/>\n\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0cCloudWatch\u4e0a\u7684\u65e5\u5fd7\u6d41\u5c06\u4ee5\u60a8\u5728job_name\u4e2d\u6307\u5b9a\u7684\u540d\u79f0\u521b\u5efa\u3002<br \/>\n\u8fd9\u6b21\u6211\u4eec\u51c6\u5907\u4e86node_exporter\u5e76\u9488\u5bf9\u5176\u8fdb\u884c\u4e86\u914d\u7f6e\u3002\u5728\u5b9e\u9645\u73af\u5883\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u8fdb\u884cService Discovery\u3002<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u9700\u8981\u5728\u8def\u5f84\/etc\/prometheusconfig\/prometheus.yaml\u4e2d\u51c6\u5907\u597d\u7684\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"na\">global<\/span><span class=\"pi\">:<\/span>\r\n  <span class=\"na\">evaluation_interval<\/span><span class=\"pi\">:<\/span> <span class=\"s\">1m<\/span>\r\n  <span class=\"na\">scrape_interval<\/span><span class=\"pi\">:<\/span> <span class=\"s\">1m<\/span>\r\n  <span class=\"na\">scrape_timeout<\/span><span class=\"pi\">:<\/span> <span class=\"s\">10s<\/span>\r\n<span class=\"na\">scrape_configs<\/span><span class=\"pi\">:<\/span>\r\n<span class=\"pi\">-<\/span> <span class=\"na\">job_name<\/span><span class=\"pi\">:<\/span> <span class=\"s1\">'<\/span><span class=\"s\">node_exporter'<\/span>\r\n  <span class=\"na\">sample_limit<\/span><span class=\"pi\">:<\/span> <span class=\"m\">10000<\/span>\r\n  <span class=\"na\">metrics_path<\/span><span class=\"pi\">:<\/span> <span class=\"s\">\/metrics<\/span>\r\n  <span class=\"na\">static_configs<\/span><span class=\"pi\">:<\/span>\r\n  <span class=\"pi\">-<\/span> <span class=\"na\">targets<\/span><span class=\"pi\">:<\/span> <span class=\"pi\">[<\/span><span class=\"s1\">'<\/span><span class=\"s\">localhost:9100'<\/span><span class=\"pi\">]<\/span>\r\n<\/code><\/pre>\n<h2>\u542f\u52a8CWA<\/h2>\n<ul class=\"post-ul\">rpm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3001\u81ea\u52d5\u7684\u306bunit\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u6e08\u307f<\/ul>\n<pre class=\"post-pre\"><code>$ systemctl list-unit-files | grep cloudwatch\r\namazon-cloudwatch-agent.service            disabled\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u8d77\u52d5\u3002\u4e00\u5fdc\u3001\u81ea\u52d5\u8d77\u52d5\u3082\u6709\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/ul>\n<pre class=\"post-pre\"><code>$ systemctl start amazon-cloudwatch-agent\r\n$ systemctl enable amazon-cloudwatch-agent\r\n<\/code><\/pre>\n<h2>\u8bf7\u68c0\u67e5\u65e5\u5fd7\u3002<\/h2>\n<p>\u53ef\u4ee5\u4f7f\u7528journalctl\u547d\u4ee4\u67e5\u770b\u65e5\u5fd7\u3002\u4f46\u662f\uff0c\u8f93\u51fa\u7684\u5185\u5bb9\u5e76\u4e0d\u91cd\u8981\u3002<br \/>\n\u5982\u679c\u51fa\u73b0\u67d0\u79cd\u95ee\u9898\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8\uff0c\u8fd9\u4e2a\u65e5\u5fd7\u5c06\u4e0d\u4f1a\u8f93\u51fa\u6709\u7528\u7684\u4fe1\u606f\uff0c\u51e0\u4e4e\u6ca1\u6709\u4ec0\u4e48\u7528\u5904\u3002<\/p>\n<pre class=\"post-pre\"><code>$ journalctl -xu amazon-cloudwatch-agent\r\n<\/code><\/pre>\n<p>CWA\u7684\u5b9e\u4f53\u5b58\u5728\u4e8e\/opt\/aws\/amazon-cloudwatch-agent\u3002\u65e5\u5fd7\u6587\u4ef6\u88ab\u8f93\u51fa\u5230\u8fd9\u91cc\u3002\u770b\u8fd9\u8fb9\u65b9\u4fbf\u4e00\u4e9b\u3002<br \/>\n\u6bd4\u5982\uff0c\u5c31\u7b97\u6709IAM\u6743\u9650\u95ee\u9898\uff0c\u8fd9\u8fb9\u4e5f\u4f1a\u5b8c\u6574\u8f93\u51fa\uff0c\u6709\u52a9\u4e8e\u6545\u969c\u6392\u9664\u3002<br \/>\n\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0c\u65e5\u5fd7\u8fd8\u53ef\u4ee5\u68c0\u6d4b\u5230\u662f\u5728\u672c\u5730\u73af\u5883\u3002<br \/>\n\u4f3c\u4e4e\u662f\u6839\u636e\u80fd\u5426\u83b7\u53d6\u5143\u6570\u636e\u6765\u5224\u65ad\u7684\uff0c\u5982\u679c\u5728EKS\u4e0a\u8fd0\u884c\uff0c\u5b83\u80fd\u6b63\u786e\u68c0\u6d4b\u5230\u662fEKS\u73af\u5883\u3002<\/p>\n<ul class=\"post-ul\">\/opt\/aws\/amazon-cloudwatch-agent\/logs\/amazon-cloudwatch-agent.log<\/ul>\n<pre class=\"post-pre\"><code>$ cat \/opt\/aws\/amazon-cloudwatch-agent\/logs\/amazon-cloudwatch-agent.log\r\n2021\/01\/03 02:29:34 I! 2021\/01\/03 02:29:34 E! ec2metadata is not available\r\nI! Detected the instance is OnPrem\r\n2021\/01\/03 02:29:34 Reading json config file path: \/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.json ...\r\n\/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.json does not exist or cannot read. Skipping it.\r\n2021\/01\/03 02:29:34 Reading json config file path: \/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.d\/file_amazon-cloudwatch-agent.json ...\r\nValid Json input schema.\r\nI! Detecting runasuser...\r\nGot Home directory: \/root\r\nI! Set home dir Linux: \/root\r\nI! SDKRegionWithCredsMap region:  ap-northeast-1\r\nGot Home directory: \/root\r\nNo csm configuration found.\r\nUnder path : \/logs\/ | Info : Got hostname localhost.localdomain as log_stream_name\r\nNo metric configuration found.\r\nConfiguration validation first phase succeeded\r\n\r\n2021\/01\/03 02:29:34 I! Config has been translated into TOML \/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.toml\r\n2021\/01\/03 02:29:34 Reading json config file path: \/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.json ...\r\n2021\/01\/03 02:29:34 Reading json config file path: \/opt\/aws\/amazon-cloudwatch-agent\/etc\/amazon-cloudwatch-agent.d\/file_amazon-cloudwatch-agent.json ...\r\n2021\/01\/03 02:29:34 I! Detected runAsUser: root\r\n2021\/01\/03 02:29:34 I! Change ownership to root:root\r\n2021-01-03T02:29:34Z I! Starting AmazonCloudWatchAgent 1.247346.1\r\n2021-01-03T02:29:34Z I! Loaded inputs: prometheus_scraper\r\n2021-01-03T02:29:34Z I! Loaded aggregators:\r\n2021-01-03T02:29:34Z I! Loaded processors:\r\n2021-01-03T02:29:34Z I! Loaded outputs: cloudwatchlogs\r\n2021-01-03T02:29:34Z I! Tags enabled: host=localhost.localdomain\r\n2021-01-03T02:29:34Z I! [agent] Config: Interval:1m0s, Quiet:false, Hostname:\"localhost.localdomain\", Flush Interval:1s\r\n2021-01-03T02:29:34Z I! [logagent] starting\r\n2021-01-03T02:29:34Z I! [logagent] found plugin cloudwatchlogs is a log backend\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u4e91\u76d1\u63a7\u4fa7<\/h2>\n<p>\u5982\u679c\u914d\u7f6e\u6b63\u786e\u5e76\u4e14\u80fd\u591f\u4ece\u5bfc\u51fa\u8005\u6536\u96c6\u6307\u6807\uff0c\u5e76\u5c06\u5176\u63a8\u9001\u5230CloudWatch\uff0c\u5219\u5e94\u8be5\u521b\u5efa\u4ee5\u4e0b\u65e5\u5fd7\u7ec4\u548c\u6d41\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/48-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u65e5\u5fd7\u4f1a\u4e0d\u65ad\u79ef\u7d2f\uff0c\u9664\u975e\u505c\u6b62CWA\u6216\u5bfc\u51fa\uff0c\u5426\u5219\u4f1a\u6301\u7eed\u589e\u52a0\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/50-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u53ea\u9700\u8981\u5728\u8fd9\u4e2a\u65e5\u5fd7\u4e0a\u521b\u5efa\u4e00\u4e2a\u5ea6\u91cf\u8fc7\u6ee4\u5668\u3002<br \/>\n\u867d\u7136\u5728\u8fd9\u91cc\u662f\u5c06CPU\u4f7f\u7528\u7387\u8fdb\u884c\u5ea6\u91cf\u5316\uff0c\u4f46\u53ea\u8981\u80fd\u591f\u63a8\u9001\u5230CloudWatch\uff0c\u4efb\u4f55\u5ea6\u91cf\u5316\u90fd\u662f\u53ef\u80fd\u7684\u3002<\/p>\n<p>\u53c2\u8003\uff1a\u8fc7\u6ee4\u5668\u548c\u6a21\u5f0f\u8bed\u6cd5<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/53-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/54-0.png\" alt=\"image.png\" \/><\/div>\n<h1>\u6700\u540e\u7684\u8bdd<\/h1>\n<p>\u76e3\u8996\u548c\u6307\u6807\u6536\u96c6\u4e4b\u7c7b\u7684\u4e1c\u897f\u5f88\u96be\u5bf9\u5427\u3002\u4e0d\u77e5\u9053\u6b63\u786e\u7b54\u6848\u3002<br \/>\n\u4e0d\u8bba\u662f\u4ec0\u4e48\u673a\u5236\u597d\u3001\u4ec0\u4e48\u7cfb\u7edf\u597d\u3001\u4ec0\u4e48\u67b6\u6784\u597d\uff0c\u7edf\u7edf\u90fd\u662f\u96be\u4ee5\u786e\u5b9a\u7684\u3002<br \/>\n\u7531\u4e8e\u672c\u6765\u5c31\u5bf9\u8fd9\u4e2a\u9886\u57df\u4e0d\u719f\u6089\uff0c\u6240\u4ee5\u66f4\u52a0\u4e0d\u6e05\u695a\u3002<br \/>\n\u55ef\uff0c\u53ef\u80fd\u56e0\u4e3a\u73af\u5883\u548c\u670d\u52a1\u7684\u7279\u6027\u7b49\u539f\u56e0\uff0c\u5f88\u96be\u6709\u660e\u786e\u7684\u8bf4\u6cd5\uff0c\u4e5f\u6ca1\u6709\u6b63\u786e\u7b54\u6848\u5427\u3002<br \/>\n\u6700\u8fd1\uff0c\u6211\u89c9\u5f97\u4f7f\u7528Prometheus\u7684\u7528\u6237\u5f88\u591a\u3002<br \/>\n\u5728\u7ee7\u7eed\u4f7f\u7528exporter\u7684\u540c\u65f6\uff0c\u5c06Prometheus\u672c\u4f53\u66ff\u6362\u4e3aCloudWatch&#8230;\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u662f\u4e00\u4e2a\u53ef\u884c\u7684\u9009\u9879\u5427\u3002<\/p>\n<p>\u5728\u5148\u65e5\u7684re:Invent\u5927\u4f1a\u4e0a\uff0cAWS\u5ba3\u5e03\u63a8\u51fa\u4e86\u5168\u6258\u7ba1\u7684Prometheus\uff0c\u975e\u5e38\u4ee4\u4eba\u611f\u5174\u8da3\u3002<br \/>\n\u867d\u7136\u6211\u8fd8\u6ca1\u6709\u5c1d\u8bd5\u8fc7\uff0c\u6240\u4ee5\u5177\u4f53\u7684\u4f18\u7f3a\u70b9\u8fd8\u4e0d\u6e05\u695a\uff0c\u4f46\u770b\u8d77\u6765AWS-Prometheus\u7684\u96c6\u6210\u5e94\u8be5\u5f88\u65b9\u4fbf\uff0c\u5bf9\u6b64\u62b1\u6709\u671f\u5f85\u3002<br \/>\n\u5982\u679c\u80fd\u591f\u719f\u7ec3\u4f7f\u7528\u8fd9\u4e2a\uff0c\u53ef\u80fd\u5c31\u4e0d\u9700\u8981\u518d\u4f7f\u7528\u7c7b\u4f3cCWA\u6536\u96c6\u6570\u636e\u7684\u65b9\u6cd5\u4e86\u3002\u6211\u6253\u7b97\u4ee5\u540e\u8bd5\u8bd5\u770b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8ff0 \u53bb\u5e74\uff0cCloudWatch Agent\uff08\u4ee5\u4e0b\u7b80\u79f0CWA\uff09\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c \u589e\u52a0\u4e86\u4ecePrometheus\u7684Ex [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43458","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>\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c - 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\/\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0ccloudwatch\u4ee3\u7406\u548cprometheus\u7684\u534f\u540c\u5de5\u4f5c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8ff0 \u53bb\u5e74\uff0cCloudWatch Agent\uff08\u4ee5\u4e0b\u7b80\u79f0CWA\uff09\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c \u589e\u52a0\u4e86\u4ecePrometheus\u7684Ex [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0ccloudwatch\u4ee3\u7406\u548cprometheus\u7684\u534f\u540c\u5de5\u4f5c\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-26T02:55:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T01:57:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/48-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/\",\"name\":\"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-26T02:55:44+00:00\",\"dateModified\":\"2024-05-04T01:57:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c - 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\/\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0ccloudwatch\u4ee3\u7406\u548cprometheus\u7684\u534f\u540c\u5de5\u4f5c\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c","og_description":"\u6982\u8ff0 \u53bb\u5e74\uff0cCloudWatch Agent\uff08\u4ee5\u4e0b\u7b80\u79f0CWA\uff09\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c \u589e\u52a0\u4e86\u4ecePrometheus\u7684Ex [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0ccloudwatch\u4ee3\u7406\u548cprometheus\u7684\u534f\u540c\u5de5\u4f5c\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-26T02:55:44+00:00","article_modified_time":"2024-05-04T01:57:27+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d52b037434c4406ccd808\/48-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/","name":"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-26T02:55:44+00:00","dateModified":"2024-05-04T01:57:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728\u672c\u5730\u5316\u73af\u5883\u4e2d\uff0cCloudWatch\u4ee3\u7406\u548cPrometheus\u7684\u534f\u540c\u5de5\u4f5c"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8%e6%9c%ac%e5%9c%b0%e5%8c%96%e7%8e%af%e5%a2%83%e4%b8%ad%ef%bc%8ccloudwatch%e4%bb%a3%e7%90%86%e5%92%8cprometheus%e7%9a%84%e5%8d%8f%e5%90%8c%e5%b7%a5%e4%bd%9c\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43458","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=43458"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43458\/revisions"}],"predecessor-version":[{"id":97637,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43458\/revisions\/97637"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}