{"id":2563,"date":"2021-02-27T10:32:26","date_gmt":"2021-02-27T01:32:26","guid":{"rendered":"https:\/\/blue-bear.jp\/kb\/?p=2563"},"modified":"2021-02-27T10:32:26","modified_gmt":"2021-02-27T01:32:26","slug":"aws-cloudwatch%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e6%95%b0%e3%81%aa%e3%81%a9%e3%81%ae%e7%8a%b6%e6%b3%81%e3%82%92","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/aws-cloudwatch%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%83%97%e3%83%ad%e3%82%bb%e3%82%b9%e6%95%b0%e3%81%aa%e3%81%a9%e3%81%ae%e7%8a%b6%e6%b3%81%e3%82%92\/","title":{"rendered":"[aws] cloudwatch\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u306e\u30d7\u30ed\u30bb\u30b9\u6570\u306a\u3069\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>AWS\u306ecloudwatch\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30b5\u30fc\u30d0\u306eCPU\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u306a\u3069\u3092\u53d6\u5f97\u3057\u3066\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u304c\u3001\u5b9f\u306f\u30b5\u30fc\u30d0\u306e\u30d7\u30ed\u30bb\u30b9\u6570\u306a\u3069\u306e\u72b6\u6cc1\u3082\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<p>Cloudwatch\u306e\u8a2d\u5b9a\u306fSystemManager\u304b\u3089Push\u3059\u308b\u306e\u3067\u3001SystemManager\u306e\u8a2d\u5b9a\u3068Cloudwatch\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u304a\u304f\u3053\u3068<\/p>\n<p><a href=\"https:\/\/blue-bear.jp\/kb\/aws-systemmanager%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6cloudwatch%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\">[aws] SystemManager\u3092\u4f7f\u7528\u3057\u3066cloudwatch\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<h2>SystemManager\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30b9\u30c8\u30a2\u4e0a\u306b\u3042\u308bCloudwatch\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6<\/h2>\n<p>SystemManager\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30b9\u30c8\u30a2\u4e0a\u306b\u3042\u308bCloudwatch\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9<\/p>\n<p id=\"VBBxEGU\"><img loading=\"lazy\" decoding=\"async\" width=\"2284\" height=\"546\" class=\"alignnone size-full wp-image-2564 \" src=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6.png\" alt=\"\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6.png 2284w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6-300x72.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6-1024x245.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6-768x184.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6-1536x367.png 1536w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399eb234fd6-2048x490.png 2048w\" sizes=\"(max-width: 2284px) 100vw, 2284px\" \/><\/p>\n<p>\u7de8\u96c6\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p id=\"KsGvpVI\"><img loading=\"lazy\" decoding=\"async\" width=\"2304\" height=\"164\" class=\"alignnone size-full wp-image-2565 \" src=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51.png\" alt=\"\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51.png 2304w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51-300x21.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51-1024x73.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51-768x55.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51-1536x109.png 1536w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399ed186b51-2048x146.png 2048w\" sizes=\"(max-width: 2304px) 100vw, 2304px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u5024\u306e\u6b04\u306b\u53ce\u96c6\u3055\u308c\u308b\u30e1\u30c8\u30ea\u30c3\u30af\u306a\u3069\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067<\/p>\n<p>&#8220;metrics_collected&#8221;: {\u306e\u76f4\u4e0b\u306b<\/p>\n<pre>\"procstat\": [\r\n {\r\n  \"pattern\": \"mysqld\",\r\n  \"measurement\": [\r\n   \"pid_count\"\r\n  ]\r\n },\r\n {\r\n  \"pattern\": \"php-fpm\",\r\n  \"measurement\": [\r\n   \"pid_count\"\r\n  ]\r\n },\r\n {\r\n  \"pattern\": \"apache\",\r\n  \"measurement\": [\r\n   \"pid_count\"\r\n  ]\r\n }\r\n],<\/pre>\n<p>\u3092\u8ffd\u8a18\u3059\u308b<\/p>\n<p>\u4e0a\u8a18\u306f\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u306b\u4f7f\u7528\u3059\u308b\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u300cmysqld\u300d\u300cphp-fpm\u300d\u300capache\u300d\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u305d\u308c\u305e\u308c\u306e\u30d7\u30ed\u30bb\u30b9\u6570\uff08pid_count\uff09\u3092\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>\u4e0a\u8a18\u306epattern\u306e\u90e8\u5206\u306f\u300cexe\uff08\u30d7\u30ed\u30bb\u30b9\u540d\uff09\u300d\u3084\u300cpid_file\uff08\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u540d\uff09\u300d\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u53d6\u5f97\u3067\u304d\u308b\u60c5\u5831\u3082\u300cpid_count\u300d\u3060\u3051\u3067\u306a\u304f\u3001\u305d\u308c\u305e\u308c\u306e\u30d7\u30ed\u30bb\u30b9\u306eCPU\u4f7f\u7528\u7387\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u3001\u30d7\u30ed\u30bb\u30b9ID\u306a\u3069\u3082\u53d6\u5f97\u3067\u304d\u308b<\/p>\n<p>&nbsp;<\/p>\n<p>\u53d6\u5f97\u3067\u304d\u308b\u30e1\u30c8\u30ea\u30c3\u30af\u30b9\u306f<\/p>\n<p><a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudWatch\/latest\/monitoring\/CloudWatch-Agent-procstat-process-metrics.html\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/docs.aws.amazon.com\/ja_jp\/AmazonCloudWatch\/latest\/monitoring\/CloudWatch-Agent-procstat-process-metrics.html<\/a><\/p>\n<p>\u3092\u53c2\u7167\u306e\u3053\u3068<\/p>\n<p>&nbsp;<\/p>\n<h2>Cloudwatch\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092Push<\/h2>\n<p>SystemManager\u306eRun Command\u3092\u4f7f\u7528\u3057\u3066Cloudwatch\u306b\u5148\u7a0b\u4f5c\u6210\u3057\u305f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u6d41\u3057\u8fbc\u3080<\/p>\n<p>SystemManager\u3092\u958b\u304d\u3001Run Command\u3092\u9078\u629e\u3001\u3055\u3089\u306bRun Command\u3092\u9078\u629e<\/p>\n<p>\u691c\u7d22\u7a93\u306bAmazonCloudWatch-ManageAgent\u3092\u5165\u529b\u3057\u3001\u9078\u629e<\/p>\n<p id=\"xQIVmsv\"><img loading=\"lazy\" decoding=\"async\" width=\"1868\" height=\"402\" class=\"alignnone size-full wp-image-2560 \" src=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c.png\" alt=\"\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c.png 1868w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c-300x65.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c-1024x220.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c-768x165.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d455596c-1536x331.png 1536w\" sizes=\"(max-width: 1868px) 100vw, 1868px\" \/><\/p>\n<p>\u5b9f\u884c\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u300cOptional Configuration Location\u300d\u306e\u9805\u76ee\u306b\u5148\u7a0b\u4fdd\u5b58\u3057\u305fCloudwatch\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a<\/p>\n<p id=\"QYYFtlT\"><img loading=\"lazy\" decoding=\"async\" width=\"1912\" height=\"1050\" class=\"alignnone size-full wp-image-2561 \" src=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2.png\" alt=\"\" srcset=\"https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2.png 1912w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2-300x165.png 300w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2-1024x562.png 1024w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2-768x422.png 768w, https:\/\/blue-bear.jp\/kb\/wp-content\/uploads\/2021\/02\/img_60399d9342ed2-1536x844.png 1536w\" sizes=\"(max-width: 1912px) 100vw, 1912px\" \/><\/p>\n<p>\u3042\u3068\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u9078\u629e\u3057\u3066\u3001\u5b9f\u884c\u3092\u30af\u30ea\u30c3\u30af<\/p>\n<p>&nbsp;<\/p>\n<h2>Cloudwatch\u3067\u30e1\u30c8\u30ea\u30af\u30b9\u78ba\u8a8d<\/h2>\n<p>Cloudwatch\u304c\u6b63\u5e38\u306b\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53ce\u96c6\u3057\u3066\u304f\u308c\u3066\u3044\u308c\u3070\u3001Cloudwatch\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u306f\u305a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AWS\u306ecloudwatch\u3092\u4f7f\u7528\u3059\u308b\u3053<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[216,242],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2563"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=2563"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2563\/revisions"}],"predecessor-version":[{"id":2566,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/2563\/revisions\/2566"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}