{"id":396,"date":"2021-12-22T09:33:03","date_gmt":"2021-12-22T00:33:03","guid":{"rendered":"http:\/\/10.124.124.111\/?p=396"},"modified":"2021-12-22T09:33:03","modified_gmt":"2021-12-22T00:33:03","slug":"%e6%96%b0%e5%8d%92sre%e3%81%8c%e7%9b%a3%e8%a6%96%e3%81%ae%e3%81%82%e3%82%8a%e3%81%8c%e3%81%9f%e3%81%bf%e3%82%92%e7%9f%a5%e3%81%a3%e3%81%a6%e8%87%aa%e5%ae%85%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc","status":"publish","type":"post","link":"https:\/\/blog.homi.run\/?p=396","title":{"rendered":"\u65b0\u5352SRE\u304c\u76e3\u8996\u306e\u3042\u308a\u304c\u305f\u307f\u3092\u77e5\u3063\u3066\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u76e3\u8996\u3092\u5c0e\u5165\u3057\u305f\u8a71"},"content":{"rendered":"\n<p>\u3053\u306e\u8a18\u4e8b\u306f<a href=\"https:\/\/adventar.org\/calendars\/6375\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/adventar.org\/calendars\/6375\">GMO\u30da\u30d1\u30dc\u30a8\u30f3\u30b8\u30cb\u30a2 Advent Calendar 2021<\/a>\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6628\u65e5\u306f\u3001<a href=\"https:\/\/twitter.com\/kurehajime\" title=\"https:\/\/twitter.com\/kurehajime\" target=\"_blank\" rel=\"noreferrer noopener\">kurehajime<\/a>\u3055\u3093\u306e\u300c<a href=\"https:\/\/qiita.com\/kurehajime\/items\/e9a90c1d3705fbc8197a\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/qiita.com\/kurehajime\/items\/e9a90c1d3705fbc8197a\">\u65b0\u8a00\u8a9e\u300eTypoScript\u300f\u3092\u4f5c\u3063\u305f<\/a>\u300d\u3067\u3057\u305f\u3002Typo\u3092\u8a31\u5bb9\u3059\u308b\u8a00\u8a9e\u3092\u4f5c\u3089\u308c\u305f\u3068\u3044\u3046\u3053\u3068\u3067&#8221;\u3082\u3063\u3068\u304a\u3082\u3057\u308d\u304f\u3067\u304d\u308b&#8221;\u3092\u4f53\u73fe\u3057\u305f\u3088\u3046\u306a\u8a18\u4e8b\u3067\u3057\u305f\u3002\u81ea\u5206\u3082Typo\u3057\u307e\u304f\u3063\u3066\u30b3\u30f3\u30d1\u30a4\u30e9\u30fb\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u30fbCI\u306a\u3069\u3082\u308d\u3082\u308d\u306b\u6012\u3089\u308c\u307e\u304f\u3063\u3066\u3044\u308b\u306e\u3067\u305f\u307e\u306b\u306fTypoScript\u306e\u3088\u3046\u306b\u8a31\u3057\u3066\u307b\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u5c11\u3057\u524d\u306e\u8a18\u4e8b\u3067<a href=\"http:\/\/10.124.124.111\/?p=325\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"http:\/\/10.124.124.111\/?p=325\">\u5ff5\u9858\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u306a\u3063\u305f\u3088\u307f\u305f\u3044\u306a\u8a71<\/a>\u3092\u30c1\u30e7\u30ed\u3063\u3068\u66f8\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u6642\u306f\u914d\u5c5e\u5148\u304c\u6c7a\u307e\u3063\u3066\u304a\u3089\u305a\u4f55\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u306a\u308b\u3093\u3060\u308d\u3046\u306a\u3041\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3057\u305f\u3002\u73fe\u5728\u306f\u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308aSRE\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u3044\u3046\u3053\u3068\u3067\u9811\u5f35\u3089\u305b\u3066\u3044\u305f\u3060\u3044\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<p>SRE\u306a\u306e\u3067\u4ed5\u4e8b\u3067\u30b5\u30fc\u30d0\u30fc\u306e\u76e3\u8996\u3068\u304b\u3082\u3084\u3063\u3066\u3044\u3066\u3001\u76e3\u8996\u306e\u3042\u308a\u304c\u305f\u307f\u3092\u8eab\u3092\u6301\u3063\u3066\u611f\u3058\u3066\u3044\u305f\u306e\u3067\u81ea\u5b85\u306b\u3082\u76e3\u8996\u5165\u308c\u305f\u3044\u3088\u306a\u3041\u3068\u307c\u3093\u3084\u308a\u601d\u3044\u3064\u3064\u751f\u6d3b\u3057\u3066\u307e\u3057\u305f\u3002\u305d\u3093\u306a\u6642&#8230;.<\/p>\n\n\n<blockquote class=\"twitter-tweet\">\n<p dir=\"ltr\" lang=\"ja\">\u539f\u56e0\u5206\u304b\u3089\u3093\u3051\u306923\u65e5\u304b\u3089\u6b7b\u3093\u3067\u305f\u306e\u6c17\u304c\u4ed8\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u76e3\u8996\u5165\u308c\u308b\u6a5f\u904b\u304c\u9ad8\u307e\u3063\u3066\u304d\u305f\u306a<\/p>\n<p>\u2014 \u307b\u307f\u308b\u3093 (@h0mirun_deux) <a href=\"https:\/\/twitter.com\/h0mirun_deux\/status\/1467905841122938880?ref_src=twsrc%5Etfw\">December 6, 2021<\/a><\/p><\/blockquote>\n<p> <script async=\"\" src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u81ea\u5b85\u306bPrometheus + Grafana\u3068\u3044\u3046\u3088\u304f\u3042\u308b\u69cb\u6210\u3067\u76e3\u8996\u3068\u305d\u308c\u3092\u30b0\u30e9\u30d5\u30a3\u30ab\u30eb\u306b\u8868\u793a\u3059\u308b\u3084\u3064\u3092\u5c0e\u5165\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u76ee\u6b21<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Rasspberry Pi\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/li><li>Prometheus\u306e\u5c0e\u5165<\/li><li>\u76e3\u8996\u5bfe\u8c61\u3078Node Exporter\u306e\u5c0e\u5165<\/li><li>Grafana\u306e\u5c0e\u5165<\/li><li>Grafana\u304b\u3089\u30a2\u30e9\u30fc\u30c8\u3092\u98db\u3070\u3057\u3066\u307f\u308b<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">RaspberryPi\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528\u610f\u3057\u305f\u3082\u306e<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>\u8ee2\u304c\u3063\u3066\u305fRaspberryPi3 B+<\/li><li>\u2191\u306b\u523a\u3055\u3063\u3066\u305fmicroSD\u30ab\u30fc\u30c9 8GB<\/li><li>FiioX5 3rd Gen<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Raspberry Pi OS\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u713c\u304f<\/h3>\n\n\n\n<p>\u3082\u3068\u3082\u3068\u523a\u3055\u3063\u3066\u305fmicroSD\u306b\u3082Raspbian\u304c\u7a81\u3063\u8fbc\u307e\u308c\u3066\u3044\u305f\u304c\u3001\u5168\u7136\u4f7f\u3063\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u53e4\u3044\u306e\u304c\u5165\u3063\u3066\u308b\u3068\u8aad\u3093\u3067\u713c\u304d\u76f4\u3059\u3053\u3068\u306b\u3002<\/p>\n\n\n\n<p>\u306a\u3093\u304b\u3001\u4eca\u306fRaspbian\u3067\u306f\u306a\u304f<a href=\"https:\/\/www.raspberrypi.com\/software\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/www.raspberrypi.com\/software\/\">Raspberry Pi OS<\/a>\u3068\u3044\u3046\u540d\u524d\u306b\u5909\u308f\u3063\u305f\u3089\u3057\u304f\u3001\u305d\u308c\u306eLite\u7248(\u8efd\u3044\u3084\u3064)\u3092\u843d\u3068\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3042\u3068\u3001SD\u30ab\u30fc\u30c9\u30ea\u30fc\u30c0\u30e9\u30a4\u30bf\u304c\u306a\u304b\u3063\u305f\u306e\u3067Android\u304c\u5165\u3063\u3066\u308bFiio X5 3rd Gen\u306b\u305d\u306e\u5f79\u5272\u3092\u62c5\u3063\u3066\u3082\u3089\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/IMG_0526-768x1024.jpg\" alt=\"\" class=\"wp-image-400\" width=\"319\" height=\"425\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/IMG_0526-768x1024.jpg 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/IMG_0526-225x300.jpg 225w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/IMG_0526-1152x1536.jpg 1152w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/IMG_0526-1536x2048.jpg 1536w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/IMG_0526-scaled.jpg 1920w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><figcaption>FiioX5 3rd Gen (DAP\u3067\u3059)<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">SSH\u306e\u8a31\u53ef\u3068\u304bIP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa\u5b9a\u3068\u304b<\/h3>\n\n\n\n<p>Raspberry Pi OS\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fSSH\u3092\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u8a31\u53ef\u3057\u3066\u3042\u3052\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a31\u53ef\u3092\u3059\u308b\u306b\u306f<code>\/boot\/<\/code>\u4ee5\u4e0b\u306b\u7a7a\u306e<code>ssh<\/code>\u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u518d\u8d77\u52d5\u3059\u308b\u3060\u3051\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ touch \/boot\/ssh\n$ sudo reboot<\/code><\/pre>\n\n\n\n<p>IP\u30a2\u30c9\u30ec\u30b9\u306e\u56fa\u5b9a\u306fdhcpcd.conf\u3092\u7de8\u96c6\u3057\u305f\u4e0a\u3067dhcpcd\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3067\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ sudo  vi \/etc\/dhcpcd.conf\n\nstatic ip_address=&lt;static ip address>\nstatic routers=&lt;router ip address>\nstatic domain_name_servers=&lt;dns ip address>\n\n\n$ sudo systemctl restart dhcpcd<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Prometheus\u306e\u5c0e\u5165<\/h2>\n\n\n\n<p>\u516c\u5f0f\u304b\u3089\u30d0\u30a4\u30ca\u30ea\u3092\u843d\u3068\u3057\u3066\u304d\u3066\u5c55\u958b\u3057\u307e\u3059\u3002\u4eca\u56de\u306fRaspberryPi\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067armv7\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u3092\u4f7f\u3044\u307e\u3059\u3002<br><a href=\"https:\/\/prometheus.io\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/prometheus.io\/download\/<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ wget https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/v2.32.1\/prometheus-2.32.1.linux-armv7.tar.gz\n$ tar -xzvf prometheus-2.32.1.linux-armv7.tar.gz<\/code><\/pre>\n\n\n\n<p>\u5c55\u958b\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066Prometheus\u3092\u8d77\u52d5\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ .\/prometheus-2.32.1.linux-armv7\/prometheus --config.file=prometheus.yml<\/code><\/pre>\n\n\n\n<p>\u8d77\u52d5\u3059\u308b\u3068\u30019090\u756a\u3067HTTP\u3092\u5f85\u3061\u53d7\u3051\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u30d6\u30e9\u30a6\u30b6\u3067\u30b7\u30e5\u30c3\u3068\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068Prometheus\u306e\u3044\u3044\u611f\u3058\u306aGUI\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"355\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223-1024x355.png\" alt=\"\" class=\"wp-image-436\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223-1024x355.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223-300x104.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223-768x266.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223-1536x533.png 1536w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/6365e21de17dfc7ee2ff19c457d3f223.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u2020\u30c0\u30fc\u30af\u30e2\u30fc\u30c9\u2020\u306b\u3057\u3066\u307e\u3059<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u5bdf\u3057\u306e\u826f\u3044\u65b9\u306f\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u3092\u898b\u305f\u3060\u3051\u3067\u300c\u306f\u3044\u306f\u3044\u306a\u308b\u307b\u3069\u306d\u300d\u3068\u306a\u3063\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304cprometheus.yml\u306b\u3044\u308d\u3044\u308d\u8a2d\u5b9a\u3092\u66f8\u304f\u3053\u3068\u3067\u76e3\u8996\u5bfe\u8c61\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u76e3\u8996\u5bfe\u8c61\u3078Node Exporter\u306e\u5c0e\u5165<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3001<strong>\u3042\u306a\u305f\u304c\u4eca\u898b\u3066\u3044\u308b\u3053\u306e\u30d6\u30ed\u30b0\u3092\u652f\u3048\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc<\/strong>\u3092\u76e3\u8996\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u76e3\u8996\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u5bfe\u8c61\u306e\u30b5\u30fc\u30d0\u30fc\u306bPrometheus Exporter\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u307e\u3059\u3002Prometheus Exporter\u306b\u306f\u69d8\u3005\u306a\u7a2e\u985e\u304c\u3042\u308a\u3001\u6b32\u3057\u3044\u30e1\u30c8\u30ea\u30c3\u30af\u5408\u308f\u305b\u3066\u9069\u5207\u306a\u3082\u306e\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u4eca\u56de\u306f\u4e00\u822c\u7684\u306aCPU\u4f7f\u7528\u7387\u3084\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u308bNode Exporter\u3092\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u307e\u305a\u3001Node Exporter\u304c\u4f7f\u7528\u3059\u308b9100\u756a\u3092\u958b\u3051\u307e\u3059\u3002\u3053\u3053\u3067\u306ffirewalld\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u76e3\u8996\u5bfe\u8c61\u30b5\u30fc\u30d0\u30fc \n\n$ sudo firewall-cmd --add-port=9100\/tcp --zone=public --permanent\n$ sudo firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089Node Exporter\u3092\u843d\u3068\u3057\u3066\u304d\u307e\u3059\u3002<br>(\u81ea\u5206\u306f\u6700\u521d\u9593\u9055\u3048\u3066\u3001Raspberry Pi\u306e\u3068\u304d\u3068\u540c\u69d8\u306barmv7\u3092\u843d\u3068\u3057\u3066\u3057\u307e\u3063\u3066\u52d5\u304b\u306a\u304b\u3063\u305f\u308a\u3057\u305f\u306e\u3067\u6ce8\u610f)<br><a href=\"https:\/\/prometheus.io\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/prometheus.io\/download\/<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u76e3\u8996\u5bfe\u8c61\u30b5\u30fc\u30d0\u30fc\n\n$ wget https:\/\/github.com\/prometheus\/node_exporter\/releases\/download\/v1.3.1\/node_exporter-1.3.1.linux-amd64.tar.gz\n$ tar -xzvf node_exporter-1.3.1.linux-amd64.tar.gz<\/code><\/pre>\n\n\n\n<p>Node Exporter\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u76e3\u8996\u5bfe\u8c61\u30b5\u30fc\u30d0\u30fc\n\n$ .\/node_exporter-1.3.1.linux-amd64\/node_exporter<\/code><\/pre>\n\n\n\n<p>\u5b9f\u884c\u3057\u3066\u52d5\u304b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u306e9100\u756a\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u306a\u3093\u3060\u304b\u4eba\u751f\u3067\u521d\u3081\u3066\u4f5c\u3063\u305fWeb\u30b5\u30a4\u30c8\u307f\u305f\u3044\u306a\u30da\u30fc\u30b8\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u3053\u308c\u304cNode Exporter\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/1b09b05c6ed4c4fe8cacb7da85003bd0.png\" alt=\"\" class=\"wp-image-414\" width=\"598\" height=\"308\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/1b09b05c6ed4c4fe8cacb7da85003bd0.png 916w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/1b09b05c6ed4c4fe8cacb7da85003bd0-300x155.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/1b09b05c6ed4c4fe8cacb7da85003bd0-768x396.png 768w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><figcaption>\u4e2d\u5b66\u751f\u306e\u6642\u306b\u4f5c\u3063\u305f\u9ed2\u6b74\u53f2\u306e\u3088\u3046\u306aWeb\u30b5\u30a4\u30c8\u3092\u601d\u3044\u51fa\u3057\u307e\u3059<\/figcaption><\/figure><\/div>\n\n\n\n<p><code>Metrics<\/code>\u30ea\u30f3\u30af\u3092\u8e0f\u3080\u3068\u30e1\u30c8\u30ea\u30af\u30b9\u304cplaintext\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u4e00\u90e8\u629c\u7c8b\u3057\u3066\u3044\u308b\u3082\u306e\u3092\u8cbc\u3063\u3066\u3044\u307e\u3059\u304cCPU\u4f7f\u7528\u7387\u3092\u8fd4\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u611f\u3058\u304c\u3042\u308a\u307e\u3059\u306d\u3002Prometheus\u306fPull\u578b\u306e\u76e3\u8996\u30c4\u30fc\u30eb\u306a\u306e\u3067\u3053\u306e\u5024\u3092\u898b\u306b\u6765\u3066Promeheus\u306eGUI\u306b\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># HELP node_cpu_guest_seconds_total Seconds the CPUs spent in guests (VMs) for each mode.\n# TYPE node_cpu_guest_seconds_total counter\nnode_cpu_guest_seconds_total{cpu=\"0\",mode=\"nice\"} 0\nnode_cpu_guest_seconds_total{cpu=\"0\",mode=\"user\"} 0\n# HELP node_cpu_seconds_total Seconds the CPUs spent in each mode.\n# TYPE node_cpu_seconds_total counter\nnode_cpu_seconds_total{cpu=\"0\",mode=\"idle\"} 204862.31\nnode_cpu_seconds_total{cpu=\"0\",mode=\"iowait\"} 20.25\nnode_cpu_seconds_total{cpu=\"0\",mode=\"irq\"} 0\nnode_cpu_seconds_total{cpu=\"0\",mode=\"nice\"} 0.16\nnode_cpu_seconds_total{cpu=\"0\",mode=\"softirq\"} 17.69\nnode_cpu_seconds_total{cpu=\"0\",mode=\"steal\"} 0\nnode_cpu_seconds_total{cpu=\"0\",mode=\"system\"} 19057.56\nnode_cpu_seconds_total{cpu=\"0\",mode=\"user\"} 26489.73<\/pre>\n\n\n\n<p>Node Exporter\u304c\u52d5\u3044\u305f\u306e\u3067\u3001Prometheus\u5074\u3067\u306f\u3069\u3046\u8868\u793a\u3055\u308c\u308b\u306e\u304b\u8efd\u304f\u898b\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u524d\u306bPrometheus\u306b\u76e3\u8996\u5bfe\u8c61\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Prometheus\u306b\u76e3\u8996\u5bfe\u8c61\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u5b9f\u884c\u6642\u306b\u5f15\u6570\u306b\u6e21\u3057\u3066\u3044\u305f<code>prometheus.yml<\/code>\u5185\u306e<code>static_configs.target<\/code>\u306b\u76e3\u8996\u5bfe\u8c61\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ vim .\/<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">prometheus-2.32.1.linux-armv7\/prometheus.yml \n\nstatic_configs:\n  - targets: &#91;\"localhost:9090\", &lt;\u76e3\u8996\u5bfe\u8c61 IP Address>]<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>Prometheus\u306eGUI\u306b\u623b\u308a\u3001\u691c\u7d22\u7a93\u306b<code><meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">node_cpu_seconds_total<\/code>\u3068\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002(\u5148\u7a0b\u306eNode Exporter\u306eMetrics\u306b\u3042\u3063\u305f\u3082\u306e)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"425\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7-1024x425.png\" alt=\"\" class=\"wp-image-435\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7-1024x425.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7-300x124.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7-768x318.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7-1536x637.png 1536w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/a69d3b4592a172317dbf56b7c30809e7.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>idle, user, system\u306a\u3069\u5404\u7a2e\u53d6\u308c\u3066\u308b<\/figcaption><\/figure>\n\n\n\n<p>\u3044\u3044\u611f\u3058\u306b\u53d6\u308c\u3066\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001Prometheus\u3067\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53c2\u7167\u3059\u308b\u306e\u306b\u4f7f\u3046\u8a00\u8a9e\u306f<a href=\"https:\/\/prometheus.io\/docs\/prometheus\/latest\/querying\/basics\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/prometheus.io\/docs\/prometheus\/latest\/querying\/basics\/\">PromQL<\/a>\u3068\u547c\u3070\u308c\u308b\u72ec\u81ea\u306e\u3082\u306e\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Grafana\u306e\u5c0e\u5165<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Grafana\u306fPrometheus\u3068\u540c\u3058Raspberry Pi\u306b\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/grafana.com\/grafana\/download?edition=oss\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/grafana.com\/grafana\/download?edition=oss\">Grafana\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304c\u66f8\u3044\u3066\u3042\u308b<\/a>\u306e\u3067\u305d\u308c\u306b\u5f93\u3044\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\u3066\u3044\u304d\u307e\u3059\u3002Raspberry Pi OS\u306fDebian\u30d9\u30fc\u30b9\u306a\u306e\u3067<code>dev<\/code>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Raspberry Pi\n\n$ sudo apt-get install -y adduser libfontconfig1\n$ wget https:\/\/dl.grafana.com\/oss\/release\/grafana_8.3.3_amd64.deb\n$ sudo dpkg -i grafana_8.3.3_amd64.deb<\/code><\/pre>\n\n\n\n<p>\u305d\u306e\u307e\u307e\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo systemctl enable grafana-server\n$ sudo systemctl start grafana-server<\/code><\/pre>\n\n\n\n<p>\u4eca\u5ea6\u306f3000\u756a\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068Grafana\u304c\u4e0a\u304c\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\u30ed\u30b0\u30a4\u30f3\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u3082\u306b<code>admin<\/code>\u3067\u5165\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"426\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/9dd5000a0283f65dac750c0ac69739c4-1024x426.png\" alt=\"\" class=\"wp-image-442\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/9dd5000a0283f65dac750c0ac69739c4-1024x426.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/9dd5000a0283f65dac750c0ac69739c4-300x125.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/9dd5000a0283f65dac750c0ac69739c4-768x319.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/9dd5000a0283f65dac750c0ac69739c4.png 1126w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u76f4\u5f8c\u306e\u30b9\u30af\u30b7\u30e7\u53d6\u308a\u5fd8\u308c\u3061\u3083\u3063\u305f<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u6b21\u306b\u3001Grafana\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002\u5de6\u306b\u3042\u308b\u6b6f\u8eca\u306e\u30a2\u30a4\u30b3\u30f3 > Data sources > Add data source > Prometheus \u3067\u5fc5\u8981\u306a\u60c5\u5831\u3092\u5165\u529b\u3057\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308aGrafana\u304b\u3089Prometheus\u306e\u30c7\u30fc\u30bf\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/e71bd3bd424f969c234fa68982493060-1024x562.png\" alt=\"\" class=\"wp-image-448\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/e71bd3bd424f969c234fa68982493060-1024x562.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/e71bd3bd424f969c234fa68982493060-300x165.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/e71bd3bd424f969c234fa68982493060-768x422.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/e71bd3bd424f969c234fa68982493060.png 1491w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u3055\u3063\u305d\u304fGrafana\u3067CPU\u4f7f\u7528\u7387\u3092\u30b0\u30e9\u30d5\u306b\u3057\u3066\u307f\u307e\u3059\u3002\u5de6\u5074\u306e+ > Dashboard > Add a new panel \u3067\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9077\u79fb\u5148\u3067\u3001Metrics browser\u306b\u4ee5\u4e0b\u306e\u30af\u30a8\u30ea\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u3053\u306e\u30af\u30a8\u30ea\u306f\u76e3\u8996\u5bfe\u8c61\u306eCPU\u306eidle\u306e\u5024\u3092100\u304b\u3089\u5f15\u304f\u3053\u3068\u3067\u5168\u4f53\u306eCPU\u4f7f\u7528\u7387\u3092\u6c42\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>100 - rate(node_cpu_seconds_total{instance=&lt;\u76e3\u8996\u5bfe\u8c61IP\u30a2\u30c9\u30ec\u30b9>,mode=\"idle\"}&#91;5m]) * 100<\/code><\/pre>\n\n\n\n<p>Unit\u3084Title\u306a\u3069\u3092\u305d\u308c\u3063\u307d\u304f\u5909\u66f4\u3059\u308b\u3068\u30ab\u30c3\u30b3\u3044\u3044\u30b0\u30e9\u30d5\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"511\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130-1024x511.png\" alt=\"\" class=\"wp-image-449\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130-1024x511.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130-300x150.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130-768x384.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130-1536x767.png 1536w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/4f399cb54971948c350b4c2648f31130.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Grafana\u304b\u3089\u30a2\u30e9\u30fc\u30c8\u3092\u98db\u3070\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p>Grafana\u306b\u306f\u7279\u5b9a\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3068\u30e1\u30fc\u30eb\u3084Slack\u3001Discord\u306a\u3069\u69d8\u3005\u306a\u4efb\u610f\u306e\u5834\u6240\u306b\u901a\u77e5\u3057\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u3069\u3053\u306b\u901a\u77e5\u3059\u308b\u304b\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u5de6\u5074\u306e\u30d9\u30eb\u30de\u30fc\u30af > Notification Channel > New channel \u3067\u9077\u79fb\u3057\u305f\u5148\u3067\u5404\u7a2e\u60c5\u5831\u3092\u5165\u529b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fSlack\u306b\u901a\u77e5\u3057\u305f\u3044\u306e\u3067Type\u3092Slack\u306b\u3057\u3066Webhook\u306eURL\u7b49\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/95419aca3cb33e9e8a54fc77b82bb0cf-1024x912.png\" alt=\"\" class=\"wp-image-455\" width=\"548\" height=\"488\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/95419aca3cb33e9e8a54fc77b82bb0cf-1024x912.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/95419aca3cb33e9e8a54fc77b82bb0cf-300x267.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/95419aca3cb33e9e8a54fc77b82bb0cf-768x684.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/95419aca3cb33e9e8a54fc77b82bb0cf.png 1075w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><figcaption>\u500b\u4eba\u306eSlackChannel\u306b\u98db\u3070\u3057\u305f<\/figcaption><\/figure><\/div>\n\n\n\n<p>\u4e00\u756a\u4e0b\u306eTest\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u30a2\u30e9\u30fc\u30c8\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"419\" height=\"165\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/714be17b1b29c727794227dea11fd518.png\" alt=\"\" class=\"wp-image-457\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/714be17b1b29c727794227dea11fd518.png 419w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/714be17b1b29c727794227dea11fd518-300x118.png 300w\" sizes=\"auto, (max-width: 419px) 100vw, 419px\" \/><\/figure><\/div>\n\n\n\n<p>\u6b21\u306b\u3001\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u4f7f\u7528\u3057\u305f\u30da\u30fc\u30b8(\u5de6\u5074\u306e+ > Dashboard > Add a new panel)\u306eAlert\u30bf\u30d6\u306b\u9077\u79fb\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u30a2\u30e9\u30fc\u30c8\u3092\u767a\u7832\u3055\u305b\u305f\u3044\u6761\u4ef6\u3092\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e\u5834\u5408\u306fCPU\u4f7f\u7528\u7387\u304c3\u5206\u959390%\u3092\u8d85\u3048\u305f\u3089\u767a\u7832\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<code>Send to<\/code>\u306b\u306f\u5148\u7a0b\u8a2d\u5b9a\u3057\u305fNotification Channel\u3092\u6307\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"519\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/d093b4f9c3c6e2612cd6940b67c3deb0-1024x519.png\" alt=\"\" class=\"wp-image-459\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d093b4f9c3c6e2612cd6940b67c3deb0-1024x519.png 1024w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d093b4f9c3c6e2612cd6940b67c3deb0-300x152.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d093b4f9c3c6e2612cd6940b67c3deb0-768x389.png 768w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d093b4f9c3c6e2612cd6940b67c3deb0.png 1351w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3059\u308b\u3068\u30b0\u30e9\u30d5\u30bf\u30a4\u30c8\u30eb\u306e\u6a2a\u306b\u7dd1\u8272\u306e\u30cf\u30fc\u30c8\u30de\u30fc\u30af\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u5225\u306e\u30a2\u30e9\u30fc\u30c8\u3067\u3059\u304c\u5931\u6557\u3059\u308b\u3068\u3053\u306e\u3088\u3046\u306b\u30cf\u30fc\u30c8\u30de\u30fc\u30af\u304c\u8d64\u304f\u306a\u308a\u3001\u4f55\u6642\u4f55\u5206\u304b\u3089\u30a2\u30e9\u30fc\u30c8\u304c\u767a\u7832\u3057\u305f\u304b\u5206\u304b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"303\" src=\"http:\/\/10.124.124.111\/wp-content\/uploads\/2021\/12\/d3819883e4cc29c81e895e5e79c89c09.png\" alt=\"\" class=\"wp-image-460\" srcset=\"https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d3819883e4cc29c81e895e5e79c89c09.png 918w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d3819883e4cc29c81e895e5e79c89c09-300x99.png 300w, https:\/\/blog.homi.run\/wp-content\/uploads\/2021\/12\/d3819883e4cc29c81e895e5e79c89c09-768x253.png 768w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3088\u304f\u3042\u308bPrometheus + Grafana\u306e\u5c0e\u5165\u306e\u8a71\u3092\u66f8\u304d\u307e\u3057\u305f\u3002\u672c\u5f53\u306fBlackBox Exporter\u306e\u8a71\u3084Prometheus Exporter\u306e\u81ea\u4f5c\u3068\u304b\u3082\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u60f3\u50cf\u4ee5\u4e0a\u306b1\u672c\u76ee\u3067\u5206\u91cf\u304c\u51fa\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u305d\u308c\u306f\u307e\u305f\u3069\u3053\u304b\u3067\u3084\u3063\u3066\u307f\u3066\u57f7\u7b46\u3067\u304d\u305f\u3089\u306a\u3068\u601d\u3063\u3066\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u76e3\u8996\u3092\u5165\u308c\u305f\u3053\u3068\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u9014\u4e2d\u5b9f\u969b\u306b\u8b0e\u306eCPU\u4f7f\u7528\u7387\u4e0a\u6607\u306b\u6c17\u304c\u3064\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u3059\u3054\u3044\uff01\u4fbf\u5229\uff01\u76e3\u8996\u6700\u9ad8\uff01\u307f\u3093\u306a\u3082\u76e3\u8996\u3057\u3088\u3046\uff01\uff01\uff01\uff01<\/p>\n\n\n<blockquote class=\"twitter-tweet\">\n<p lang=\"ja\" dir=\"ltr\">\u3053\u308c\u306f\u4f55\uff1f\uff1f\uff1f <a href=\"https:\/\/t.co\/eUUH3fyJJu\">pic.twitter.com\/eUUH3fyJJu<\/a><\/p>\n<p>&mdash; \u307b\u307f\u308b\u3093 (@h0mirun_deux) <a href=\"https:\/\/twitter.com\/h0mirun_deux\/status\/1473289372334456835?ref_src=twsrc%5Etfw\">December 21, 2021<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script> <\/p>\n\n\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">Oh My Fish <a href=\"https:\/\/t.co\/xIT3vM3ojR\">pic.twitter.com\/xIT3vM3ojR<\/a><\/p>\n<p>&mdash; \u307b\u307f\u308b\u3093 (@h0mirun_deux) <a href=\"https:\/\/twitter.com\/h0mirun_deux\/status\/1473289874157764611?ref_src=twsrc%5Etfw\">December 21, 2021<\/a><\/p><\/blockquote>\n<p> <script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script> <\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u3059\u3002\u3053\u3053\u307e\u3067\u3054\u89a7\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Advent Calendar 23\u65e5\u76ee\u306f<a href=\"https:\/\/twitter.com\/tick_taku77\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/twitter.com\/tick_taku77\">tick-taku<\/a>\u3055\u3093\u3067\u3059\uff01\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u306fGMO\u30da\u30d1\u30dc\u30a8\u30f3\u30b8\u30cb\u30a2 Advent Calendar 2021\u306e22\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u6628\u65e5\u306f\u3001kurehajime\u3055\u3093\u306e\u300c\u65b0\u8a00\u8a9e\u300eTypoScript\u300f\u3092\u4f5c\u3063\u305f\u300d\u3067\u3057\u305f\u3002Typo\u3092\u8a31\u5bb9\u3059\u308b\u8a00\u8a9e\u3092\u4f5c\u3089\u308c\u305f\u3068\u3044\u3046 &hellip; <a href=\"https:\/\/blog.homi.run\/?p=396\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u65b0\u5352SRE\u304c\u76e3\u8996\u306e\u3042\u308a\u304c\u305f\u307f\u3092\u77e5\u3063\u3066\u81ea\u5b85\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u76e3\u8996\u3092\u5c0e\u5165\u3057\u305f\u8a71&#8221;\u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-396","post","type-post","status-publish","format-standard","hentry","category-1","tag-prometheus"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=396"}],"version-history":[{"count":63,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/blog.homi.run\/index.php?rest_route=\/wp\/v2\/posts\/396\/revisions\/476"}],"wp:attachment":[{"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=396"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=396"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.homi.run\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}