{"id":1039,"date":"2023-08-06T13:33:48","date_gmt":"2023-08-06T04:33:48","guid":{"rendered":"http:\/\/daimaru-tech-blog.com\/?p=1039"},"modified":"2025-07-05T12:21:07","modified_gmt":"2025-07-05T03:21:07","slug":"%e3%80%90%e8%87%aa%e5%ae%85%e3%82%b7%e3%82%b9%e3%83%86%e3%83%a0%e3%80%91%e7%ae%a1%e7%90%86%e3%81%99%e3%82%8b%e3%82%b5%e3%83%bc%e3%83%90%e3%81%abprometheus-grafana%e7%92%b0%e5%a2%83%e3%82%92%e5%b0%8e","status":"publish","type":"post","link":"https:\/\/daimaru-tech-blog.com\/?p=1039","title":{"rendered":"\u3010\u81ea\u5b85\u30b7\u30b9\u30c6\u30e0\u3011\u7ba1\u7406\u3059\u308b\u30b5\u30fc\u30d0\u306bPrometheus\/Grafana\u74b0\u5883\u3092\u5c0e\u5165\u3057\u3066\u307f\u305f"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p> \u3053\u3093\u306b\u3061\u306f\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u300c\u3060\u3044\u307e\u308b\u300d\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u306a\u304f\u3001<strong><span class=\"swl-inline-color has-swl-deep-02-color\"><span class=\"swl-marker mark_blue\">\u672c\u30d6\u30ed\u30b0\u3084\u59bb\u306e\u30d6\u30ed\u30b0\u3067\u3042\u308b\u300c<a rel=\"noreferrer noopener\" href=\"http:\/\/\u4eca\u56de\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u306a\u304f\u3001\u672c\u30d6\u30ed\u30b0\u3084\u59bb\u306e\u30d6\u30ed\u30b0\u3067\u3042\u308b\u300chttps:\/\/enokidake.jp\/\" target=\"_blank\">\u3048\u306e\u304d\u3060\u3051\u30d6\u30ed\u30b0\u3060\u3051<\/a>\u300d\u3084\u500b\u4eba\u306e\u751f\u6d3b\u3092\u4fbf\u5229\u3001\u5feb\u9069\u306b\u3059\u308b\u305f\u3081\u306b\u69cb\u7bc9\u3057\u3066\u3044\u308b\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u7b49\u306e\u30b5\u30fc\u30d0\u306e\u72b6\u614b\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u300cGrafana\u300d\u3068\u300cPrometheus\u300d\u3092\u5c0e\u5165<\/span><\/span><\/strong>\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u6700\u8fd1\u3001Netflix\u304b\u3089Hulu\u306b\u4e57\u308a\u63db\u3048\u3001\u30a4\u30c3\u30c6Q\u3084\u30d6\u30e9\u30c3\u30b7\u30e5\u30a2\u30c3\u30d7\u30e9\u30a4\u30d5\u3092\u307f\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<center><a href=\"https:\/\/px.a8.net\/svt\/ejp?a8mat=3T8KHX+38OZCI+2KX0+2HBVLT\" rel=\"nofollow\">\n<img decoding=\"async\" border=\"0\" width=\"728\" height=\"90\" alt=\"\" src=\"https:\/\/www27.a8.net\/svt\/bgt?aid=230507205196&amp;wid=001&amp;eno=01&amp;mid=s00000012042015004000&amp;mc=1\"><\/a>\n<img decoding=\"async\" border=\"0\" width=\"1\" height=\"1\" src=\"https:\/\/www15.a8.net\/0.gif?a8mat=3T8KHX+38OZCI+2KX0+2HBVLT\" alt=\"\"><\/center>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3084\u3063\u3071\u308aGrafana<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u305d\u3082\u305d\u3082Grafana\u3068\u306f\uff1f<\/h3>\n\n\n\n<p>\u3000\u4eca\u56de\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u4f7f\u3063\u305f\u306e\u306f\u300cGrafana\u300d\u3068\u3044\u3046Grafana Lab\u304c\u958b\u767a\u3057\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3053\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001<strong><span class=\"swl-inline-color has-swl-deep-02-color\"><span class=\"swl-marker mark_blue\">Prometheus\u3060\u3051\u3067\u306f\u306a\u304fAWS\u3084Elastic Search\u7b49\u3001\u6570\u591a\u304f\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u306e\u9023\u643a\u304c\u53ef\u80fd\u3068\u306a\u3063\u3066\u304a\u308a\u3001\u4f01\u696d\u3067\u3082\u304b\u306a\u308a\u4f7f\u308f\u308c\u3066\u3044\u308b\u5370\u8c61\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/span><\/strong><\/p>\n\n\n\n<p><strong>\u3000\u5b9f\u969b\u3001\u524d\u306e\u4f1a\u793e\u3067\u3082\u4f7f\u308f\u308c\u3066\u304a\u308a\u3001\u4eca\u306e\u4f1a\u793e\u3067\u3082\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>Grafana\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u516c\u5f0fHP\u306e\u300c<a href=\"https:\/\/grafana.com\/oss\/grafana\/\">https:\/\/grafana.com\/oss\/grafana\/<\/a>\u300d\u3067\u78ba\u8a8d\u3057\u305f\u307b\u3046\u304c\u65e9\u3044\u3068\u601d\u3046\u306e\u3067\u30ea\u30f3\u30af\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<center><iframe src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=48&amp;l=ur1&amp;category=food_super_seijoishii&amp;banner=117T4BEXTG9MKRWC7682&amp;f=ifr&amp;linkID=574b93f16cd81060c8fea2eb714e6393&amp;t=daikiyamada-22&amp;tracking_id=daikiyamada-22\" width=\"728\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-top-navigation-by-user-activation\"><\/iframe><\/center>\n\n\n\n<h3 class=\"wp-block-heading\">\u305f\u3063\u305f\u306e5\u5206\uff01\uff01Grafana\u306e\u5c0e\u5165\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u3000<strong><span class=\"swl-inline-color has-swl-deep-02-color\"><span class=\"swl-marker mark_blue\">Grafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3068\u3066\u3082\u7c21\u5358\u3067\u77ed\u6642\u9593\u3067\u6e08\u307f\u307e\u3059\u3002\uff08\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u5b9f\u65bd\u3059\u308c\u3070\u5b8c\u4e86\uff01\uff01\uff09<\/span><\/span><\/strong><\/p>\n\n\n\n<p>\u3000\u203bDebian\/Ubuntu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\uff08\u4ed6OS\u306f\u516c\u5f0fHP\u300c<a href=\"https:\/\/grafana.com\/grafana\/download?edition=oss\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/grafana.com\/grafana\/download?edition=oss<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code><strong><span class=\"swl-fz u-fz-l\">Step1\uff1alibfontconfig1\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong>\n\u3000sudo apt-get install -y adduser libfontconfig1\n\n<strong><span class=\"swl-fz u-fz-l\">Step2\uff1awget\u306b\u3088\u308bGrafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong>\n\u3000wget https:\/\/dl.grafana.com\/oss\/release\/grafana_10.0.3_amd64.deb\n\n<strong><span class=\"swl-fz u-fz-l\">Step3\uff1adpkg\u306b\u3088\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong>\n\u3000sudo dpkg -i grafana_10.0.3_amd64.deb<\/code><\/pre>\n\n\n\n<p>\u3000\u4e0a\u8a18\u306e3\u3064\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u65bd\u3057\u3001systemctl\u306b\u3088\u308b\u30b5\u30fc\u30d3\u30b9\u958b\u59cb\u3092\u5b9f\u65bd\u3059\u308c\u3070\u8d77\u52d5\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>Grafana\u306e<strong><span class=\"swl-inline-color has-swl-deep-03-color\">\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30dd\u30fc\u30c8\u756a\u53f7\u306f\u300c3000\u300d<\/span><\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong><span class=\"swl-inline-color has-swl-deep-01-color\"><span class=\"swl-marker mark_orange\">\u5229\u7528\u3059\u308bOS\u306b\u3088\u3063\u3066\u306f\u30dd\u30fc\u30c8\u958b\u653e\u3092\u5b9f\u65bd\u3059\u308b\u5fc5\u8981\u3082\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/span><\/span><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>\u3010\u30dd\u30fc\u30c8\u958b\u653e\u65b9\u6cd5\u4f8b\u3011\n\u2460firewall-cmd\u306b\u3088\u308b\u958b\u653e\nfirewall-cmd --add-port=3000\/tcp --zone=public --permanent\nfirewall-cmd --reload\nfirewall-cmd --list-ports --zone=public\n\n\u2461ufw\u306b\u3088\u308b\u958b\u653e\n ufw allow 3000<\/code><\/pre>\n\n\n\n<p>\u30dd\u30fc\u30c8\u958b\u653e\u5f8c\u306f\u3001<strong><span class=\"swl-inline-color has-swl-deep-02-color\"><span class=\"swl-marker mark_blue\">\u300chttp:\/\/(IP\u30a2\u30c9\u30ec\u30b9\uff09:3000\u300d\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd<\/span><\/span><\/strong>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e<strong>\u30e6\u30fc\u30b6\/\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u300cadmin\/admin\u300d<\/strong>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u306b\u3088\u308bGrafana\u3078\u306e\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u3000\u6b21\u306b\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u306b\u3088\u308bGrafana\u3078\u306e\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5\u3092\u691c\u8a0e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u79c1\u304c\u81ea\u5b85\u3067\u69cb\u7bc9\u3057\u3066\u3044\u308bWeb\u30a2\u30d7\u30ea\u306f\u4e00\u5fdc\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u305f\u3081\uff08\u304b\u306a\u308a\u9001\u4fe1\u5143\u306f\u7d5e\u3063\u3066\u307e\u3059\uff09\u3001\u305d\u306eWeb\u30a2\u30d7\u30ea\u7d4c\u7531\u3067Grafana\u3092\u898b\u308c\u308b\u3088\u3046\u306b\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u5bfe\u5fdc\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u5bfe\u5fdc\u65b9\u6cd5\u306f\u5168\u90e8\u3067\uff14\u3064\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-group is-style-big_icon_point\"><div class=\"wp-block-group__inner-container\">\n<ol class=\"wp-block-list\">\n<li><strong><span class=\"swl-fz u-fz-l\"><span class=\"swl-inline-color has-swl-deep-04-color\">Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/span><\/strong><\/li>\n\n\n\n<li><strong><span class=\"swl-fz u-fz-l\"><span class=\"swl-inline-color has-swl-deep-04-color\">Proxy\uff08Apache\uff09\u306e\u8a2d\u5b9a<\/span><\/span><\/strong><\/li>\n\n\n\n<li><span class=\"swl-inline-color has-swl-deep-04-color\"><span class=\"swl-fz u-fz-l\"><strong>Grafana\u306e\u8a2d\u5b9a<\/strong><\/span><\/span><\/li>\n\n\n\n<li><span class=\"swl-fz u-fz-l\"><strong><span class=\"swl-inline-color has-swl-deep-04-color\">\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u8a2d\u5b9a\uff08\u5834\u5408\u306b\u3088\u308b\uff09<\/span><\/strong><\/span><\/li>\n<\/ol>\n<\/div><\/div>\n\n\n\n<p>\u3000<strong><span class=\"swl-inline-color has-swl-deep-01-color\"><span class=\"swl-marker mark_orange\">\u3053\u306e\u624b\u9806\u306b\u3057\u3066\u3044\u308b\u7406\u7531\u306f\u3001\u69cb\u6210\u306b\u3088\u308b\u5f71\u97ff\u304c\u5927\u304d\u3044\u70b9\u3068\u30dd\u30fc\u30c8\u756a\u53f780\u3092\u4ed6\u30b5\u30fc\u30d3\u30b9\u3067\u5229\u7528\u3059\u308b\u969b\u306bGoogle\u3067\u8abf\u3079\u3066\u5bfe\u5fdc\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u70b9\u304c\u5927\u304d\u3044\u3067\u3059\u3002<\/span><\/span><\/strong><\/p>\n\n\n\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"1.1\" width=\"951px\" viewBox=\"-0.5 -0.5 951 282\" content=\"&lt;mxfile host=&quot;Electron&quot; modified=&quot;2023-08-06T10:20:33.144Z&quot; agent=&quot;Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) draw.io\/21.6.5 Chrome\/114.0.5735.243 Electron\/25.3.1 Safari\/537.36&quot; etag=&quot;VL6hb4h6_tACB_aT-5PE&quot; version=&quot;21.6.5&quot; type=&quot;device&quot;&gt;&#10;  &lt;diagram name=&quot;Page-1&quot; id=&quot;JVPUTKxHsyzuv6reWp0W&quot;&gt;&#10;    &lt;mxGraphModel dx=&quot;954&quot; dy=&quot;674&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;1654&quot; pageHeight=&quot;1169&quot; math=&quot;0&quot; shadow=&quot;0&quot;&gt;&#10;      &lt;root&gt;&#10;        &lt;mxCell id=&quot;0&quot; \/&gt;&#10;        &lt;mxCell id=&quot;1&quot; parent=&quot;0&quot; \/&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-4&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.875;exitY=0.5;exitDx=0;exitDy=0;exitPerimeter=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=3;endArrow=classic;endFill=1;startArrow=classic;startFill=1;&quot; parent=&quot;1&quot; source=&quot;GVilkyJSqoubcP2sE34x-1&quot; target=&quot;GVilkyJSqoubcP2sE34x-2&quot; edge=&quot;1&quot;&gt;&#10;          &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-1&quot; value=&quot;&amp;lt;b&amp;gt;&amp;lt;font color=&amp;quot;#0000ff&amp;quot; style=&amp;quot;font-size: 20px;&amp;quot;&amp;gt;\u30a2\u30af\u30bb\u30b9\u5143&amp;lt;\/font&amp;gt;&amp;lt;\/b&amp;gt;&quot; style=&quot;ellipse;shape=cloud;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#0000FF;strokeWidth=2;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;30&quot; y=&quot;300&quot; width=&quot;250&quot; height=&quot;120&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-5&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.5;exitDx=0;exitDy=0;entryX=-0.026;entryY=0.43;entryDx=0;entryDy=0;entryPerimeter=0;strokeWidth=3;startArrow=classic;startFill=1;&quot; parent=&quot;1&quot; source=&quot;GVilkyJSqoubcP2sE34x-2&quot; target=&quot;GVilkyJSqoubcP2sE34x-3&quot; edge=&quot;1&quot;&gt;&#10;          &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-2&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 20px;&amp;quot;&amp;gt;Web\u30a2\u30d7\u30ea&amp;lt;br&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#FF8000;strokeWidth=2;fontColor=#000000;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;440&quot; y=&quot;330&quot; width=&quot;155&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-3&quot; value=&quot;&amp;lt;span style=&amp;quot;font-size: 20px;&amp;quot;&amp;gt;Grafana&amp;lt;\/span&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;strokeWidth=2;verticalAlign=top;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;780&quot; y=&quot;240&quot; width=&quot;155&quot; height=&quot;280&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-8&quot; style=&quot;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=-0.019;entryY=0.445;entryDx=0;entryDy=0;entryPerimeter=0;endArrow=classic;endFill=1;startArrow=classic;startFill=1;strokeWidth=3;&quot; parent=&quot;1&quot; source=&quot;GVilkyJSqoubcP2sE34x-6&quot; target=&quot;GVilkyJSqoubcP2sE34x-3&quot; edge=&quot;1&quot;&gt;&#10;          &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-6&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 20px;&amp;quot;&amp;gt;Apache&amp;lt;br&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#FF8000;strokeWidth=2;fontColor=#000000;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;802.5&quot; y=&quot;300&quot; width=&quot;110&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-11&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.5;entryY=1;entryDx=0;entryDy=0;strokeWidth=3;startArrow=classic;startFill=1;&quot; parent=&quot;1&quot; source=&quot;GVilkyJSqoubcP2sE34x-7&quot; target=&quot;GVilkyJSqoubcP2sE34x-6&quot; edge=&quot;1&quot;&gt;&#10;          &lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-7&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 20px;&amp;quot;&amp;gt;Grafana&amp;lt;br&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeColor=#FF8000;strokeWidth=2;fontColor=#000000;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;802.5&quot; y=&quot;410&quot; width=&quot;110&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-9&quot; value=&quot;80\u756a\u30dd\u30fc\u30c8&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;690&quot; y=&quot;330&quot; width=&quot;90&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;        &lt;mxCell id=&quot;GVilkyJSqoubcP2sE34x-12&quot; value=&quot;3000\u756a\u30dd\u30fc\u30c8&amp;lt;br&amp;gt;Proxy&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;fontSize=16;fontStyle=1&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&#10;          &lt;mxGeometry x=&quot;870&quot; y=&quot;366&quot; width=&quot;110&quot; height=&quot;40&quot; as=&quot;geometry&quot; \/&gt;&#10;        &lt;\/mxCell&gt;&#10;      &lt;\/root&gt;&#10;    &lt;\/mxGraphModel&gt;&#10;  &lt;\/diagram&gt;&#10;&lt;\/mxfile&gt;&#10;\" onclick=\"(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&amp;&amp;src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&amp;&amp;!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&amp;&amp;evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('https:\/\/viewer.diagrams.net\/?client=1&amp;page=0');}}})(this);\" style=\"cursor:pointer;max-width:100%;max-height:282px;\"><defs\/><g><path d=\"M 229.85 121 L 400.9 121\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"\/><path d=\"M 223.1 121 L 232.1 116.5 L 229.85 121 L 232.1 125.5 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><path d=\"M 407.65 121 L 398.65 125.5 L 400.9 121 L 398.65 116.5 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><path d=\"M 63.5 91 C 13.5 91 1 121 41 127 C 1 140.2 46 169 78.5 157 C 101 181 176 181 201 157 C 251 157 251 133 219.75 121 C 251 97 201 73 157.25 85 C 126 67 76 67 63.5 91 Z\" fill=\"#dae8fc\" stroke=\"#0000ff\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 248px; height: 1px; padding-top: 121px; margin-left: 2px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><b><font style=\"font-size: 20px;\" color=\"#0000ff\">\u30a2\u30af\u30bb\u30b9\u5143<\/font><\/b><\/div><\/div><\/div><\/foreignObject><text x=\"126\" y=\"125\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">\u30a2\u30af\u30bb\u30b9\u5143<\/text><\/switch><\/g><path d=\"M 576.1 121 L 658.5 121 L 736.87 121.35\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"\/><path d=\"M 569.35 121 L 578.35 116.5 L 576.1 121 L 578.35 125.5 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><path d=\"M 743.62 121.38 L 734.6 125.84 L 736.87 121.35 L 734.64 116.84 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><rect x=\"411\" y=\"91\" width=\"155\" height=\"60\" fill=\"#ffe6cc\" stroke=\"#ff8000\" stroke-width=\"2\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 153px; height: 1px; padding-top: 121px; margin-left: 412px;\"><div data-drawio-colors=\"color: #000000; \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 20px;\">Web\u30a2\u30d7\u30ea<br \/><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"489\" y=\"125\" fill=\"#000000\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Web\u30a2\u30d7\u30ea&#xa;<\/text><\/switch><\/g><rect x=\"751\" y=\"1\" width=\"155\" height=\"280\" fill=\"#d5e8d4\" stroke=\"#82b366\" stroke-width=\"2\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe flex-start; justify-content: unsafe center; width: 153px; height: 1px; padding-top: 8px; margin-left: 752px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><span style=\"font-size: 20px;\">Grafana<\/span><\/div><\/div><\/div><\/foreignObject><text x=\"829\" y=\"20\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Grafana<\/text><\/switch><\/g><path d=\"M 767.51 99.14 L 754.04 117.46\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"\/><path d=\"M 771.51 93.7 L 769.81 103.62 L 767.51 99.14 L 762.56 98.29 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><path d=\"M 750.04 122.9 L 751.75 112.98 L 754.04 117.46 L 759 118.31 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><rect x=\"773.5\" y=\"61\" width=\"110\" height=\"60\" fill=\"#ffe6cc\" stroke=\"#ff8000\" stroke-width=\"2\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 108px; height: 1px; padding-top: 91px; margin-left: 775px;\"><div data-drawio-colors=\"color: #000000; \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 20px;\">Apache<br \/><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"829\" y=\"95\" fill=\"#000000\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Apache&#xa;<\/text><\/switch><\/g><path d=\"M 828.5 160.9 L 828.5 131.1\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"\/><path d=\"M 828.5 167.65 L 824 158.65 L 828.5 160.9 L 833 158.65 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><path d=\"M 828.5 124.35 L 833 133.35 L 828.5 131.1 L 824 133.35 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"3\" stroke-miterlimit=\"10\" pointer-events=\"all\"\/><rect x=\"773.5\" y=\"171\" width=\"110\" height=\"60\" fill=\"#ffe6cc\" stroke=\"#ff8000\" stroke-width=\"2\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 108px; height: 1px; padding-top: 201px; margin-left: 775px;\"><div data-drawio-colors=\"color: #000000; \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 20px;\">Grafana<br \/><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"829\" y=\"205\" fill=\"#000000\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Grafana&#xa;<\/text><\/switch><\/g><rect x=\"661\" y=\"91\" width=\"90\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 106px; margin-left: 662px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;\">80\u756a\u30dd\u30fc\u30c8<\/div><\/div><\/div><\/foreignObject><text x=\"706\" y=\"111\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"16px\" text-anchor=\"middle\" font-weight=\"bold\">80\u756a\u30dd\u30fc\u30c8<\/text><\/switch><\/g><rect x=\"841\" y=\"127\" width=\"110\" height=\"40\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"\/><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 108px; height: 1px; padding-top: 147px; margin-left: 842px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 16px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;\">3000\u756a\u30dd\u30fc\u30c8<br \/>Proxy<\/div><\/div><\/div><\/foreignObject><text x=\"896\" y=\"152\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"16px\" text-anchor=\"middle\" font-weight=\"bold\">3000\u756a\u30dd\u30fc\u30c8&#8230;<\/text><\/switch><\/g><\/g><switch><g requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\"\/><a transform=\"translate(0,-5)\" xlink:href=\"https:\/\/www.drawio.com\/doc\/faq\/svg-export-text-problems\" target=\"_blank\" rel=\"noopener\"><text text-anchor=\"middle\" font-size=\"10px\" x=\"50%\" y=\"100%\">Text is not SVG &#8211; cannot display<\/text><\/a><\/switch><\/svg>\n\n\n\n<h4 class=\"wp-block-heading\">1. Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n\n\n\n<p>\u3000\u307e\u305a\u3001\u521d\u3081\u306e\u624b\u9806\u3068\u3057\u3066\u306fApache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>\u2460 sudo apt install apache2\n\n\u2461 sudo systemctl start apache2\u3000\uff08Apache2\u30b5\u30fc\u30d3\u30b9\u306e\u958b\u59cb\uff09\n\n\u2462 sudo systemctl enable apache2 \uff08Apaceh2\u30b5\u30fc\u30d3\u30b9\u306e\u81ea\u52d5\u8d77\u52d5ON\uff09 <\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2. Proxy\uff08Apache\uff09\u306e\u8a2d\u5b9a<\/h4>\n\n\n\n<p>\u3000Apache\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306fGrafana\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u3001Proxy\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fProxy\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u5c0e\u5165\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u4ee5\u4e0b\u30b3\u30de\u30f3\u30c9\u3067Proxy\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>\u2460 sudo a2enmod proxy\uff08Proxy\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u8ffd\u52a0\uff09\nEnabling module proxy.\nTo activate the new configuration, you need to run:\n  systemctl restart apache2\n\n\u2461 sudo systemctl restart apache2 \uff08\u4e0a\u8a18\u3067\u518d\u8d77\u52d5\u3057\u308d\u3068\u8a00\u308f\u308c\u308b\u306e\u3067\u518d\u8d77\u52d5\uff09<\/code><\/pre>\n\n\n\n<p>\u3000\u518d\u8d77\u52d5\u5f8c\u306fProxy\u304c\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u300c\/etc\/apache2\/mods-available\/proxy.conf\u300d\u3068\u306a\u308a\u3001\u4eca\u56de\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203bOS\u3084\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3088\u3063\u3066\u306f\u3001\u82e5\u5e72\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>&lt;IfModule mod_proxy.c&gt;\n\n\t# If you want to use apache2 as a forward proxy, uncomment the\n\t# 'ProxyRequests On' line and the &lt;Proxy *&gt; block below.\n\t# WARNING: Be careful to restrict access inside the &lt;Proxy *&gt; block.\n\t# Open proxy servers are dangerous both to your network and to the\n\t# Internet at large.\n\t#\n\t# If you only want to use apache2 as a reverse proxy\/gateway in\n\t# front of some web application server, you DON'T need\n\t# 'ProxyRequests On'.\n\n\tProxyRequests Off \n\t&lt;Proxy *&gt;\n\t   AddDefaultCharset off\n\t   Require all granted <strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u2190\u3092granted\u306b\u3057\u306a\u3044\u3068\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef\u306a\u306e\u3067\u6ce8\u610f<\/span><\/strong>\n\t   #Require local\n\t&lt;\/Proxy&gt;\n\n\t# Enable\/disable the handling of HTTP\/1.1 \"Via:\" headers.\n\t# (\"Full\" adds the server version; \"Block\" removes all outgoing Via: headers)\n\t# Set to one of: Off | On | Full | Block\n\tProxyVia On\n\tProxyPreserveHost On  <strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u2190\u3092On\u306b\u3059\u308b\u3053\u3068\u3067\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092URL\u306b\u4fdd\u6301\u3057\u305f\u72b6\u614b\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\uff08\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3067\u306f\u306a\u3044\u5834\u5408\u306f\u4e0d\u8981\uff09<\/span><\/strong>\n        ProxyPass \/ http:\/\/localhost:3000\/\n        ProxyPassReverse \/ http:\/\/localhost:3000\/\n\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<p>\u3000\u4eca\u56de\u306f\u3001\u4e0a\u8a18\u8a2d\u5b9a\u3067\u4fdd\u5b58\u3057Apache2\u3092\u518d\u8d77\u52d5\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. Grafana\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6<\/h4>\n\n\n\n<p> Apache2\u306e\u8a2d\u5b9a\u3092\u5b8c\u4e86\u3057\u305f\u3068\u3057\u3066\u3082\u3001Grafana\u306e\u65b9\u3067\u53d7\u3051\u4ed8\u3051\u308b\u6e96\u5099\u3092\u3057\u306a\u3044\u3068Grafana\u306b\u3088\u308a\u62d2\u5426\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u305f\u3081\u3001\u4eca\u56de\u306f\u4ee5\u4e0b\u8a2d\u5b9a\uff08\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff1a\/etc\/grafana\/grafana.ini\uff09\u3067\u8d77\u52d5\u3055\u305b\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>&#91;server]\n# The public facing domain name used to access grafana from a browser\n<strong>domain = \"&lt;\u30c9\u30e1\u30a4\u30f3\u540d&gt;\"<\/strong>\n\n# The full public facing url you use in browser, used for redirects and emails\n# If you use reverse proxy and sub path specify full url (with sub path)\n<strong>root_url = %(protocol)s:\/\/%(domain)s:%(http_port)s\/&lt;\u30a2\u30af\u30bb\u30b9\u5143\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;<\/strong><\/code><\/pre>\n\n\n\n<p>\u3000domain\u306f\u30a2\u30af\u30bb\u30b9\u5143\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u6307\u5b9a\u3057\u3066\u3042\u3052\u308b\u3068\u305d\u306e\u30c9\u30e1\u30a4\u30f3\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u3092\u53ef\u80fd\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u672c\u30d6\u30ed\u30b0\u3067\u3042\u308c\u3070\u3001daimaru-tech-blog.com\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001root_url\u306f\u30b7\u30b9\u30c6\u30e0\u5185\u3067\u300cdaimaru-tech-blog.com\u300d\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u308f\u3051\u306b\u3082\u3044\u304b\u306a\u3044\u306e\u3067\u3001\u300cdaimaru-tech-blog.com\/grafana\u300d\u306a\u3069\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u5834\u5408\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Web\u30a2\u30d7\u30ea\u5074\u306eApache2\u306b\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u8a2d\u5b9a<\/h4>\n\n\n\n<p>\u3000\u4eca\u56de\u306e\u69cb\u6210\u3067\u306f\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u9762\u3084\u904b\u7528\u30fb\u4fdd\u5b88\u306e\u89b3\u70b9\u304b\u3089Web\u30a2\u30d7\u30ea\u5074\u306e\u30b5\u30fc\u30d0\u3092\u7d4c\u7531\u3057Grafana\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5834\u5408\u3001Web\u30a2\u30d7\u30ea\u5074\u306e\u8a2d\u5b9a\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>&lt;IfModule mod_proxy.c&gt;\n\n\t# If you want to use apache2 as a forward proxy, uncomment the\n\t# 'ProxyRequests On' line and the &lt;Proxy *&gt; block below.\n\t# WARNING: Be careful to restrict access inside the &lt;Proxy *&gt; block.\n\t# Open proxy servers are dangerous both to your network and to the\n\t# Internet at large.\n\t#\n\t# If you only want to use apache2 as a reverse proxy\/gateway in\n\t# front of some web application server, you DON'T need\n\t# 'ProxyRequests On'.\n\n\tProxyRequests Off \n\t&lt;Proxy *&gt;\n\t   AddDefaultCharset off\n\t   Require all granted <strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u2190\u3092granted\u306b\u3057\u306a\u3044\u3068\u30a2\u30af\u30bb\u30b9\u4e0d\u53ef\u306a\u306e\u3067\u6ce8\u610f<\/span><\/strong>\n\t   #Require local\n\t&lt;\/Proxy&gt;\n\n\t# Enable\/disable the handling of HTTP\/1.1 \"Via:\" headers.\n\t# (\"Full\" adds the server version; \"Block\" removes all outgoing Via: headers)\n\t# Set to one of: Off | On | Full | Block\n\tProxyVia On\n\tProxyPreserveHost On  <strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u2190\u3092On\u306b\u3059\u308b\u3053\u3068\u3067\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3092URL\u306b\u4fdd\u6301\u3057\u305f\u72b6\u614b\u3067\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\uff08\u72ec\u81ea\u30c9\u30e1\u30a4\u30f3\u3067\u306f\u306a\u3044\u5834\u5408\u306f\u4e0d\u8981\uff09<\/span><\/strong>\n        ProxyPass \/ http:\/\/&lt;Grafana\u30b5\u30fc\u30d0\u306e\u30a2\u30c9\u30ec\u30b9&gt;\/\n        ProxyPassReverse \/ http:\/\/&lt;Grafana\u30b5\u30fc\u30d0\u306e\u30a2\u30c9\u30ec\u30b9&gt;\/\n\n&lt;\/IfModule&gt;<\/code><\/pre>\n\n\n\n<p>\u3000Proxy\u306e\u8a2d\u5b9a\u3092\u5c11\u3057\u884c\u3063\u305f\u3060\u3051\u306a\u306e\u3067\u3001\u7c21\u5358\u306b\u7d42\u308f\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prometheus\/Node Exporter\u3068\u306f<\/h2>\n\n\n\n<p>\u3000\u4eca\u56de\u5c0e\u5165\u3057\u305fPrometheus\u3068Node Exporter\u3068\u306f\u3001\u30b5\u30fc\u30d0\u306e\u30a2\u30af\u30bb\u30b9\u72b6\u6cc1\u3084\u8ca0\u8377\u7b49\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306b\u958b\u767a\u3055\u308c\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u3056\u3063\u304f\u308a\u306a\u6982\u8981\u306b\u306f\u306a\u308a\u307e\u3059\u304c\u3001Prometheus\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u4ee5\u4e0b\u306e\u56f3\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3068\u306a\u308a\u307e\u3059\u3002<br>\u203b\u7d30\u304b\u3044\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u8a18\u8f09\u306f\u5272\u611b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" version=\"1.1\" width=\"862px\" viewBox=\"-0.5 -0.5 862 330\" content=\"<mxfile host=&quot;Electron&quot; modified=&quot;2023-08-06T02:02:30.407Z&quot; agent=&quot;Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) draw.io\/21.6.5 Chrome\/114.0.5735.243 Electron\/25.3.1 Safari\/537.36&quot; etag=&quot;V7I8FSoO6ueRNXroxBfH&quot; version=&quot;21.6.5&quot; type=&quot;device&quot;>\n  <diagram name=&quot;Page-1&quot; id=&quot;ckmT52S4Ex201tSnlDUF&quot;>\n    <mxGraphModel dx=&quot;954&quot; dy=&quot;674&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; arrows=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;1654&quot; pageHeight=&quot;1169&quot; math=&quot;0&quot; shadow=&quot;0&quot;>\n      <root>\n        <mxCell id=&quot;0&quot; \/>\n        <mxCell id=&quot;1&quot; parent=&quot;0&quot; \/>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-5&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.5;exitDx=0;exitDy=0;entryX=1;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=2;&quot; edge=&quot;1&quot; parent=&quot;1&quot; source=&quot;Ew5rRfNY_ZSFHV1F48vU-1&quot; target=&quot;Ew5rRfNY_ZSFHV1F48vU-2&quot;>\n          <mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-9&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.25;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=2;&quot; edge=&quot;1&quot; parent=&quot;1&quot; source=&quot;Ew5rRfNY_ZSFHV1F48vU-1&quot; target=&quot;Ew5rRfNY_ZSFHV1F48vU-3&quot;>\n          <mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-11&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;strokeWidth=2;startArrow=classic;startFill=1;endArrow=none;endFill=0;&quot; edge=&quot;1&quot; parent=&quot;1&quot; source=&quot;Ew5rRfNY_ZSFHV1F48vU-1&quot; target=&quot;Ew5rRfNY_ZSFHV1F48vU-4&quot;>\n          <mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-1&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Prometheus Server&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeWidth=2;verticalAlign=middle;strokeColor=#6c8ebf;fontColor=#000000;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;410&quot; y=&quot;360&quot; width=&quot;200&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-2&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Target\uff08\u76e3\u8996\u5bfe\u8c61\uff09&amp;lt;br&amp;gt;Node Exporter&amp;lt;br&amp;gt;&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeWidth=2;verticalAlign=middle;strokeColor=#82b366;fontColor=#000000;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;60&quot; y=&quot;360&quot; width=&quot;200&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-3&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Alert Manager&amp;lt;br&amp;gt;Mail\/LINE etc&amp;lt;br&amp;gt;&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#ffe6cc;strokeWidth=2;verticalAlign=middle;strokeColor=#d79b00;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;720&quot; y=&quot;240&quot; width=&quot;200&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-4&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Prometheus WebUI&amp;lt;br&amp;gt;&amp;lt;div style=&amp;quot;text-align: left;&amp;quot;&amp;gt;&amp;lt;b style=&amp;quot;background-color: initial;&amp;quot;&amp;gt;Grafana&amp;lt;\/b&amp;gt;&amp;lt;\/div&amp;gt;&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;rounded=0;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeWidth=2;verticalAlign=middle;strokeColor=#9673a6;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;720&quot; y=&quot;480&quot; width=&quot;200&quot; height=&quot;60&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-6&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Pull&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;310&quot; y=&quot;360&quot; width=&quot;60&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-7&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Metrics&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;310&quot; y=&quot;390&quot; width=&quot;60&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-10&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Push&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;600&quot; y=&quot;300&quot; width=&quot;60&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-12&quot; value=&quot;&amp;lt;font style=&amp;quot;font-size: 16px;&amp;quot;&amp;gt;&amp;lt;b&amp;gt;PromQL&amp;lt;\/b&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;600&quot; y=&quot;450&quot; width=&quot;60&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-13&quot; value=&quot;&amp;lt;font size=&amp;quot;1&amp;quot; style=&amp;quot;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;font-size: 12px;&amp;quot;&amp;gt;\u76e3\u8996\u5bfe\u8c61\u4e0a\u3067\u8d77\u52d5\u3059\u308bNode Exporter\u304b\u3089&amp;lt;br&amp;gt;\u30b5\u30fc\u30d0\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97&amp;lt;\/span&amp;gt;&amp;lt;\/font&amp;gt;&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;220&quot; y=&quot;440&quot; width=&quot;240&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-14&quot; value=&quot;Promethus\u3067\u5229\u7528\u3055\u308c\u308bPromQL\u3092\u7528\u3044\u3066\u3001&amp;lt;br&amp;gt;Grafana\u7b49\u306e\u53ef\u8996\u5316\u30b7\u30b9\u30c6\u30e0\u306b\u5206\u6790\u30fb\u8868\u793a&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;470&quot; y=&quot;520&quot; width=&quot;240&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n        <mxCell id=&quot;Ew5rRfNY_ZSFHV1F48vU-15&quot; value=&quot;\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3001Alert \u3092Mail\u3084LINE\u7b49\u3067\u901a\u77e5&quot; style=&quot;text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;&quot; vertex=&quot;1&quot; parent=&quot;1&quot;>\n          <mxGeometry x=&quot;470&quot; y=&quot;220&quot; width=&quot;240&quot; height=&quot;30&quot; as=&quot;geometry&quot; \/>\n        <\/mxCell>\n      <\/root>\n    <\/mxGraphModel>\n  <\/diagram>\n<\/mxfile>\n&#8221; onclick=&#8221;(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&amp;&amp;src.nodeName.toLowerCase()!=&#8217;a&#8217;){src=src.parentNode;}if(src==null){if(svg.wnd!=null&amp;&amp;!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data==&#8217;ready&#8217;&amp;&amp;evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute(&#8216;content&#8217;)),&#8217;*&#8217;);window.removeEventListener(&#8216;message&#8217;,r);}};window.addEventListener(&#8216;message&#8217;,r);svg.wnd=window.open(&#8216;https:\/\/viewer.diagrams.net\/?client=1&amp;page=0&#8217;);}}})(this);&#8221; style=&#8221;cursor:pointer;max-width:100%;max-height:330px;&#8221;><defs><\/defs><g><path d=\"M 351 170 L 209.24 170\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"><\/path><path d=\"M 203.24 170 L 211.24 166 L 209.24 170 L 211.24 174 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"all\"><\/path><path d=\"M 551 155 L 606 155 L 606 50 L 652.76 50\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"><\/path><path d=\"M 658.76 50 L 650.76 54 L 652.76 50 L 650.76 46 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"all\"><\/path><path d=\"M 559.24 185 L 606 185 L 606 290 L 661 290\" fill=\"none\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"stroke\"><\/path><path d=\"M 553.24 185 L 561.24 181 L 559.24 185 L 561.24 189 Z\" fill=\"rgb(0, 0, 0)\" stroke=\"rgb(0, 0, 0)\" stroke-width=\"2\" stroke-miterlimit=\"10\" pointer-events=\"all\"><\/path><rect x=\"351\" y=\"140\" width=\"200\" height=\"60\" fill=\"#dae8fc\" stroke=\"#6c8ebf\" stroke-width=\"2\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 170px; margin-left: 352px;\"><div data-drawio-colors=\"color: #000000; \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Promethus Server<\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"451\" y=\"174\" fill=\"#000000\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Promethus Server<\/text><\/switch><\/g><rect x=\"1\" y=\"140\" width=\"200\" height=\"60\" fill=\"#d5e8d4\" stroke=\"#82b366\" stroke-width=\"2\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 170px; margin-left: 2px;\"><div data-drawio-colors=\"color: #000000; \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Target\uff08\u76e3\u8996\u5bfe\u8c61\uff09<br>Node Exporter<br><\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"101\" y=\"174\" fill=\"#000000\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Target\uff08\u76e3\u8996\u5bfe\u8c61\uff09&#8230;<\/text><\/switch><\/g><rect x=\"661\" y=\"20\" width=\"200\" height=\"60\" fill=\"#ffe6cc\" stroke=\"#d79b00\" stroke-width=\"2\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 50px; margin-left: 662px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Alert Manager<br>Mail\/LINE etc<br><\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"761\" y=\"54\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Alert Manager&#8230;<\/text><\/switch><\/g><rect x=\"661\" y=\"260\" width=\"200\" height=\"60\" fill=\"#e1d5e7\" stroke=\"#9673a6\" stroke-width=\"2\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 198px; height: 1px; padding-top: 290px; margin-left: 662px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Prometheus WebUI<br><div style=\"text-align: left;\"><b style=\"background-color: initial;\">Grafana<\/b><\/div><\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"761\" y=\"294\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Prometheus WebUI&#8230;<\/text><\/switch><\/g><rect x=\"251\" y=\"140\" width=\"60\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 58px; height: 1px; padding-top: 155px; margin-left: 252px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Pull<\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"281\" y=\"159\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Pull<\/text><\/switch><\/g><rect x=\"251\" y=\"170\" width=\"60\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 58px; height: 1px; padding-top: 185px; margin-left: 252px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Metrics<\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"281\" y=\"189\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Metrics<\/text><\/switch><\/g><rect x=\"541\" y=\"80\" width=\"60\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 58px; height: 1px; padding-top: 95px; margin-left: 542px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>Push<\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"571\" y=\"99\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Push<\/text><\/switch><\/g><rect x=\"541\" y=\"230\" width=\"60\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 58px; height: 1px; padding-top: 245px; margin-left: 542px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"font-size: 16px;\"><b>PromQL<\/b><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"571\" y=\"249\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">PromQL<\/text><\/switch><\/g><rect x=\"161\" y=\"220\" width=\"240\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 238px; height: 1px; padding-top: 235px; margin-left: 162px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\"><font style=\"\" size=\"1\"><span style=\"font-size: 12px;\">\u76e3\u8996\u5bfe\u8c61\u4e0a\u3067\u8d77\u52d5\u3059\u308bNode Exporter\u304b\u3089<br>\u30b5\u30fc\u30d0\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/span><\/font><\/div><\/div><\/div><\/foreignObject><text x=\"281\" y=\"239\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">\u76e3\u8996\u5bfe\u8c61\u4e0a\u3067\u8d77\u52d5\u3059\u308bNode Exporter\u304b\u3089&#8230;<\/text><\/switch><\/g><rect x=\"411\" y=\"300\" width=\"240\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 238px; height: 1px; padding-top: 315px; margin-left: 412px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\">Promethus\u3067\u5229\u7528\u3055\u308c\u308bPromQL\u3092\u7528\u3044\u3066\u3001<br>Grafana\u7b49\u306e\u53ef\u8996\u5316\u30b7\u30b9\u30c6\u30e0\u306b\u5206\u6790\u30fb\u8868\u793a<\/div><\/div><\/div><\/foreignObject><text x=\"531\" y=\"319\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">Promethus\u3067\u5229\u7528\u3055\u308c\u308bPromQL\u3092\u7528\u3044\u3066\u3001&#8230;<\/text><\/switch><\/g><rect x=\"411\" y=\"0\" width=\"240\" height=\"30\" fill=\"none\" stroke=\"none\" pointer-events=\"all\"><\/rect><g transform=\"translate(-0.5 -0.5)\"><switch><foreignObject pointer-events=\"none\" width=\"100%\" height=\"100%\" requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\" style=\"overflow: visible; text-align: left;\"><div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\" style=\"display: flex; align-items: unsafe center; justify-content: unsafe center; width: 238px; height: 1px; padding-top: 15px; margin-left: 412px;\"><div data-drawio-colors=\"color: rgb(0, 0, 0); \" style=\"box-sizing: border-box; font-size: 0px; text-align: center;\"><div style=\"display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;\">\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3001Alert \u3092Mail\u3084LINE\u7b49\u3067\u901a\u77e5<\/div><\/div><\/div><\/foreignObject><text x=\"531\" y=\"19\" fill=\"rgb(0, 0, 0)\" font-family=\"Helvetica\" font-size=\"12px\" text-anchor=\"middle\">\u95be\u5024\u3092\u8a2d\u5b9a\u3057\u3001Alert \u3092Mail\u3084LINE\u7b49\u3067\u901a\u77e5<\/text><\/switch><\/g><\/g><switch><g requiredFeatures=\"http:\/\/www.w3.org\/TR\/SVG11\/feature#Extensibility\"><\/g><a transform=\"translate(0,-5)\" xlink:href=\"https:\/\/www.drawio.com\/doc\/faq\/svg-export-text-problems\" target=\"_blank\" rel=\"noopener\"><text text-anchor=\"middle\" font-size=\"10px\" x=\"50%\" y=\"100%\">Text is not SVG &#8211; cannot display<\/text><\/a><\/switch><\/svg>\n\n\n\n<p>\u3000\u4eca\u56de\u306f\u3001Prometheus\u30b5\u30fc\u30d0\u3068\u76e3\u8996\u5bfe\u8c61\uff08Target\uff09\u306b\u5c0e\u5165\u3059\u308bNode Exporter\u3001Grafana\u3068Prometheus\u3068\u306e\u9023\u643a\u90e8\u5206\u304a\u8a71\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prometheus\u306e\u5c0e\u5165<\/h2>\n\n\n\n<p>\u3000Prometheus\u306e\u5c0e\u5165\u3082Grafana\u540c\u69d8\u306bwget\u30b3\u30de\u30f3\u30c9\u3092\u5229\u7528\u3057\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u516c\u5f0fHP\u300c<a href=\"https:\/\/prometheus.io\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/prometheus.io\/download\/<\/a>\u300d\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>wget https:\/\/github.com\/prometheus\/prometheus\/releases\/tag\/v2.45.0\/prometheus-2.45.0.linux-amd64.tar.gz<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u30d5\u30a1\u30a4\u30eb\u3092tar\u30b3\u30de\u30f3\u30c9\u3067\u89e3\u51cd\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\u3084Prometheus\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\u3092\u5b9f\u65bd\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>Step1\uff1a\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5\ncp -r prometheus-2.45.0.linux-amd64 \/usr\/local\/src\/\n\nStep2\uff1a\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u7de8\u96c6\nsudo vim  \/usr\/lib\/systemd\/system\/prometheus.service\n\nStep3\uff1a\u30c7\u30fc\u30e2\u30f3\u306e\u8aad\u8fbc\nsudo systemctl daemon-reload\n\nStep4\uff1a\u30b7\u30b9\u30c6\u30e0\u8d77\u52d5\nsudo systemctl enable prometheus.service\nsudo systemctl start prometheus.service\n\nStep5\uff1a\u6b63\u5e38\u72b6\u614b\u306e\u78ba\u8a8d\nhttp:&#47;&#47;(IP\u30a2\u30c9\u30ec\u30b9\uff09:9090<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u624b\u9806\u3067\u5b9f\u65bd\u3057\u3066\u3044\u305f\u3060\u304f\u3068\u30b9\u30e0\u30fc\u30ba\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u8d77\u52d5\u304c\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Step2\u3067\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08\/usr\/lib\/systemd\/system\/prometheus.service\uff09\u306e\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30b0\u306e\u30ed\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\u671f\u9593\u306f1\u5e74\u7a0b\u5ea6\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>&#91;Unit]\nDescription=Prometheus - Monitoring system and time series database\nDocumentation=https:\/\/prometheus.io\/docs\/introduction\/overview\/\nAfter=network-online.target\n\n&#91;Service]\nType=simple\nExecStart=\/usr\/local\/src\/prometheus-2.45.0.linux-amd64\/prometheus \\\n  --config.file=\/usr\/local\/src\/prometheus-2.45.0.linux-amd64\/prometheus.yml --storage.tsdb.retention.time 1y \\\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<p>\u305d\u3057\u3066\u3001Step3\u3068Step4\u3092\u5b9f\u65bd\u3059\u308b\u3068Prometheus\u306e\u8d77\u52d5\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u6ce8\u610f\u70b9\uff1a\u30dd\u30fc\u30c8\u306e\u89e3\u653e\u306f\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>Step5\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2874\" height=\"1026\" src=\"http:\/\/daimaru-tech-blog.com\/wp-content\/uploads\/2023\/08\/Prometheus_Toppage.png\" alt=\"\" class=\"wp-image-1059\"\/><figcaption class=\"wp-element-caption\">Toppage<\/figcaption><\/figure>\n\n\n\n<p>\u3053\u3046\u306a\u308c\u3070\u3001Prometheus\u30b5\u30fc\u30d0\u306e\u6e96\u5099\u306f\u4e00\u65e6\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Node Exporter\u306e\u5c0e\u5165\u30fbPrometheus\u30b5\u30fc\u30d0\u3068\u306e\u9023\u643a<\/h2>\n\n\n\n<p>\u3000\u6b21\u306b\u76e3\u8996\u5bfe\u8c61\uff08Target\uff09\u306bNode Exporter\u3092\u5c0e\u5165\u3057\u3001Prometheus\u30b5\u30fc\u30d0\u3068\u306e\u9023\u643a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step1\uff1aNode Exporter\u306e\u5c0e\u5165<\/h3>\n\n\n\n<p>Node Exporter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u69d8\u3005\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306fapt install\u3067\u5b9f\u65bd\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\u3001wget\u306b\u3088\u308b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\/tar\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308b\u56de\u7b54\u3067\u3082\u5b9f\u65bd\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code>sudo apt install prometheus-node-exporter<\/code><\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306f\u3001Node Exporter\u3092\u8d77\u52d5\u3059\u308b\u30689100\u756a\u30dd\u30fc\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3067\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2874\" height=\"542\" src=\"http:\/\/daimaru-tech-blog.com\/wp-content\/uploads\/2023\/08\/Node_Exporter_Access_Display.png\" alt=\"\" class=\"wp-image-1060\"\/><figcaption class=\"wp-element-caption\">Node_Exporter \u30c8\u30c3\u30d7\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u753b\u9762\u306e\u300cMetrics\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u69d8\u3005\u306a\u30b5\u30fc\u30d0\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u3001Node Exporter\u306e\u5c0e\u5165\u5b8c\u4e86\u3067\u3059\u3002<br>\u203b\u60c5\u5831\u306f\u4e00\u90e8\u306e\u8868\u793a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1232\" height=\"860\" src=\"http:\/\/daimaru-tech-blog.com\/wp-content\/uploads\/2023\/08\/Node_Exporter_Metrics.png\" alt=\"\" class=\"wp-image-1061\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step2\uff1aPrometheus\u30b5\u30fc\u30d0\u3068\u306e\u9023\u643a<\/h3>\n\n\n\n<p>Node Exporter\u3092\u5c0e\u5165\u3057\u305f\u5f8c\u306f\u3001Prometheus\u30b5\u30fc\u30d0\u3068\u306e\u9023\u643a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u56f3\u306b\u3082\u3042\u308b\u901a\u308a\u3001Node Exporter\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u306b\u306fPrometheus\u30b5\u30fc\u30d0\u304cPull\u65b9\u5f0f\u3067\u53d6\u5f97\u3059\u308b\u305f\u3081\u3001\u8a2d\u5b9a\u306a\u3069\u306fPrometheus\u30b5\u30fc\u30d0\u306e\u65b9\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u3001\u8a2d\u5b9a\u3057\u305f\u5185\u5bb9\uff08\/usr\/local\/src\/prometheus-2.45.0.linux-amd64\/prometheus.yml\uff09\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-background-color has-background\"><code># my global config\nglobal:\n  scrape_interval: 20s # Set the scrape interval to every 15 seconds. Default is every 1 minute.\n  evaluation_interval: 20s # Evaluate rules every 15 seconds. The default is every 1 minute.\n  # scrape_timeout is set to the global default (10s).\n  scrape_timeout: 20s\n# Alertmanager configuration\nalerting:\n  alertmanagers:\n    - static_configs:\n        - targets:\n          # - alertmanager:9093\n\n# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.\nrule_files:\n  # - \"first_rules.yml\"\n  # - \"second_rules.yml\"\n\n# A scrape configuration containing exactly one endpoint to scrape:\n# Here it's Prometheus itself.\nscrape_configs:\n  # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.\n <strong> - job_name: \"prometheus\"\n\n    # metrics_path defaults to '\/metrics'\n    # scheme defaults to 'http'.\n\n    static_configs:\n      - targets: &#91;\"localhost:9090\"]\n  - job_name: \"Mgmt\"\n    static_configs:\n      - targets: &#91;\"&lt;IP\u30a2\u30c9\u30ec\u30b9&gt;:9100\",\"&lt;IP\u30a2\u30c9\u30ec\u30b9&gt;:9100\"]\n  - job_name: \"Service\"\n    static_configs:\n      - targets: &#91;\"&lt;IP\u30a2\u30c9\u30ec\u30b9&gt;:9100\",\"&lt;IP\u30a2\u30c9\u30ec\u30b9&gt;:9100\"]<\/strong><\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067Prometheus\u3092\u8d77\u52d5\u3055\u305b\u308b\u3068\u3001\u6307\u5b9a\u3057\u305fTarget\u306b\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u306b\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u8ffd\u8a18\u3057\u305f\u90e8\u5206\u306f\u6700\u5f8c\u306e\u592a\u6587\u5b57\u90e8\u5206\u306e-job_name: &#8220;proemtheus&#8221;\u304b\u3089\u6700\u7d42\u884c\u307e\u3067\u3067\u3059\u3002<\/p>\n\n\n\n<p>job_name\u306f\u30b0\u30eb\u30fc\u30d7\u540d\u3068\u3057\u3066\u8a8d\u8b58\u3057\u3066\u3082\u3089\u3048\u308c\u3070\u554f\u984c\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u7d50\u679c\u3001prometheus\u306estatus\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2348\" height=\"1310\" src=\"http:\/\/daimaru-tech-blog.com\/wp-content\/uploads\/2023\/08\/Prometheus_Status_Check.png\" alt=\"\" class=\"wp-image-1063\"\/><figcaption class=\"wp-element-caption\">Prometheus Status\u30c1\u30a7\u30c3\u30af\u753b\u9762<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b8c\u6210\u3057\u305f\u30b5\u30fc\u30d0\u76e3\u8996\u30b7\u30b9\u30c6\u30e0<\/h2>\n\n\n\n<p> \u6700\u5f8c\u306b\u5b8c\u6210\u3057\u305f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"2844\" height=\"1226\" src=\"http:\/\/daimaru-tech-blog.com\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-06-at-13.10.53.png\" alt=\"\" class=\"wp-image-1064\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u3000\u4eca\u56de\u5c0e\u5165\u3057\u305f\u306e\u306f\u30b5\u30fc\u30d0\u306b\u5bfe\u3059\u308b\u76e3\u8996\u30b7\u30b9\u30c6\u30e0\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306f\u3001\u4eca\u5c0e\u5165\u596e\u95d8\u4e2d\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u6a5f\u5668\u3084\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u5bfe\u3059\u308b\u76e3\u8996\u30b7\u30b9\u30c6\u30e0\u306e\u5c0e\u5165\u306b\u3064\u3044\u3066\u8a18\u4e8b\u3092\u307e\u3068\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Prometheus\u3084Grafana\u306b\u3064\u3044\u3066\u66f4\u306b\u52c9\u5f37\u3057\u305f\u3044\u65b9\u306f\u3001\u4ee5\u4e0b\u306e\u6559\u6750\u3092\u8aad\u3093\u3067\u307f\u308b\u306e\u304c\u304a\u3059\u3059\u3081\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!-- START MoshimoAffiliateEasyLink -->\n<script type=\"text\/javascript\">\n(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;\nb[a]=b[a]||function(){arguments.currentScript=c.currentScript\n||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};\nc.getElementById(a)||(d=c.createElement(f),d.src=g,\nd.id=a,e=c.getElementsByTagName(\"body\")[0],e.appendChild(d))})\n(window,document,\"script\",\"\/\/dn.msmstatic.com\/site\/cardlink\/bundle.js?20220329\",\"msmaflink\");\nmsmaflink({\"n\":\"\u5165\u9580 Prometheus \u30a4\u30f3\u30d5\u30e9\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0 [ Brian Brazil ]\",\"b\":\"\",\"t\":\"\",\"d\":\"https:\\\/\\\/thumbnail.image.rakuten.co.jp\",\"c_p\":\"\",\"p\":[\"\\\/@0_mall\\\/book\\\/cabinet\\\/8772\\\/9784873118772.jpg\"],\"u\":{\"u\":\"https:\\\/\\\/item.rakuten.co.jp\\\/book\\\/15874213\\\/\",\"t\":\"rakuten\",\"r_v\":\"\"},\"v\":\"2.1\",\"b_l\":[{\"id\":2,\"u_tx\":\"Amazon\u3067\u307f\u308b\",\"u_bc\":\"#f79256\",\"u_url\":\"https:\\\/\\\/www.amazon.co.jp\\\/%E5%85%A5%E9%96%80-Prometheus-%E2%80%95%E3%82%A4%E3%83%B3%E3%83%95%E3%83%A9%E3%81%A8%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E3%83%91%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%B3%E3%82%B9%E3%83%A2%E3%83%8B%E3%82%BF%E3%83%AA%E3%83%B3%E3%82%B0-Brian-Brazil\\\/dp\\\/4873118778?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A\\u0026crid=E7RMHI63Q3A3\\u0026keywords=prometheus\\u0026qid=1691296189\\u0026sprefix=prometheu%2Caps%2C194\\u0026sr=8-3\\u0026linkCode=ll1\\u0026tag=daikiyamada-22\\u0026linkId=22391779dbf31ad7edeafed3004d9009\\u0026language=ja_JP\\u0026ref_=as_li_ss_tl\",\"a_id\":0,\"p_id\":0,\"pl_id\":0,\"pc_id\":0,\"s_n\":\"custom_2\",\"u_so\":1},{\"id\":3,\"u_tx\":\"\u697d\u5929\u5e02\u5834\u3067\u898b\u308b\",\"u_bc\":\"#f76956\",\"u_url\":\"https:\\\/\\\/item.rakuten.co.jp\\\/book\\\/15874213\\\/\",\"a_id\":3735106,\"p_id\":54,\"pl_id\":27059,\"pc_id\":54,\"s_n\":\"rakuten\",\"u_so\":2}],\"eid\":\"mz46g\",\"s\":\"l\"});\n<\/script>\n<div id=\"msmaflink-mz46g\">\u30ea\u30f3\u30af<\/div>\n<!-- MoshimoAffiliateEasyLink END -->\n\n\n\n<!-- START MoshimoAffiliateEasyLink -->\n<script type=\"text\/javascript\">\n(function(b,c,f,g,a,d,e){b.MoshimoAffiliateObject=a;\nb[a]=b[a]||function(){arguments.currentScript=c.currentScript\n||c.scripts[c.scripts.length-2];(b[a].q=b[a].q||[]).push(arguments)};\nc.getElementById(a)||(d=c.createElement(f),d.src=g,\nd.id=a,e=c.getElementsByTagName(\"body\")[0],e.appendChild(d))})\n(window,document,\"script\",\"\/\/dn.msmstatic.com\/site\/cardlink\/bundle.js?20220329\",\"msmaflink\");\nmsmaflink({\"n\":\"\u56f3\u89e3\u3068\u5b9f\u8df5\u3067\u73fe\u5834\u3067\u4f7f\u3048\u308bGrafana[\u672c\\\/\u96d1\u8a8c] (\u6280\u8853\u306e\u6cc9\u30b7\u30ea\u30fc\u30ba) \\\/ \u5e72\u5834\u96c4\u4ecb\\\/\u8457 \u5317\u5d0e\u6075\u51e1\\\/\u8457 \u9752\u6728\u656c\u6a39\\\/\u8457 \u9ad8\u6a4b\u54f2\u5e73\\\/\u8457 \u516b\u795e\u7965\u53f8\\\/\u8457 \u9db4\u5ca1\u6d69\u5e73\\\/\u8457 \u7027\u5ddd\u5927\u6a39\\\/\u8457\",\"b\":\"\",\"t\":\"\",\"d\":\"https:\\\/\\\/thumbnail.image.rakuten.co.jp\",\"c_p\":\"\",\"p\":[\"\\\/@0_mall\\\/neowing-r\\\/cabinet\\\/item_img_1695\\\/neobk-2818158.jpg\"],\"u\":{\"u\":\"https:\\\/\\\/item.rakuten.co.jp\\\/neowing-r\\\/neobk-2818158\\\/\",\"t\":\"rakuten\",\"r_v\":\"\"},\"v\":\"2.1\",\"b_l\":[{\"id\":2,\"u_tx\":\"Amazon\u3067\u307f\u308b\",\"u_bc\":\"#f79256\",\"u_url\":\"https:\\\/\\\/www.amazon.co.jp\\\/%E5%9B%B3%E8%A7%A3%E3%81%A8%E5%AE%9F%E8%B7%B5%E3%81%A7%E7%8F%BE%E5%A0%B4%E3%81%A7%E4%BD%BF%E3%81%88%E3%82%8BGrafana-%E5%B9%B2%E5%A0%B4-%E9%9B%84%E4%BB%8B\\\/dp\\\/4295601489?__mk_ja_JP=%E3%82%AB%E3%82%BF%E3%82%AB%E3%83%8A\\u0026crid=3DYYPTXDAE33\\u0026keywords=grafana\\u0026qid=1691296201\\u0026sprefix=grafan%2Caps%2C207\\u0026sr=8-1\\u0026linkCode=ll1\\u0026tag=daikiyamada-22\\u0026linkId=039fc41db61e7e3d652ecf0bc430e92e\\u0026language=ja_JP\\u0026ref_=as_li_ss_tl\",\"a_id\":0,\"p_id\":0,\"pl_id\":0,\"pc_id\":0,\"s_n\":\"custom_2\",\"u_so\":1},{\"id\":3,\"u_tx\":\"\u697d\u5929\u5e02\u5834\u3067\u898b\u308b\",\"u_bc\":\"#f76956\",\"u_url\":\"https:\\\/\\\/item.rakuten.co.jp\\\/neowing-r\\\/neobk-2818158\\\/\",\"a_id\":3735106,\"p_id\":54,\"pl_id\":27059,\"pc_id\":54,\"s_n\":\"rakuten\",\"u_so\":2}],\"eid\":\"wj5rp\",\"s\":\"l\"});\n<\/script>\n<div id=\"msmaflink-wj5rp\">\u30ea\u30f3\u30af<\/div>\n<!-- MoshimoAffiliateEasyLink END -->\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u300c\u3060\u3044\u307e\u308b\u300d\u3067\u3059\u3002 \u4eca\u56de\u306f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u306a\u304f\u3001\u672c\u30d6\u30ed\u30b0\u3084\u59bb\u306e\u30d6\u30ed\u30b0\u3067\u3042\u308b\u300c\u3048\u306e\u304d\u3060\u3051\u30d6\u30ed\u30b0\u3060\u3051\u300d\u3084\u500b\u4eba\u306e\u751f\u6d3b\u3092\u4fbf\u5229\u3001\u5feb\u9069\u306b\u3059\u308b\u305f\u3081\u306b\u69cb\u7bc9\u3057\u3066\u3044\u308b\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u7b49\u306e\u30b5\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1065,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[609,621],"tags":[35,34,36,32,33,31],"class_list":["post-1039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-609","category--tips","tag-grafana","tag-prometheus","tag-36","tag-32","tag-33","tag-31"],"_links":{"self":[{"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/1039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1039"}],"version-history":[{"count":4,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions"}],"predecessor-version":[{"id":1073,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/posts\/1039\/revisions\/1073"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=\/wp\/v2\/media\/1065"}],"wp:attachment":[{"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daimaru-tech-blog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}