{"id":2235,"date":"2015-09-20T00:09:54","date_gmt":"2015-09-19T15:09:54","guid":{"rendered":"http:\/\/tech.akat.info\/?p=2235"},"modified":"2015-09-20T00:19:45","modified_gmt":"2015-09-19T15:19:45","slug":"dstat%e3%81%ae%e5%8f%af%e8%a6%96%e5%8c%96","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2235","title":{"rendered":"dstat\u306e\u53ef\u8996\u5316"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>\u300cdstat\u3092\u30b0\u30e9\u30d5\u5316\u3057\u305f\u3044\u3067\u3059\u300d\u3068Google\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u305f<br \/>\nGoogle\u5148\u751f\u300c<a href=\"http:\/\/so-wh.at\/entry\/2014\/02\/16\/dstat%E3%83%AA%E3%82%A2%E3%83%AB%E3%82%BF%E3%82%A4%E3%83%A0%E3%82%B0%E3%83%A9%E3%83%95%E5%8C%96%E3%83%84%E3%83%BC%E3%83%AB_ddstat_%E3%82%92%E4%BD%9C%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F\">dstat\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b0\u30e9\u30d5\u5316\u30c4\u30fc\u30eb ddstat \u3092\u4f5c\u308a\u307e\u3057\u305f<\/a>\u300d<\/p>\n<h1>Datalog\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<p>\u767b\u9332\u3059\u308b\u3068agent\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u8868\u793a\u3055\u308c\u308b<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414-300x149.png\" alt=\"2015-09-19_174414\" width=\"300\" height=\"149\" class=\"alignnone size-medium wp-image-2240\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414-300x149.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414-1024x510.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414-660x329.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_174414.png 1203w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_181054.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_181054-300x121.png\" alt=\"2015-09-19_181054\" width=\"300\" height=\"121\" class=\"alignnone size-medium wp-image-2239\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_181054-300x121.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_181054-660x266.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_181054.png 952w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu14:\/usr\/local\/src\/UnixBench# DD_API_KEY=2...a bash -c &quot;$(curl -L https:\/\/raw.githubusercontent.com\/DataDog\/dd-agent\/master\/packaging\/datadog-agent\/source\/install_agent.sh)&quot;\r\n...\r\nroot@ubuntu14:\/home\/shimizu# ps afx | grep &#x5B;d]atadog\r\n13042 ?        Ss     0:00 \/opt\/datadog-agent\/embedded\/bin\/python \/opt\/datadog-agent\/bin\/supervisord -c \/etc\/dd-agent\/supervisor.conf --pidfile \/opt\/datadog-agent\/run\/datadog-supervisord.pid\r\n13046 ?        Sl     0:00  \\_ \/opt\/datadog-agent\/embedded\/bin\/python \/opt\/datadog-agent\/agent\/dogstatsd.py --use-local-forwarder\r\n13047 ?        S      0:00  \\_ \/opt\/datadog-agent\/embedded\/bin\/python \/opt\/datadog-agent\/agent\/ddagent.py\r\n13048 ?        S      0:00  \\_ \/opt\/datadog-agent\/embedded\/bin\/python \/opt\/datadog-agent\/agent\/agent.py foreground --use-local-forwarder\r\n<\/pre>\n<h1>ddstat\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu14:\/home\/shimizu# aptitude install gem ruby\r\n...\r\nroot@ubuntu14:\/home\/shimizu# gem install ddstat\r\nFetching: multi_json-1.11.2.gem (100%)\r\nFetching: dogapi-1.20.0.gem (100%)\r\nFetching: ddstat-0.0.5.gem (100%)\r\nSuccessfully installed multi_json-1.11.2\r\nSuccessfully installed dogapi-1.20.0\r\nSuccessfully installed ddstat-0.0.5\r\n3 gems installed\r\n...\r\n\r\nroot@ubuntu14:\/home\/shimizu# ddstat -tclmsdrn 5\r\n----system---- ----total-cpu-usage---- ---load-avg--- ------memory-usage----- ----swap--- -dsk\/total- --io\/total- -net\/total-\r\n     time     |usr sys idl wai hiq siq| 1m   5m  15m | used  buff  cach  free| used  free| read  writ| read  writ| recv  send\r\n19-09 18:22:24|  7  11  81   1   0   0|0.02 0.06 0.09| 397M 42.4M  804M  454M|   0     0 |  59k  181k|1.63  6.29 |   0     0\r\n19-09 18:22:29|  2   0  97   1   0   0|0.02 0.05 0.09| 402M 42.4M  804M  450M|   0     0 |  29k   22k|1.00  1.40 |  43k 8995B\r\n19-09 18:22:34|  2   1  97   0   0   0|0.02 0.05 0.09| 402M 42.4M  804M  449M|   0     0 |   0    22k|   0  3.60 |  42k 8907B\r\n<\/pre>\n<h1>Datalog\u3068ddstat\u306e\u9023\u643a<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@ubuntu14:\/home\/shimizu# export DD_API_KEY=2...a\r\nroot@ubuntu14:\/home\/shimizu# ddstat -tclmsdrn 5\r\n----system---- ----total-cpu-usage---- ---load-avg--- ------memory-usage----- ----swap--- -dsk\/total- --io\/total- -net\/total-\r\n     time     |usr sys idl wai hiq siq| 1m   5m  15m | used  buff  cach  free| used  free| read  writ| read  writ| recv  send\r\n19-09 19:00:08|  5   8  86   1   0   0|   0 0.01 0.05| 374M 43.9M  804M  476M|   0     0 |  42k  130k|1.15  4.77 |   0     0\r\n19-09 19:00:13|  1   0  98   0   0   0|   0 0.01 0.05| 379M 43.9M  804M  470M|   0     0 |   0   819B|   0  0.20 |  30k 8406B\r\n<\/pre>\n<h1>\u78ba\u8a8d\u65b9\u6cd5<\/h1>\n<h2>\u767b\u9332\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u306e\u30ea\u30b9\u30c8<\/h2>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722-300x146.png\" alt=\"2015-09-19_184722\" width=\"300\" height=\"146\" class=\"alignnone size-medium wp-image-2238\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722-300x146.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722-1024x500.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722-660x322.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184722.png 1366w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811-300x80.png\" alt=\"2015-09-19_184811\" width=\"300\" height=\"80\" class=\"alignnone size-medium wp-image-2237\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811-300x80.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811-1024x274.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811-660x177.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_184811.png 1082w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u30ea\u30bd\u30fc\u30b9\u78ba\u8a8d<\/h2>\n<p>\u53f3\u5074\u306e[Integration Dashboards]\u304b\u3089\u9078\u629e\u3059\u308b<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934-300x146.png\" alt=\"2015-09-19_185934\" width=\"300\" height=\"146\" class=\"alignnone size-medium wp-image-2236\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934-300x146.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934-1024x500.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934-660x322.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-19_185934.png 1366w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443-300x146.png\" alt=\"2015-09-20_001443\" width=\"300\" height=\"146\" class=\"alignnone size-medium wp-image-2245\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443-300x146.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443-1024x500.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443-660x322.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001443.png 1366w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>dstat\u72b6\u6cc1\u78ba\u8a8d<\/h2>\n<p>\u5148\u307b\u3069\u3068\u540c\u69d8\u306b[Integration Dashboards]\u304b\u3089\u9078\u629e\u3059\u308b<br \/>\n<a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748-300x146.png\" alt=\"2015-09-20_001748\" width=\"300\" height=\"146\" class=\"alignnone size-medium wp-image-2247\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748-300x146.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748-1024x500.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748-660x322.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/09\/2015-09-20_001748.png 1366w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h1>\u53c2\u8003URL<\/h1>\n<p><a href=\"http:\/\/so-wh.at\/entry\/2014\/02\/16\/dstat%E3%83%AA%E3%82%A2%E3%83%AB%E3%82%BF%E3%82%A4%E3%83%A0%E3%82%B0%E3%83%A9%E3%83%95%E5%8C%96%E3%83%84%E3%83%BC%E3%83%AB_ddstat_%E3%82%92%E4%BD%9C%E3%82%8A%E3%81%BE%E3%81%97%E3%81%9F\">dstat\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b0\u30e9\u30d5\u5316\u30c4\u30fc\u30eb ddstat \u3092\u4f5c\u308a\u307e\u3057\u305f<\/a><br \/>\n<a href=\"http:\/\/jhotta.github.io\/blog\/2014\/04\/08\/install-datadog-agent\/\">Datadog\u3067\u30b5\u30fc\u30d3\u30b9\u30e2\u30cb\u30bf\u30fc\u30ea\u30f3\u30b0 [Agent\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb]<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u300cdstat\u3092\u30b0\u30e9\u30d5\u5316\u3057\u305f\u3044\u3067\u3059\u300d\u3068Google\u5148\u751f\u306b\u805e\u3044\u3066\u307f\u305f Google\u5148\u751f\u300cdstat\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30b0\u30e9\u30d5\u5316\u30c4\u30fc\u30eb ddstat \u3092\u4f5c\u308a\u307e\u3057\u305f\u300d Datalog\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u767b\u9332\u3059\u308b\u3068agent\u306e\u30a4\u30f3\u30b9\u30c8\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[86,85],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2235"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2235"}],"version-history":[{"count":8,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2235\/revisions"}],"predecessor-version":[{"id":2250,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2235\/revisions\/2250"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}