{"id":114,"date":"2023-03-02T19:56:24","date_gmt":"2022-07-23T14:01:47","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T20:50:32","modified_gmt":"2025-07-31T11:50:32","slug":"ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5"},"content":{"rendered":"<p>\u8457\u8005\u306f\u3001COVID-19\u6551\u6e08\u57fa\u91d1\u3092\u5bc4\u4ed8\u306e\u5bfe\u8c61\u306b\u9078\u3073\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u300c\u5bc4\u4ed8\u306e\u305f\u3081\u306b\u66f8\u304f\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3067\u3059\u3002<\/p>\n<h3>\u3053\u3093\u306b\u3061\u306f\u3001\u521d\u3081\u307e\u3057\u3066\u3002<\/h3>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u30e1\u30e2\u30ea\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002Prometheus\u3084Grafana\u306a\u3069\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30af\u30e9\u30b9\u30bf\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Prometheus\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u76e3\u8996\u304a\u3088\u3073\u30a2\u30e9\u30fc\u30c8\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3042\u308a\u3001\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u3067\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53ce\u96c6\u30fb\u4fdd\u5b58\u3057\u307e\u3059\u3002Grafana\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u53ef\u8996\u5316\u3068\u5206\u6790\u306e\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002\u3055\u307e\u3056\u307e\u306a\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u8fbc\u307f\u3001\u30af\u30a8\u30ea\u3092\u884c\u3044\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u53ef\u80fd\u306a\u30b0\u30e9\u30d5\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e88\u671f\u3057\u306a\u3044\u52d5\u4f5c\u304c\u3042\u3063\u305f\u5834\u5408\u306b\u306f\u3001\u8fc5\u901f\u304b\u3064\u7c21\u5358\u306b\u901a\u77e5\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u3089\u3092\u5171\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001MongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u3001\u76e3\u8996\u3001\u5206\u6790\u3001\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u3001Prometheus\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u3057\u3066Grafana\u3067\u76e3\u8996\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u3092Prometheus\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3001Prometheus\u304c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30e1\u30c8\u30ea\u30c3\u30af\u3092\u30b9\u30af\u30ec\u30a4\u30d7\u3057\u3066Grafana\u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306b\u5f93\u3046\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>One Ubuntu 20.04 server with a non-root user with sudo privileges and a firewall configured with ufw, which you can do by following the Initial Server Setup Guide for Ubuntu 20.04.<\/li>\n<li>MongoDB installed on the Ubuntu 20.04 server, which you can do by following the tutorial, How To Install MongoDB on Ubuntu 20.04.<\/li>\n<li>Grafana installed on the Ubuntu 20.04 server, which you can do by following Steps 1 through 4 of the tutorial, How To Install and Secure Grafana on Ubuntu 20.04.<\/li>\n<\/ul>\n<p>Grafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>A fully registered domain name. This tutorial uses your_domain throughout. You can purchase a domain name on Namecheap, get one for free on Freenom, or use the domain registrar of your choice.<\/li>\n<li>The following DNS records set up for your server. You can follow the How To Add Domains article for details on how to add them if you are using Silicon Cloud.An A record with your_domain pointing to your server\u2019s public IP address.<br \/>\nAn A record with www.your_domain pointing to your server\u2019s public IP address.<\/li>\n<li>Nginx set up by following the How To Install Nginx on Ubuntu 20.04 tutorial, including a server block for your domain.<\/li>\n<li>An Nginx server block with Let\u2019s Encrypt configured, which you can set up by following How To Secure Nginx with Let\u2019s Encrypt on Ubuntu 20.04.<\/li>\n<\/ul>\n<h2>\u30b9\u30c6\u30c3\u30d71 &#8211; Prometheus\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h2>\n<p>Prometheus\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b7\u30b9\u30c6\u30e0\u76e3\u8996\u3068\u30a2\u30e9\u30fc\u30c8\u306e\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3067\u3042\u308a\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u6642\u7cfb\u5217\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53ce\u96c6\u30fb\u4fdd\u5b58\u3057\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u60c5\u5831\u306f\u8a18\u9332\u3055\u308c\u305f\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3068\u5171\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u624b\u9806\u3067\u306f\u3001Prometheus\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>Prometheus\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u6700\u521d\u306b\u3001Prometheus\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001Prometheus\u306e\u8a2d\u5b9a\u304a\u3088\u3073\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308bprometheus\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/etc\/<mark>prometheus<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30c7\u30fc\u30bf\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> <span class=\"token parameter variable\">-p<\/span> \/var\/lib\/<mark>prometheus<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3001\u5727\u7e2e\u3055\u308c\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002Prometheus\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5727\u7e2e\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u4e8b\u524d\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u305f\u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u3067\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002Prometheus\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u306b\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u3092\u8a2a\u308c\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f32.31.0\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u756a\u53f7\u3092\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">wget<\/span> https:\/\/github.com\/prometheus\/prometheus\/releases\/download\/<mark>v2.31.0<\/mark>\/prometheus-<mark>2.31.0.<\/mark>linux-amd64.tar.gz<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4e00\u5ea6\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001tar\u30dc\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Ichido daunr\u014ddo shitara, tar b\u014dru fairu o kait\u014d shite kudasai.)<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">tar<\/span> <span class=\"token parameter variable\">-xvf<\/span> prometheus-<mark>2.31.0.<\/mark>linux-amd64.tar.gz<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u62bd\u51fa\u3057\u305f\u5f8c\u3001Prometheus\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> prometheus-<mark>2.31.0.<\/mark>linux-amd64<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u308c\u304b\u3089\u3001Prometheus\u3068Promtool\u306e\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\/usr\/local\/bin\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> prometheus promtool \/usr\/local\/bin\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001Prometheus\u306b\u95a2\u9023\u3059\u308b\u3059\u3079\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u30921\u3064\u306e\u5834\u6240\u306b\u79fb\u52d5\u3057\u307e\u3059\uff1a\/etc\/prometheus\/\u3002<br \/>\n\u30b3\u30f3\u30bd\u30fc\u30eb\u30d5\u30a1\u30a4\u30eb\u3092consoles\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u3092console_libraries\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> consoles\/ console_libraries\/ \/etc\/prometheus\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u30b3\u30f3\u30bd\u30fc\u30eb\u30e9\u30a4\u30d6\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u306f\u3001Prometheus GUI\u3092\u8d77\u52d5\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u4fdd\u6301\u3055\u308c\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3059\u308b\u969b\u306b\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001prometheus.yml\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\/etc\/prometheus\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> prometheus.yml \/etc\/prometheus\/prometheus.yml<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>prometheus.yml\u306f\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306e\u30dd\u30fc\u30c8\u3084\u30b5\u30fc\u30d3\u30b9\u958b\u59cb\u6642\u306b\u4f7f\u7528\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<p>Prometheus\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">prometheus <span class=\"token parameter variable\">&#8211;version<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306b\u985e\u4f3c\u3057\u305f\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>prometheus, version <mark>2.31.0<\/mark> (branch: HEAD, revision: b41e0750abf5cc18d8233161560731de05199330) build user: root@0aa1b7fc430d build date: 20220714-15:13:18 go version: go1.18.4 platform: linux\/amd64<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Prometheus\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u305d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u306ePrometheus\u306e\u5b9f\u884c<\/h3>\n<p>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306e\u30b7\u30b9\u30c6\u30e0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u524d\u306b\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306e\u30b0\u30eb\u30fc\u30d7\u3068\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5fc5\u8981\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u3092\u6301\u3064\u5c02\u7528\u306e\u30aa\u30fc\u30ca\u30fc\u30e6\u30fc\u30b6\u30fc\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">groupadd<\/span> <span class=\"token parameter variable\">&#8211;system<\/span> <mark>prometheus<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u5148\u307b\u3069\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30b0\u30eb\u30fc\u30d7\u306b\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">useradd<\/span> <span class=\"token parameter variable\">-s<\/span> \/sbin\/nologin <span class=\"token parameter variable\">&#8211;system<\/span> <span class=\"token parameter variable\">-g<\/span> <mark>prometheus<\/mark> <mark>prometheus<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6307\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u6b63\u3057\u3044\u6a29\u9650\u3092\u6301\u3064\u3088\u3046\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u6240\u6709\u6a29\u3068\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chown<\/span> <span class=\"token parameter variable\">-R<\/span> prometheus:prometheus \/etc\/prometheus\/ \/var\/lib\/prometheus\/<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> <span class=\"token parameter variable\">-R<\/span> <span class=\"token number\">775<\/span> \/etc\/prometheus\/ \/var\/lib\/prometheus\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066Prometheus\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002nano\u3084\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001prometheus.service\u3068\u3044\u3046systemd\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/<mark>prometheus.service<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/systemd\/system\/prometheus.service \u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1a\u300c\/etc\/systemd\/system\/prometheus.service\u300d<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=Prometheus\r\nWants=network-online.target\r\nAfter=network-online.target\r\n\r\n[Service]\r\nUser=prometheus\r\nGroup=prometheus\r\nRestart=always\r\nType=simple\r\nExecStart=\/usr\/local\/bin\/prometheus \\\r\n    --config.file=\/etc\/prometheus\/prometheus.yml \\\r\n    --storage.tsdb.path=\/var\/lib\/prometheus\/ \\\r\n    --web.console.templates=\/etc\/prometheus\/consoles \\\r\n    --web.console.libraries=\/etc\/prometheus\/console_libraries \\\r\n    --web.listen-address=0.0.0.0:9090\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001Prometheus\u3092ExecStart\u30d6\u30ed\u30c3\u30af\u306b\u30ea\u30b9\u30c8\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001systemd\u306b\u6307\u793a\u3055\u308c\u3066Prometheus\u3092prometheus\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u5b9f\u884c\u3057\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\/etc\/prometheus\/prometheus.yml\u3092\u4f7f\u7528\u3057\u3001\u30c7\u30fc\u30bf\u3092\/var\/lib\/prometheus\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4fdd\u5b58\u3059\u308b\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001Prometheus\u3092\u30dd\u30fc\u30c89090\u3067\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3082\u8a2d\u5b9a\u3057\u307e\u3059\u3002 (systemd\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u307e\u3059\u304c\u3001\u300cUnderstanding Systemd Units and Unit Files\u300d\u3067\u8a73\u7d30\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002)<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u30ca\u30ce\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001CTRL+X \u3092\u62bc\u3057\u3001\u6b21\u306b Y \u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start prometheus<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u6642\u306b\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> prometheus<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status prometheus<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u30b5\u30fc\u30d3\u30b9\u304c\u30a2\u30af\u30c6\u30a3\u30d6\uff08\u5b9f\u884c\u4e2d\uff09\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<div>\u51fa\u529b\u3059\u308b\u3002<\/div>\n<pre class=\"post-pre\"><code>\u25cf prometheus.service - Prometheus\r\n     Loaded: loaded (\/etc\/systemd\/system\/prometheus.service; enabled; vendor preset: enabled)\r\n     Active: <mark>active (running)<\/mark> since Fri 2022-08-05 18:06:05 UTC; 13s ago\r\n   Main PID: 7177 (prometheus)\r\n      Tasks: 6 (limit: 527)\r\n     Memory: 21.0M\r\n     CGroup: \/system.slice\/prometheus.service\r\n             \u2514\u25007177 \/usr\/local\/bin\/prometheus --config.file=\/etc\/prometheus\/prometheus.yml --storage.tsdb.path=\/var\/lib\/prometheus\/ --web.console.template&gt;\r\n<\/code><\/pre>\n<p>Prometheus\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u306eIP\u30a2\u30c9\u30ec\u30b9\u306e\u5f8c\u306b\u30dd\u30fc\u30c89090\u3092\u8ffd\u52a0\u3057\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\uff1ahttp:\/\/your_server_ip:9090\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aPrometheus\u306eWeb\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u3067\u30dd\u30fc\u30c89090\u3092\u8a31\u53ef\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u73fe\u5728\u306eUFW\u306e\u30eb\u30fc\u30eb\u30bb\u30c3\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\nsudo ufw status<\/div>\n<p>\u30dd\u30fc\u30c89090\u304c\u3059\u3067\u306b\u8a31\u53ef\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<br \/>\nsudo ufw allow 9090<\/p>\n<\/div>\n<p>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306eWeb\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/65-0.png\" alt=\"Screencapture showing the Prometheus web console\" \/><\/div>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001Prometheus\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092Prometheus\u306b\u30d0\u30a4\u30f3\u30c9\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 &#8211; MongoDB Exporter\u306e\u8a2d\u5b9a<\/h2>\n<p>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306f\u3001\u30e1\u30c8\u30ea\u30c3\u30af\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306b\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u3067\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u304cMongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>MongoDB Exporter\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u307e\u305a\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">mkdir<\/span> <mark>mongodb-exporter<\/mark><\/li>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> <mark>mongodb-exporter<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MongoDB\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306f\u3001Github\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306f\u30a2\u30fc\u30ab\u30a4\u30d6\u5185\u306e\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u304c\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">wget<\/span> https:\/\/github.com\/percona\/mongodb_exporter\/releases\/download\/<mark>v0.7.1<\/mark>\/mongodb_exporter-<mark>0.7.1.<\/mark>linux-amd64.tar.gz<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u73fe\u5728\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u5c55\u958b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">tar<\/span> xvzf mongodb_exporter-<mark>0.7.1.<\/mark>linux-amd64.tar.gz<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u7d42\u7684\u306b\u3001mongodb_exporter\u30d0\u30a4\u30ca\u30ea\u3092usr\/local\/bin\/\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mv<\/span> mongodb_exporter \/usr\/local\/bin\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001MongoDB\u306e\u8a8d\u8a3c\u3092\u6709\u52b9\u306b\u3057\u3001\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u7528\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<h3>MongoDB\u306e\u8a8d\u8a3c\u3092\u6709\u52b9\u5316\u3059\u308b\u3002<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306bMongoDB\u306e\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3057\u3001\u30af\u30e9\u30b9\u30bf\u30fc\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u76e3\u8996\u3059\u308b\u305f\u3081\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>mongo\u3092\u4f7f\u7528\u3057\u3066\u3001MongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u63a5\u7d9a\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">mongo<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30af\u30e9\u30b9\u30bf\u30e2\u30cb\u30bf\u30ed\u30fc\u30eb\u3092\u6301\u3064\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306b\u7ba1\u7406\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u7ba1\u7406\u8005\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5207\u308a\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\">use admin<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u7ba1\u7406\u8005\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u5207\u308a\u66ff\u3048\u305f\u5f8c\u3001clusterMonitor\u306e\u5f79\u5272\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\">db.createUser<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span>user: <span class=\"token string\">&#8220;<mark>test<\/mark>&#8220;<\/span>,pwd: <span class=\"token string\">&#8220;<mark>testing<\/mark>&#8220;<\/span>,roles: <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span> role: <span class=\"token string\">&#8220;clusterMonitor&#8221;<\/span>, db: <span class=\"token string\">&#8220;admin&#8221;<\/span> <span class=\"token punctuation\">}<\/span>,<span class=\"token punctuation\">{<\/span> role: <span class=\"token string\">&#8220;read&#8221;<\/span>, db: <span class=\"token string\">&#8220;local&#8221;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Successfully added user: {\r\n        \"user\" : \"<mark>test<\/mark>\",\r\n        \"roles\" : [\r\n                {\r\n                        \"role\" : \"clusterMonitor\",\r\n                        \"db\" : \"admin\"\r\n                },\r\n                {\r\n                        \"role\" : \"read\",\r\n                        \"db\" : \"local\"\r\n                }\r\n        ]\r\n}\r\n<\/code><\/pre>\n<p>\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001MongoDB\u30b7\u30a7\u30eb\u3092\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"&gt;\"><span class=\"token builtin class-name\">exit<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u306e\u6b21\u3001\u9069\u5207\u306a\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u3001MongoDB\u306eURI\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>export MONGODB_URI=mongodb:\/\/<mark>test<\/mark>:<mark>testing<\/mark>@localhost:27017\r\n<\/code><\/pre>\n<p>\u8a2d\u5b9a\u3057\u305f\u8a8d\u8a3c\u60c5\u5831\uff08\u30c6\u30b9\u30c8\u30e6\u30fc\u30b6\u30fc\u3068\u30c6\u30b9\u30c8\u30d1\u30b9\u30ef\u30fc\u30c9\uff09\u3092\u4f7f\u7528\u3059\u308bMongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u3001MONGODB_URI\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u300227017\u306fMongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30dd\u30fc\u30c8\u3067\u3059\u3002\u74b0\u5883\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3088\u308a\u512a\u5148\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>MongoDB\u306eURI\u74b0\u5883\u5909\u6570\u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">env<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> mongodb<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>MONGODB_URI=mongodb:\/\/mongodb_exporter:password@localhost:27017\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30af\u30e9\u30b9\u30bf\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064clusterMonitor\u306e\u5f79\u5272\u3092\u6301\u3064MongoDB\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u4f5c\u6210<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306e\u30b7\u30b9\u30c6\u30e0\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\/lib\/systemd\/system \u306b\u79fb\u52d5\u3057\u3001nano \u3082\u3057\u304f\u306f\u304a\u6c17\u306b\u5165\u308a\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u305f\u3081\u306e\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> \/lib\/systemd\/system\/<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> mongodb_exporter.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<p>\u4ee5\u4e0b\u306f\u3001\/lib\/systemd\/system\/mongodb_exporter.service\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\/lib\/systemd\/system\/mongodb_exporter.service\u3092\u65e5\u672c\u8a9e\u30671\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=MongoDB Exporter\r\nUser=prometheus\r\n\r\n[Service]\r\nType=simple\r\nRestart=always\r\nExecStart=\/usr\/local\/bin\/mongodb_exporter\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3001prometheus\u30e6\u30fc\u30b6\u30fc\u306e\u4e0b\u3067MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u5b9f\u884c\u3059\u308b\u305f\u3081\u306bsystemd\u306b\u6307\u793a\u3057\u307e\u3059\u3002ExecStart\u306f\u3001usr\/local\/bin\/\u304b\u3089mongodb_exporter\u30d0\u30a4\u30ca\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002systemd\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u300cSystemd Units and Unit Files\u306e\u7406\u89e3\u300d\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306b\u3001\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3059\u308b\u305f\u3081\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u30c7\u30fc\u30e2\u30f3\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mongodb_exporter.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl status mongodb_exporter.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u30a2\u30af\u30c6\u30a3\u30d6\uff08\u5b9f\u884c\u4e2d\uff09\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 (Shutsuryoku wa, s\u0101bisu ga akutibu (jikk\u014dch\u016b) de aru koto o kakunin shimasu.)<\/p>\n<div>\u51fa\u529b<\/div>\n<pre class=\"post-pre\"><code>\u25cf mongodb_exporter.service - MongoDB Exporter\r\n     Loaded: loaded (\/lib\/systemd\/system\/mongodb_exporter.service; disabled; vendor preset: enabled)\r\n     Active: <mark>active (running)<\/mark> since Fri 2022-08-05 18:18:38 UTC; 1 weeks 3 days ago\r\n   Main PID: 7352 (mongodb_exporte)\r\n      Tasks: 5 (limit: 527)\r\n     Memory: 14.2M\r\n     CGroup: \/system.slice\/mongodb_exporter.service\r\n             \u2514\u25007352 \/usr\/local\/bin\/mongodb_exporter\r\n\r\n<\/code><\/pre>\n<p>\u671f\u5f85\u3069\u304a\u308a\u306b\u3059\u3079\u3066\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u30dd\u30fc\u30c89216\u3067curl\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> ~<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">curl<\/span> http:\/\/localhost:9216\/metrics<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306f\u9577\u304f\u3001\u3053\u306e\u3088\u3046\u306a\u884c\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p># HELP go_gc_duration_seconds A summary of the GC invocation durations. # TYPE go_gc_duration_seconds summary go_gc_duration_seconds{quantile=&#8221;0&#8243;} 0 go_gc_duration_seconds{quantile=&#8221;0.25&#8243;} 0 go_gc_duration_seconds{quantile=&#8221;0.5&#8243;} 0 go_gc_duration_seconds{quantile=&#8221;0.75&#8243;} 0 go_gc_duration_seconds{quantile=&#8221;1&#8243;} 0 go_gc_duration_seconds_sum 0 go_gc_duration_seconds_count 0 # HELP go_goroutines Number of goroutines that currently exist. # TYPE go_goroutines gauge go_goroutines 11 # HELP go_memstats_alloc_bytes Number of bytes allocated and still in use. # TYPE go_memstats_alloc_bytes gauge go_memstats_alloc_bytes 1.253696e+06 # HELP go_memstats_alloc_bytes_total Total number of bytes allocated, even if freed. # TYPE go_memstats_alloc_bytes_total counter go_memstats_alloc_bytes_total 1.253696e+06 # HELP go_memstats_buck_hash_sys_bytes Number of bytes used by the profiling bucket hash table. # TYPE go_memstats_buck_hash_sys_bytes gauge go_memstats_buck_hash_sys_bytes 3054 # HELP go_memstats_frees_total Total number of frees. # TYPE go_memstats_frees_total counter go_memstats_frees_total 2866 # HELP go_memstats_gc_sys_byte . . . # HELP mongodb_asserts_total The asserts document reports the number of asserts on the database. While assert errors are typically uncommon, if there are non-zero values for the asserts, you should check the log file for the mongod process for more information. In many cases these errors are trivial, but are worth investigating. # TYPE mongodb_asserts_total counter mongodb_asserts_total{type=&#8221;msg&#8221;} 0 mongodb_asserts_total{type=&#8221;regular&#8221;} 0 mongodb_asserts_total{type=&#8221;rollovers&#8221;} 0 mongodb_asserts_total{type=&#8221;user&#8221;} 19 mongodb_asserts_total{type=&#8221;warning&#8221;} 0 # HELP mongodb_connections The connections sub document data regarding the current status of incoming connections and availability of the database server. Use these values to assess the current load and capacity requirements of the server # TYPE mongodb_connections gauge mongodb_connections{state=&#8221;available&#8221;} 51198 mongodb_connections{state=&#8221;current&#8221;} 2 # HELP mongodb_connections_metrics_created_total totalCreated provides a count of all incoming connections created to the server. This number includes connections that have since closed # TYPE mongodb_connections_metrics_created_total counter mongodb_connections_metrics_created_total 6 # HELP mongodb_exporter_build_info A metric with a constant &#8216;1&#8217; value labeled by version, revision, branch, and goversion from which mongodb_exporter was built. # TYPE mongodb_exporter_build_info gauge mongodb_exporter_build_info{branch=&#8221;v0.7.1&#8243;,goversion=&#8221;go1.11.10&#8243;,revision=&#8221;3002738d50f689c8204f70f6cceb8150b98fa869&#8243;,version=&#8221;0.7.1&#8243;} 1 # HELP mongodb_exporter_last_scrape_duration_seconds Duration of the last scrape of metrics from MongoDB. # TYPE mongodb_exporter_last_scrape_duration_seconds gauge mongodb_exporter_last_scrape_duration_seconds 0.003641888 # HELP mongodb_exporter_last_scrape_error Whether the last scrape of metrics from MongoDB resulted in an error (1 for error, 0 for success). # TYPE mongodb_exporter_last_scrape_error gauge mongodb_exporter_last_scrape_error 0 . . . &#8230;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u51fa\u529b\u306b\u3088\u308b\u3068\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306f\u3001MongoDB\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3001\u63a5\u7d9a\u8a73\u7d30\u306a\u3069\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53ce\u96c6\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u3001MongoDB\u304b\u3089\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53ce\u96c6\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092Prometheus\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u306eMongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u8a2d\u5b9a<\/h3>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092Prometheus\u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002Prometheus\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token builtin class-name\">cd<\/span> \/etc\/prometheus\/<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\u3001nano\u3084\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u7de8\u96c6\u7528\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> prometheus.yml<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u884c\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\u3059\u308b\u3053\u3068\u3067\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/p>\n<div>\/etc\/prometheus\/prometheus.yml\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059:<br \/>\n\u300c\/etc\/prometheus\/prometheus.yml\u300d<\/div>\n<pre class=\"post-pre\"><code># A scrape configuration containing exactly one endpoint to scrape:\r\n# Here it's Prometheus itself.\r\nscrape_configs:\r\n  # The job name is added as a label `job=&lt;job_name&gt;` to any timeseries scraped from this config.\r\n  - job_name: \"prometheus\"\r\n    static_configs:\r\n            - targets: [\"localhost:9090\"<mark>, \"localhost:9216\"]<\/mark>\r\n<\/code><\/pre>\n<p>9216\u306fMongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30dd\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8ffd\u52a0\u3057\u305f\u5f8c\u3001Prometheus\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart prometheus<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u304f\u8ffd\u52a0\u3057\u305f\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u304c\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u306b\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001http:\/\/localhost:9090\/targets\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\uff1a\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001http:\/\/your_server_ip:9090\/targets\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u30dd\u30fc\u30c8\u30d5\u30a9\u30ef\u30fc\u30c7\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u30ed\u30fc\u30ab\u30eb\u3067\u30bf\u30fc\u30b2\u30c3\u30c8\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u65b0\u3057\u3044\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a<br \/>\nssh -L 9090:localhost:9090 your_non_root_user@your_server_ip<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u305f\u3089\u3001\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306e\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067http:\/\/localhost:9090\/targets\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u30ea\u30b9\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/138-0.png\" alt=\"Screencapture showing the list of Prometheus targets\" \/><\/div>\n<p>9090\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306fPrometheus\u304c\u81ea\u5206\u81ea\u8eab\u3092\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u30029216\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3067\u3042\u308a\u3001\u8a2d\u5b9a\u304c\u6b63\u5e38\u306b\u6a5f\u80fd\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u53ce\u96c6\u3059\u308b\u305f\u3081\u306ePrometheus\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001Grafana\u306e\u30a6\u30a7\u30d6\u30b3\u30f3\u30bd\u30fc\u30eb\u3067MongoDB\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u8868\u793a\u304a\u3088\u3073\u5206\u6790\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 &#8211; Grafana\u3067MongoDB\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h2>\n<p>\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u3001Grafana\u3067MongoDB\u306e\u30c7\u30fc\u30bf\u3092\u53ef\u8996\u5316\u3059\u308b\u305f\u3081\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001Grafana\u3067\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u3057\u3066Prometheus\u3092\u8ffd\u52a0\u3057\u3001Percona\u304b\u3089MongoDB\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002Percona\u306fMongoDB\u7528\u306e\u8907\u6570\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u305d\u306e\u8a73\u7d30\u306fPercona\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001MongoDB\u306e\u6982\u8981\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092Grafana\u306b\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u307e\u305a\u306f\u3058\u3081\u306b\u3001Grafana\u3067Prometheus\u3092\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001Grafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u307e\u3057\u305f\u3002Grafana\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f\u3001\u524d\u63d0\u6761\u4ef6\u306e\u969b\u306b\u4f5c\u6210\u3057\u305f\u8cc7\u683c\u60c5\u5831\u3092\u4f7f\u7528\u3057\u3066\u3001your_domain:3000\u306b\u30a2\u30af\u30bb\u30b9\u3057\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5de6\u30d1\u30cd\u30eb\u3067\u3001\u8a2d\u5b9a\u306e\u305f\u3081\u306e\u6b6f\u8eca\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u305d\u306e\u5f8c\u3001\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/145-0.png\" alt=\"Screencapture showing adding a Data Source under the Configuration tab in Grafana\" \/><\/div>\n<p>\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u8ffd\u52a0\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/147-0.png\" alt=\"Screencapture showing the button for adding a data source in Grafana\" \/><\/div>\n<p>\u305d\u306e\u5834\u5408\u3001\u30d7\u30ed\u30e1\u30c6\u30a6\u30b9\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/149-0.png\" alt=\"Screencapture showing selecting Prometheus as a data source in Grafana\" \/><\/div>\n<p>\u6b21\u306e\u753b\u9762\u3067\u3001Prometheus\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/151-0.png\" alt=\"Screencapture showing the configuration settings for the Prometheus data source in Grafana\" \/><\/div>\n<p>URL\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u306f\u3001\u304a\u4f7f\u3044\u306ePrometheus\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306eURL\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>http:\/\/<mark>your_server_ip<\/mark>:9090\/\r\n<\/code><\/pre>\n<p>\u753b\u9762\u306e\u4e0b\u90e8\u306b\u3042\u308b\u300c\u4fdd\u5b58\uff06\u30c6\u30b9\u30c8\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u308a\u3001Prometheus\u304cGrafana\u306e\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u3057\u3066\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001Grafana\u306e\u305f\u3081\u306eMongoDB\u306e\u6982\u8981\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001JSON\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9ID\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3067\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9ID\u306f\u3001Grafana\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u88fd\u54c1\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9ID\u3092\u4f7f\u7528\u3057\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u5de6\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3001\u4f5c\u6210\u306e\u30d7\u30e9\u30b9\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3053\u304b\u3089\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/157-0.png\" alt=\"Screencapture showing the option to add Prometheus as a data source in Grafana\" \/><\/div>\n<p>\u3053\u3053\u3067\u306f\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eJSON\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001Grafana\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eID\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/159-0.png\" alt=\"Screencapture showing the options for uploading a JSON file or adding a Dashboard ID\" \/><\/div>\n<p>Grafana \u30da\u30fc\u30b8\u306e MongoDB \u6982\u8981\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u898b\u3064\u3051\u3089\u308c\u308b Grafana \u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9 ID \u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>https:\/\/grafana.com\/grafana\/dashboards\/7353\r\n<\/code><\/pre>\n<p>\u591a\u304f\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304c\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002Grafana\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30da\u30fc\u30b8\u3092\u8a2a\u308c\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306b\u591a\u304f\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eID\u3092\u8ffd\u52a0\u5f8c\u3001\u30ed\u30fc\u30c9\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u5ea6\u306f\u30aa\u30d7\u30b7\u30e7\u30f3\u30da\u30fc\u30b8\u304c\u958b\u304d\u307e\u3059\u3002\u3053\u3053\u3067\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u540d\u524d\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30d5\u30a9\u30eb\u30c0\u3001\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3068\u30d5\u30a9\u30eb\u30c0\u306e\u540d\u524d\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u306fPrometheus\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5165\u529b\u3057\u305f\u3089\u3001\u300c\u30a4\u30f3\u30dd\u30fc\u30c8\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/166-0.png\" alt=\"Screencapture showing the MongoDB Overview Dashboard in Grafana\" \/><\/div>\n<p>\u3042\u306a\u305f\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u306f\u3001\u30b3\u30de\u30f3\u30c9\u64cd\u4f5c\u3001\u63a5\u7d9a\u3001\u30ab\u30fc\u30bd\u30eb\u3001\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u64cd\u4f5c\u3001\u304a\u3088\u3073\u30ad\u30e5\u30fc\u306b\u5165\u3063\u3066\u3044\u308b\u64cd\u4f5c\u3092\u542b\u3080\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u66f4\u65b0\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\uff08\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001MongoDB\u306e\u6982\u8981\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306ePercona\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Grafana\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u3066\u3001MongoDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306ePrometheus\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001GUI\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4ecb\u3057\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u76e3\u8996\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305a\u3001Prometheus\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001MongoDB\u30a8\u30af\u30b9\u30dd\u30fc\u30bf\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001Grafana\u3067Prometheus\u3092\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u3068\u3057\u3066\u8ffd\u52a0\u3057\u3001MongoDB\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304b\u3089\u306e\u30c7\u30fc\u30bf\u3092\u76e3\u8996\u304a\u3088\u3073\u53ef\u8996\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>MongoDB\u306e\u305f\u3081\u306e\u5b8c\u5168\u306b\u7a3c\u50cd\u3059\u308b\u76e3\u8996\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u304c\u3067\u304d\u305f\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u8a73\u3057\u304f\u8abf\u3079\u3066\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001Grafana\u3067\u8ffd\u52a0\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u63a2\u7d22\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>MongoDB\u306b\u3064\u3044\u3066\u3082\u3063\u3068\u5b66\u3073\u305f\u3044\u5834\u5408\u306f\u3001\u5f0a\u793e\u306eMongoDB\u30c7\u30fc\u30bf\u7ba1\u7406\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u30b7\u30ea\u30fc\u30ba\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u7d20\u65e9\u304f\u5b8c\u5168\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u305f\u3044\u5834\u5408\u306f\u3001Silicon Cloud\u306eMongoDB Managed Database\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8457\u8005\u306f\u3001COVID-19\u6551\u6e08\u57fa\u91d1\u3092\u5bc4\u4ed8\u306e\u5bfe\u8c61\u306b\u9078\u3073\u307e\u3057\u305f\u3002\u3053\u308c\u306f\u300c\u5bc4\u4ed8\u306e\u305f\u3081\u306b\u66f8\u304f\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3067\u3059\u3002 \u3053\u3093\u306b\u3061\u306f\u3001\u521d\u3081\u307e\u3057\u3066\u3002 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u7ba1\u7406\u8005\u306b\u3068\u3063\u3066\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u30e1\u30e2\u30ea\u306e\u554f\u984c\u3092\u56de\u907f\u3059\u308b\u3053\u3068\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,26],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-26"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u3067grafana\u3068prometheus\u3092\u4f7f\u7528\u3057\u3066mongodb\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u3067grafana\u3068prometheus\u3092\u4f7f\u7528\u3057\u3066mongodb\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2022-07-23T14:01:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T11:50:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/65-0.png\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6d77\u6597, \u8475\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"44\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2022-07-23T14:01:47+00:00\",\"dateModified\":\"2025-07-31T11:50:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"description\":\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","description":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u3067grafana\u3068prometheus\u3092\u4f7f\u7528\u3057\u3066mongodb\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5","og_description":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04\u3067grafana\u3068prometheus\u3092\u4f7f\u7528\u3057\u3066mongodb\u3092\u76e3\u8996\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2022-07-23T14:01:47+00:00","article_modified_time":"2025-07-31T11:50:32+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65645c14daa94e2bdf7b20bc\/65-0.png"}],"author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"44\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2022-07-23T14:01:47+00:00","dateModified":"2025-07-31T11:50:32+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"description":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 20.04\u3067Grafana\u3068Prometheus\u3092\u4f7f\u7528\u3057\u3066MongoDB\u3092\u76e3\u8996\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-20-04%e3%81%a7grafana%e3%81%a8prometheus%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6mongodb%e3%82%92%e7%9b%a3%e8%a6%96%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":325704,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114\/revisions\/325704"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}