{"id":704,"date":"2021-02-06T09:30:47","date_gmt":"2021-02-06T00:30:47","guid":{"rendered":"https:\/\/lab4ict.com\/website\/?p=704"},"modified":"2024-02-08T07:12:09","modified_gmt":"2024-02-07T22:12:09","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e7%a8%bc%e5%83%8d%e7%9b%a3%e8%a6%96%e3%82%92%e8%a1%8c%e3%81%86%ef%bc%81%ef%bc%88ubuntu-20-04%ef%bc%8fmackerel%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/website\/articles\/704","title":{"rendered":"\u30b5\u30fc\u30d0\u306e\u7a3c\u50cd\u76e3\u8996\u3092\u884c\u3046\uff01\uff08Ubuntu 20.04\uff0fMackerel\uff09"},"content":{"rendered":"<p>\u30b5\u30fc\u30d0\u306e\u7a3c\u50cd\u76e3\u8996\u3092SaaS\u578b\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u30b5\u30fc\u30d3\u30b9\uff08Mackerel\uff09\u3067\u884c\u3044\u307e\u3059\u3002SaaS\u578b\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u30b5\u30fc\u30d3\u30b9\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u76e3\u8996\u306e\u958b\u59cb\u304c\u5bb9\u6613\u306b\u59cb\u3081\u3089\u308c\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>Mackerel\u306b\u30e6\u30fc\u30b6\u767b\u9332\u3092\u884c\u3046\uff01<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3067\u30e6\u30fc\u30b6\u767b\u9332\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/mackerel.io\/\" target=\"_blank\" rel=\"noopener\">Mackerel\uff08\u30de\u30ab\u30ec\u30eb\uff09<\/a><\/li>\n<\/ul>\n<h2>\u30b5\u30fc\u30d0\u306b\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01<\/h2>\n<p>\u30b5\u30fc\u30d0\u306bMackerel\u306e\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u30e6\u30fc\u30b6\u767b\u9332\u3057\u305f\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u304b\u3089APIKEY\u3092\u78ba\u8a8d\u3059\u308c\u3070\u3001\u30b3\u30de\u30f3\u30c9\uff11\u56de\u3067Ubuntu\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ wget -q -O - https:\/\/mackerel.io\/file\/script\/setup-all-apt-v2.sh | MACKEREL_APIKEY='&lt;APIKEY&gt;' sh\r\nSuperuser authority is required to setup Mackerel agent:\r\n&#x5B;sudo] password for sysadm00: \r\n+ command -v curl\r\n\/usr\/bin\/curl\r\n+ http_get=curl -LfsS\r\n+ &#x5B; curl -LfsS =  ]\r\n+ echo deb &#x5B;arch=amd64,arm64] http:\/\/apt.mackerel.io\/v2\/ mackerel contrib\r\n+ curl -LfsS https:\/\/mackerel.io\/file\/cert\/GPG-KEY-mackerel-v2\r\n+ apt-key add -\r\nOK\r\n+ apt-get update -qq\r\n+ apt-get install -y mackerel-agent\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nThe following package was automatically installed and is no longer required:\r\n  unzip\r\nUse 'sudo apt autoremove' to remove it.\r\nThe following NEW packages will be installed:\r\n  mackerel-agent\r\n0 upgraded, 1 newly installed, 0 to remove and 94 not upgraded.\r\nNeed to get 2,104 kB of archives.\r\nAfter this operation, 6,613 kB of additional disk space will be used.\r\nGet:1 http:\/\/apt.mackerel.io\/v2 mackerel\/contrib amd64 mackerel-agent amd64 0.71.1-1.systemd &#x5B;2,104 kB]\r\nFetched 2,104 kB in 0s (17.1 MB\/s)       \r\nSelecting previously unselected package mackerel-agent.\r\n(Reading database ... 115365 files and directories currently installed.)\r\nPreparing to unpack ...\/mackerel-agent_0.71.1-1.systemd_amd64.deb ...\r\nUnpacking mackerel-agent (0.71.1-1.systemd) ...\r\nSetting up mackerel-agent (0.71.1-1.systemd) ...\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/mackerel-agent.service \u2192 \/lib\/systemd\/system\/mackerel-agent.service.\r\n+ mackerel-agent init -apikey=&lt;APIKEY&gt;\r\n+ systemctl start mackerel-agent\r\n*************************************\r\n\r\n     Done! Welcome to Mackerel!\r\n\r\n*************************************\r\n<\/pre>\n<h2>\u76e3\u8996\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Mackerel\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u7279\u306b\u4f55\u3082\u3057\u306a\u304f\u3066\u3082\u3001CPU\u4f7f\u7528\u7387\u3001\u30e1\u30e2\u30ea\u4f7f\u7528\u7387\u3001\u30c7\u30a3\u30b9\u30af\u4f7f\u7528\u7387\u3068\u30b5\u30fc\u30d0\u306e\u751f\u5b58\u76e3\u8996\u304c\u958b\u59cb\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01.jpg\" alt=\"\" width=\"1024\" height=\"1332\" class=\"alignnone size-full wp-image-711\" srcset=\"https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01.jpg 1024w, https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01-231x300.jpg 231w, https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01-787x1024.jpg 787w, https:\/\/lab4ict.com\/website\/wp-content\/uploads\/2021\/02\/mackerel_01-768x999.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>SaaS\u578b\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3059\u308c\u3070\u3001\u7c21\u5358\u306b\u30b5\u30fc\u30d0\u72b6\u614b\u306e\u76e3\u8996\u3092\u958b\u59cb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u306e\u7a3c\u50cd\u76e3\u8996\u3092SaaS\u578b\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u30b5\u30fc\u30d3\u30b9\uff08Mackerel\uff09\u3067\u884c\u3044\u307e\u3059\u3002SaaS\u578b\u30b5\u30fc\u30d0\u30fc\u76e3\u8996\u30b5\u30fc\u30d3\u30b9\u306e\u30e1\u30ea\u30c3\u30c8\u306f\u3001\u76e3\u8996\u306e\u958b\u59cb\u304c\u5bb9\u6613\u306b\u59cb\u3081\u3089\u308c\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-704","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server-administration"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/704","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/comments?post=704"}],"version-history":[{"count":11,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/704\/revisions"}],"predecessor-version":[{"id":3089,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/posts\/704\/revisions\/3089"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/media?parent=704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/categories?post=704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/website\/wp-json\/wp\/v2\/tags?post=704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}