{"id":304,"date":"2023-11-04T07:09:45","date_gmt":"2023-11-06T19:16:44","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2025-07-31T22:30:05","modified_gmt":"2025-07-31T13:30:05","slug":"%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d"},"content":{"rendered":"<p>\u8457\u8005\u306f\u300cWrite for Donations\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u91d1\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306bCOVID-19\u6551\u6e08\u57fa\u91d1\u3092\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>Grafana\u306f\u3001Prometheus\u3001InfluxDB\u3001Graphite\u3001\u304a\u3088\u3073ElasticSearch\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u30bd\u30fc\u30b9\u304b\u3089\u306e\u8907\u96d1\u306a\u30c7\u30fc\u30bf\u3092\u7d71\u5408\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u53ef\u8996\u5316\u304a\u3088\u3073\u76e3\u8996\u30c4\u30fc\u30eb\u3067\u3059\u3002Grafana\u3067\u306f\u3001\u30a2\u30e9\u30fc\u30c8\u3001\u901a\u77e5\u3001\u304a\u3088\u3073\u30a2\u30c9\u30db\u30c3\u30af\u30d5\u30a3\u30eb\u30bf\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u7d44\u307f\u8fbc\u307e\u308c\u305f\u5171\u6709\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30c1\u30fc\u30e0\u30e1\u30f3\u30d0\u30fc\u3068\u306e\u5354\u529b\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Grafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001SSL\u8a3c\u660e\u66f8\u3068Nginx\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3067\u30bb\u30ad\u30e5\u30a2\u306b\u3057\u307e\u3059\u3002Grafana\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u305f\u5f8c\u3001GitHub\u3092\u4f7f\u7528\u3057\u3066\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3092\u8a2d\u5b9a\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c1\u30fc\u30e0\u6a29\u9650\u3092\u3088\u308a\u826f\u304f\u6574\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\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\u306e\u3082\u306e\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>One Ubuntu 20.04 server set up by following the Initial Server Setup Guide for Ubuntu 20.04, including a non-root user with sudo privileges and a firewall configured with ufw.<\/li>\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<li>Optionally, to set up GitHub authentication, you\u2019ll need a GitHub account associated with an organization.<\/li>\n<\/ul>\n<h2>Step 1 \u2014 Grafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u6700\u521d\u306e\u624b\u9806\u3067\u306f\u3001Ubuntu 20.04 \u30b5\u30fc\u30d0\u30fc\u306b Grafana \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002Grafana \u306f\u3001\u516c\u5f0f\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u304b\u3089\u76f4\u63a5\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001APT \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5229\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001APT \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067 Grafana \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u7ba1\u7406\u3092\u7c21\u5358\u306b\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u65b9\u6cd5\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>wget\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066Grafana\u306eGPG\u30ad\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001\u305d\u306e\u51fa\u529b\u3092apt-key\u306b\u30d1\u30a4\u30d7\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ad\u30fc\u304cAPT\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u4fe1\u983c\u3055\u308c\u305f\u30ad\u30fc\u306e\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3055\u308c\u3001GPG\u3067\u7f72\u540d\u3055\u308c\u305fGrafana\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u691c\u8a3c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">wget<\/span> <span class=\"token parameter variable\">-q<\/span> <span class=\"token parameter variable\">-O<\/span> &#8211; https:\/\/packages.grafana.com\/gpg.key <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> apt-key <span class=\"token function\">add<\/span> &#8211;<\/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\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u306e-q\u306fwget\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u66f4\u65b0\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u7121\u52b9\u306b\u3057\u3001-O\u306f\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u7aef\u672b\u306b\u51fa\u529b\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u4e8c\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u306e\u307f\u304capt-key\u306b\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3055\u308c\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001APT\u30bd\u30fc\u30b9\u306bGrafana\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u8ffd\u52a0\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> add-apt-repository <span class=\"token string\">&#8220;deb https:\/\/packages.grafana.com\/oss\/deb stable main&#8221;<\/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>\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3059\u308b\u305f\u3081\u306bAPT\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\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>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u9032\u3081\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> <span class=\"token function\">install<\/span> grafana<\/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>Grafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u3001systemctl\u3092\u4f7f\u7528\u3057\u3066Grafana\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\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 start grafana-server<\/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\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u3001Grafana\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\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 grafana-server<\/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>\u3042\u306a\u305f\u306f\u3053\u308c\u306b\u4f3c\u305f\u51fa\u529b\u3092\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002 (Anata wa kore ni nita shuturyoku o uketorimasu.)<\/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>\u25cf grafana-server.service &#8211; Grafana instance Loaded: loaded (\/lib\/systemd\/system\/grafana-server.service; disabled; vendor preset: enabled) Active: <mark>active (running)<\/mark> since Thu 2020-05-21 08:08:10 UTC; 4s ago Docs: http:\/\/docs.grafana.org Main PID: 15982 (grafana-server) Tasks: 7 (limit: 1137) &#8230;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u51fa\u529b\u306b\u306f\u3001Grafana\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u72b6\u614b\u3001\u30e1\u30a4\u30f3\u30d7\u30ed\u30bb\u30b9\u8b58\u5225\u5b50\uff08PID\uff09\u306a\u3069\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002active\uff08running\uff09\u306f\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u81ea\u52d5\u7684\u306b\u8d77\u52d5\u3055\u305b\u3066\u3001Grafana\u304c\u8d77\u52d5\u3059\u308b\u3088\u3046\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> grafana-server<\/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><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>Synchronizing state of grafana-server.service with SysV service script with \/lib\/systemd\/systemd-sysv-install. Executing: \/lib\/systemd\/systemd-sysv-install enable grafana-server Created symlink \/etc\/systemd\/system\/multi-user.target.wants\/grafana-server.service \u2192 \/usr\/lib\/systemd\/system\/grafana-server.service.<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001systemd\u304cGrafana\u3092\u81ea\u52d5\u8d77\u52d5\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>Grafana\u306f\u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3001\u4f7f\u7528\u306e\u6e96\u5099\u304c\u5b8c\u4e86\u3057\u3066\u3044\u307e\u3059\u3002\u6b21\u306b\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3057\u3066Grafana\u3078\u306e\u63a5\u7d9a\u3092\u5b89\u5168\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 &#8211; \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306e\u8a2d\u5b9a<\/h2>\n<p>SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001Grafana\u3078\u306e\u63a5\u7d9a\u3068\u305d\u306e\u5f80\u5fa9\u304c\u6697\u53f7\u5316\u3055\u308c\u3001\u30c7\u30fc\u30bf\u304c\u5b89\u5168\u306b\u4fdd\u8b77\u3055\u308c\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u63a5\u7d9a\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305aNginx\u3092Grafana\u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u518d\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u300c\u30d7\u30ec\u30ea\u30af\u30a4\u30b8\u30c3\u30c8\u3067Let&#8217;s Encrypt\u3068\u4e00\u7dd2\u306bNginx\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u3092\u8a2d\u5b9a\u3057\u305f\u6642\u306b\u4f5c\u6210\u3057\u305fNginx\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3069\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306fnano\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u300d<\/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\/nginx\/sites-available\/<mark>your_domain<\/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\u30d6\u30ed\u30c3\u30af\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u300c\/etc\/nginx\/sites-available\/your_domain\u300d<\/div>\n<pre class=\"post-pre\"><code>...\r\n\t<span class=\"token directive\"><span class=\"token keyword\">location<\/span> \/<\/span> <span class=\"token punctuation\">{<\/span>\r\n        <span class=\"token directive\"><span class=\"token keyword\">try_files<\/span> <span class=\"token variable\">$uri<\/span> <span class=\"token variable\">$uri<\/span>\/ =404<\/span><span class=\"token punctuation\">;<\/span>\r\n\t<span class=\"token punctuation\">}<\/span>\r\n...\r\n<\/code><\/pre>\n<p>Nginx\u3092SSL\u901a\u4fe1\u8a2d\u5b9a\u6e08\u307f\u3067\u3042\u308a\u3001\u307e\u305f\u3059\u3079\u3066\u306e\u30a6\u30a7\u30d6\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u304c\u65e2\u306bNginx\u3092\u7d4c\u7531\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Grafana\u306b\u3059\u3079\u3066\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8ee2\u9001\u3059\u308b\u3088\u3046Nginx\u306b\u6307\u793a\u3059\u308b\u3060\u3051\u3067\u3059\u3002Grafana\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30dd\u30fc\u30c83000\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5834\u6240\u30d6\u30ed\u30c3\u30af\u5185\u306b\u3042\u308b\u65e2\u5b58\u306etry_files\u884c\u3092\u524a\u9664\u3057\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306f\u65e5\u672c\u8a9e\u3067\u518d\u89e3\u91c8\u3057\u305f\u3082\u306e\u3067\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/sites-available\/your_domain\u300d<\/div>\n<pre class=\"post-pre\"><code>...\r\n\t<span class=\"token directive\"><span class=\"token keyword\">location<\/span> \/<\/span> <span class=\"token punctuation\">{<\/span>\r\n\t   <mark><span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Host <span class=\"token variable\">$http_host<\/span><\/span><span class=\"token punctuation\">;<\/span><\/mark>\r\n\t   <mark><span class=\"token directive\"><span class=\"token keyword\">proxy_pass<\/span> http:\/\/localhost:3000<\/span><span class=\"token punctuation\">;<\/span><\/mark>\r\n\t<span class=\"token punctuation\">}<\/span>\r\n...\r\n<\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u30d7\u30ed\u30ad\u30b7\u304c\u9069\u5207\u306a\u30dd\u30fc\u30c8\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3055\u308c\u3001\u30d8\u30c3\u30c0\u30fc\u306b\u30b5\u30fc\u30d0\u30fc\u540d\u304c\u6e21\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001Grafana Live WebSocket\u63a5\u7d9a\u304c\u6b63\u5e38\u306b\u6a5f\u80fd\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u30b5\u30fc\u30d0\u30fc\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u5916\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/\u3042\u306a\u305f\u306e\u30c9\u30e1\u30a4\u30f3\u306e\/etc\/nginx\/sites-available<\/div>\n<pre class=\"post-pre\"><code><mark><span class=\"token directive\"><span class=\"token keyword\">map<\/span> <span class=\"token variable\">$http_upgrade<\/span> <span class=\"token variable\">$connection_upgrade<\/span><\/span> <span class=\"token punctuation\">{<\/span><\/mark>\r\n  <mark><span class=\"token directive\"><span class=\"token keyword\">default<\/span> upgrade<\/span><span class=\"token punctuation\">;<\/span><\/mark>\r\n  <mark>'' <span class=\"token directive\"><span class=\"token keyword\">close<\/span><\/span><span class=\"token punctuation\">;<\/span><\/mark>\r\n<mark><span class=\"token punctuation\">}<\/span><\/mark>\r\n\r\n<span class=\"token directive\"><span class=\"token keyword\">server<\/span><\/span> <span class=\"token punctuation\">{<\/span>\r\n    ...\r\n<\/code><\/pre>\n<p>\u305d\u306e\u5f8c\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u306b\u4ee5\u4e0b\u306e\u5834\u6240\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b\u3068\u3001\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/sites-available\/your_domain\u300d<\/div>\n<pre class=\"post-pre\"><code><span class=\"token directive\"><span class=\"token keyword\">server<\/span><\/span> <span class=\"token punctuation\">{<\/span>\r\n...\r\n        <span class=\"token directive\"><span class=\"token keyword\">location<\/span> \/api\/live<\/span> <span class=\"token punctuation\">{<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_http_version<\/span> 1.1<\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Upgrade <span class=\"token variable\">$http_upgrade<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Connection <span class=\"token variable\">$connection_upgrade<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Host <span class=\"token variable\">$http_host<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_pass<\/span> http:\/\/localhost:3000<\/span><span class=\"token punctuation\">;<\/span>\r\n\t <span class=\"token punctuation\">}<\/span>\r\n...\r\n<\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b\u3068\u30011\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u5fc5\u8981\u3067\u3059\uff1a<br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u30d8\u30c3\u30c0\u30fc\u306eUpgrade\u3068Connection\u304c\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30d7\u30ed\u30ad\u30b7\u30b5\u30fc\u30d0\u30fc\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eWebSocket\u3078\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u5909\u66f4\u306e\u610f\u56f3\u3092\u77e5\u3089\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u3053\u308c\u3089\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u660e\u793a\u7684\u306b\u6e21\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306a\u69cb\u6210\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\u3054\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u306e\/etc\/nginx\/sites-available\/your_domain<\/div>\n<pre class=\"post-pre\"><code><span class=\"token directive\"><span class=\"token keyword\">map<\/span> <span class=\"token variable\">$http_upgrade<\/span> <span class=\"token variable\">$connection_upgrade<\/span><\/span> <span class=\"token punctuation\">{<\/span>\r\n  <span class=\"token directive\"><span class=\"token keyword\">default<\/span> upgrade<\/span><span class=\"token punctuation\">;<\/span>\r\n  '' <span class=\"token directive\"><span class=\"token keyword\">close<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n\r\n<span class=\"token directive\"><span class=\"token keyword\">server<\/span><\/span> <span class=\"token punctuation\">{<\/span>\r\n        <span class=\"token directive\"><span class=\"token keyword\">listen<\/span> <span class=\"token number\">80<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n        <span class=\"token directive\"><span class=\"token keyword\">listen<\/span> [::]:80<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n        <span class=\"token directive\"><span class=\"token keyword\">root<\/span> \/var\/www\/<mark>your_domain<\/mark>\/html<\/span><span class=\"token punctuation\">;<\/span>\r\n        <span class=\"token directive\"><span class=\"token keyword\">index<\/span> index.html index.htm index.nginx-debian.html<\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n        <span class=\"token directive\"><span class=\"token keyword\">server_name<\/span> <mark>your_domain<\/mark> www.<mark>your_domain<\/mark><\/span><span class=\"token punctuation\">;<\/span>\r\n\r\n\t<span class=\"token directive\"><span class=\"token keyword\">location<\/span> \/<\/span> <span class=\"token punctuation\">{<\/span>\r\n\t   <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Host <span class=\"token variable\">$http_host<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n\t  \t<span class=\"token directive\"><span class=\"token keyword\">proxy_pass<\/span> http:\/\/localhost:3000<\/span><span class=\"token punctuation\">;<\/span>\r\n\t<span class=\"token punctuation\">}<\/span>\r\n\r\n\t<span class=\"token directive\"><span class=\"token keyword\">location<\/span> \/api\/live<\/span> <span class=\"token punctuation\">{<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_http_version<\/span> 1.1<\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Upgrade <span class=\"token variable\">$http_upgrade<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Connection <span class=\"token variable\">$connection_upgrade<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_set_header<\/span> Host <span class=\"token variable\">$http_host<\/span><\/span><span class=\"token punctuation\">;<\/span>\r\n           <span class=\"token directive\"><span class=\"token keyword\">proxy_pass<\/span> http:\/\/localhost:3000<\/span><span class=\"token punctuation\">;<\/span>\r\n\t<span class=\"token punctuation\">}<\/span>\r\n<span class=\"token punctuation\">}<\/span>\r\n<\/code><\/pre>\n<p>\u4f5c\u696d\u304c\u7d42\u308f\u3063\u305f\u3089\u3001nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001CTRL+X\u3001Y\u3001\u305d\u308c\u304b\u3089ENTER\u3092\u62bc\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4eca\u3001\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3001\u3059\u3079\u3066\u304c\u6b63\u3057\u304f\u69cb\u6210\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\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> nginx <span class=\"token parameter variable\">-t<\/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\u304c\u63d0\u4f9b\u3055\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>nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001Nginx\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u5909\u66f4\u3092\u6709\u52b9\u306b\u3057\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 reload nginx<\/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\u65e5\u672c\u8a9e\u306e\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3092\u63d0\u4f9b\u3057\u307e\u3059\uff1a<\/p>\n<p>\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092https:\/\/your_domain\u306b\u5411\u3051\u308b\u3053\u3068\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eGrafana\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002Grafana\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u304c\u30dd\u30fc\u30c8443\u306e\u30c8\u30e9\u30d5\u30a3\u30c3\u30af\u3092\u8a31\u53ef\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3001\u524d\u306e\u6307\u793a\u3092\u518d\u5ea6\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Grafana\u306e\u63a5\u7d9a\u304c\u6697\u53f7\u5316\u3055\u308c\u308b\u3053\u3068\u3067\u3001\u8ffd\u52a0\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u3092\u5b9f\u88c5\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u3001Grafana\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u7ba1\u7406\u8005\u306e\u8cc7\u683c\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 \u2014 \u8cc7\u683c\u60c5\u5831\u306e\u66f4\u65b0<\/h2>\n<p>Grafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u540c\u3058\u7ba1\u7406\u8005\u8a8d\u8a3c\u60c5\u5831\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5411\u4e0a\u3059\u308b\u305f\u3081\u306b\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u3067\u304d\u308b\u3060\u3051\u65e9\u304f\u5909\u66f4\u3059\u308b\u306e\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3067\u3059\u3002\u3053\u306e\u624b\u9806\u3067\u306f\u3001\u8a8d\u8a3c\u60c5\u5831\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u304b\u3089https:\/\/your_domain\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3059\u308b\u3068\u3001Grafana\u306e\u30ed\u30b4\u304c\u8868\u793a\u3055\u308c\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u540d\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u30d5\u30a9\u30fc\u30e0\u3001\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5fd8\u308c\u305f\u5834\u5408\u306e\u30ea\u30f3\u30af\u304c\u8868\u793a\u3055\u308c\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/65-0.png\" alt=\"Grafana Login\" \/><\/div>\n<p>\u300c\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u307e\u305f\u306f\u30e6\u30fc\u30b6\u30fc\u540d\u300d\u3068\u300c\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u4e21\u65b9\u3068\u3082\u7ba1\u7406\u8005\u3092\u5165\u529b\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d<\/p>\n<p>\u6b21\u306e\u753b\u9762\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u3088\u308a\u5b89\u5168\u306b\u3059\u308b\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/68-0.png\" alt=\"Change Password\" \/><\/div>\n<p>\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3068\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u78ba\u8a8d\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u4f7f\u7528\u3057\u305f\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u65b0\u3057\u3044\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u300c\u63d0\u51fa\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u304b\u3001\u300c\u30b9\u30ad\u30c3\u30d7\u300d\u3092\u62bc\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30ad\u30c3\u30d7\u3057\u305f\u5834\u5408\u3001\u6b21\u56de\u30ed\u30b0\u30a4\u30f3\u6642\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u5909\u66f4\u3092\u4fc3\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Grafana\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306b\u3001\u9001\u4fe1\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u3046\u3059\u308b\u3068\u3001Grafana\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3078\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\/656477dadaa94e2bdf7b7ffc\/72-0.png\" alt=\"Home Dashboard\" \/><\/div>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8cc7\u683c\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u307e\u3057\u305f\u3002\u6b21\u306b\u3001\u4ed6\u306e\u4eba\u304c\u8a31\u53ef\u306a\u3057\u306b\u65b0\u3057\u3044Grafana\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u306a\u3044\u3088\u3046\u3001Grafana\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 &#8211; Grafana\u306e\u767b\u9332\u3068\u533f\u540d\u30a2\u30af\u30bb\u30b9\u306e\u7121\u52b9\u5316<\/h2>\n<p>Grafana\u306f\u3001\u8a2a\u554f\u8005\u304c\u81ea\u5206\u81ea\u8eab\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u767b\u9332\u305b\u305a\u306b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u30d7\u30ec\u30d3\u30e5\u30fc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002Grafana\u304c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u5834\u5408\u3084\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u306a\u3069\u306e\u516c\u958b\u53ef\u80fd\u306a\u30c7\u30fc\u30bf\u3068\u9023\u643a\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u3053\u308c\u3089\u306e\u6a5f\u80fd\u306e\u4f7f\u7528\u3092\u8a31\u53ef\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u6a5f\u5bc6\u30c7\u30fc\u30bf\u3092\u6271\u3046\u305f\u3081\u306bGrafana\u3092\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u533f\u540d\u30a2\u30af\u30bb\u30b9\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u554f\u984c\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u3001Grafana\u306e\u8a2d\u5b9a\u306b\u3044\u304f\u3064\u304b\u306e\u5909\u66f4\u3092\u52a0\u3048\u307e\u3059\u3002<\/p>\n<p>Grafana\u306e\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u305f\u3081\u306b\u3001\u307e\u305a\u306f\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> \/etc\/grafana\/grafana.ini<\/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>[\u30e6\u30fc\u30b6\u30fc] \u306e\u898b\u51fa\u3057\u306e\u4e0b\u306b\u3042\u308b [allow_sign_up] \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u898b\u3064\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>(Note: The translation assumes that the terms &#8220;allow_sign_up&#8221; and &#8220;[users]&#8221; are already known in the context.)<\/p>\n<div>\/etc\/grafana\/grafana.ini \u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/grafana\/grafana.ini\u300d\u3067\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>...\r\n[users]\r\n# disable user signup \/ registration\r\n;allow_sign_up = true\r\n...\r\n<\/code><\/pre>\n<p>true\u3092\u4f7f\u7528\u3057\u3066\u3053\u306e\u6307\u793a\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u753b\u9762\u306b\u300c\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u300d\u30dc\u30bf\u30f3\u304c\u8ffd\u52a0\u3055\u308c\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u81ea\u5df1\u767b\u9332\u3057\u3066Grafana\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6307\u4ee4\u3092\u507d\u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u30dc\u30bf\u30f3\u304c\u524a\u9664\u3055\u308c\u3001Grafana\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u30d7\u30e9\u30a4\u30d0\u30b7\u30fc\u304c\u5f37\u5316\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u300c;\u300d\u3092\u884c\u982d\u304b\u3089\u524a\u9664\u3057\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u507d\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\n<p>\/etc\/grafana\/grafana.ini\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3002\u4e00\u3064\u3060\u3051\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<p>&#8211; \u30b0\u30e9\u30d5\u30a1\u30ca\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u300c\/etc\/grafana\/grafana.ini\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>...\r\n[users]\r\n# disable user signup \/ registration\r\nallow_sign_up = <mark>false<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001[auth.anonymous]\u306e\u898b\u51fa\u3057\u306e\u4e0b\u3067\u6b21\u306e\u6709\u52b9\u306a\u6307\u793a\u3092\u63a2\u3057\u307e\u3059\u3002<\/p>\n<div>\/etc\/grafana\/grafana.ini\u3092\u65e5\u672c\u8a9e\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u306b\u8a00\u3044\u63db\u3048\u308b\uff1a<\/div>\n<pre class=\"post-pre\"><code>...\r\n[auth.anonymous]\r\n# enable anonymous access\r\n;enabled = false\r\n...\r\n<\/code><\/pre>\n<p>\u8a2d\u5b9a\u3092true\u306b\u3059\u308b\u3068\u3001\u672a\u767b\u9332\u306e\u30e6\u30fc\u30b6\u30fc\u3082\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\u3057\u304b\u3057\u3001false\u306b\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u767b\u9332\u6e08\u307f\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u304c\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u5236\u9650\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u884c\u306e\u5148\u982d\u306e &#8220;;&#8221; \u3092\u53d6\u308a\u9664\u304d\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092 false \u306b\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u3053\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306b\u8a00\u3044\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff08\u4e00\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\uff09\uff1a<br \/>\n\/etc\/grafana\/grafana.ini\u30b0\u30e9\u30d5\u30a1\u30ca\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3001\/etc\/grafana\/grafana.ini<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>...\r\n[auth.anonymous]\r\n# enable anonymous access\r\nenabled = <mark>false<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3092\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5909\u66f4\u3092\u6709\u52b9\u5316\u3059\u308b\u305f\u3081\u306b\u3001Grafana\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 grafana-server<\/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>\u30b0\u30e9\u30d5\u30a1\u30ca\u306e\u30b5\u30fc\u30d3\u30b9\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u3001\u3059\u3079\u3066\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\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 grafana-server<\/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\u524d\u306e\u3088\u3046\u306b\u3001\u51fa\u529b\u306fGrafana\u304c\u30a2\u30af\u30c6\u30a3\u30d6\uff08\u5b9f\u884c\u4e2d\uff09\u3067\u3042\u308b\u3053\u3068\u3092\u5831\u544a\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u3001\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092https:\/\/your_domain\u306b\u5411\u3051\u3066\u304f\u3060\u3055\u3044\u3002\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u753b\u9762\u306b\u623b\u308b\u306b\u306f\u3001\u753b\u9762\u306e\u5de6\u4e0b\u306b\u3042\u308b\u81ea\u5206\u306e\u30a2\u30d0\u30bf\u30fc\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u79fb\u52d5\u3057\u3066\u3001\u8868\u793a\u3055\u308c\u308b[\u30b5\u30a4\u30f3\u30a2\u30a6\u30c8]\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u305f\u5f8c\u3001\u30b5\u30a4\u30f3\u30a2\u30c3\u30d7\u30dc\u30bf\u30f3\u304c\u306a\u3044\u3053\u3068\u3068\u3001\u30ed\u30b0\u30a4\u30f3\u8a8d\u8a3c\u60c5\u5831\u3092\u5165\u529b\u3057\u306a\u3051\u308c\u3070\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001Grafana\u306f\u5b8c\u5168\u306b\u8a2d\u5b9a\u3055\u308c\u3001\u4f7f\u7528\u306e\u6e96\u5099\u304c\u6574\u3063\u3066\u3044\u307e\u3059\u3002\u6b21\u306b\u3001\u7d44\u7e54\u5185\u306e\u30ed\u30b0\u30a4\u30f3\u30d7\u30ed\u30bb\u30b9\u3092\u7c21\u7d20\u5316\u3059\u308b\u305f\u3081\u306b\u3001GitHub\u3092\u901a\u3058\u3066\u8a8d\u8a3c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>\uff08\u4efb\u610f\uff09\u30b9\u30c6\u30c3\u30d75\u2014GitHub\u306eOAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a<\/h2>\n<p>\u5225\u306e\u30ed\u30b0\u30a4\u30f3\u65b9\u6cd5\u3068\u3057\u3066\u3001Grafana\u3092GitHub\u3068\u9023\u643a\u3057\u3066\u8a8d\u8a3c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u627f\u8a8d\u3055\u308c\u305fGitHub\u7d44\u7e54\u306e\u3059\u3079\u3066\u306e\u30e1\u30f3\u30d0\u30fc\u304c\u30ed\u30b0\u30a4\u30f3\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u3053\u306e\u65b9\u6cd5\u306f\u3001\u8907\u6570\u306e\u958b\u767a\u8005\u304c\u5171\u540c\u4f5c\u696d\u3057\u3001Grafana\u56fa\u6709\u306e\u8cc7\u683c\u60c5\u5831\u3092\u4f5c\u6210\u305b\u305a\u306b\u30e1\u30c8\u30ea\u30c3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u306b\u7279\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u81ea\u5206\u306e\u7d44\u7e54\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305fGitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3001GitHub\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u753b\u9762\u306e\u5de6\u5074\u306b\u3042\u308b\u81ea\u5206\u306e\u540d\u524d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u7d44\u7e54\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001\u8a2d\u5b9a\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3092\u5207\u308a\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u500b\u4eba\u8a2d\u5b9a\u304b\u3089\u7d44\u7e54\u8a2d\u5b9a\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u753b\u9762\u3067\u3001\u7d44\u7e54\u306e\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u305d\u3053\u3067\u306f\u3001\u7d44\u7e54\u306e\u8868\u793a\u540d\u3001\u7d44\u7e54\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u7d44\u7e54\u306eURL\u306a\u3069\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GitHub\u3092\u901a\u3058\u3066\u30e6\u30fc\u30b6\u30fc\u3092\u8a8d\u8a3c\u3059\u308b\u305f\u3081\u306b\u3001Grafana\u306fOAuth\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002OAuth\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30ea\u30bd\u30fc\u30b9\u3078\u306e\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\u3067\u3059\u306e\u3067\u3001GitHub\u5185\u3067\u65b0\u3057\u3044OAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u753b\u9762\u306e\u5de6\u4e0b\u306b\u3042\u308b\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u8a2d\u5b9a\u306e\u4e0b\u306b\u3042\u308bOAuth Apps\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3082\u3057GitHub\u4e0a\u3067\u3042\u306a\u305f\u306e\u7d44\u7e54\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u3066\u3044\u308bOAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u307e\u3060\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001&#8221;\u7d44\u7e54\u304c\u6240\u6709\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u3042\u308a\u307e\u305b\u3093&#8221;\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u3001\u65e2\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308bOAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30ea\u30b9\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u767b\u9332\u3059\u308b\u305f\u3081\u306b\u3001\u300c\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u767b\u9332\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u7d9a\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6b21\u306e\u753b\u9762\u3067\u3001Grafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u95a2\u9023\u3059\u308b\u4ee5\u4e0b\u306e\u8a73\u7d30\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Application name: This helps you distinguish your different OAuth applications from one another.<\/li>\n<li>Homepage URL: This tells GitHub where to find Grafana. Type https:\/\/your_domain into this field, replacing your_domain with your domain.<\/li>\n<li>Application Description: This provides a description of your OAuth application\u2019s purpose.<\/li>\n<li>Application callback URL: This is the address where users will be sent once successfully authenticated. For Grafana, this field must be set to https:\/\/your_domain\/login\/github.<\/li>\n<\/ul>\n<p>GitHub\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308bGrafana\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u6700\u521d\u306e3\u3064\u306e\u6b04\u306b\u5165\u529b\u3057\u305f\u5024\u3092\u8868\u793a\u3059\u308b\u306e\u3067\u3001\u610f\u5473\u306e\u3042\u308b\u9069\u5207\u306a\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u305a\u306b\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5b8c\u6210\u5f8c\u3001\u30d5\u30a9\u30fc\u30e0\u306f\u3053\u306e\u3088\u3046\u306b\u898b\u3048\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/115-0.png\" alt=\"GitHub Register OAuth Application\" \/><\/div>\n<p>\u300c\u767b\u9332\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u300d\u306e\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001\u65b0\u3057\u3044OAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u8a18\u8f09\u3055\u308c\u305f\u30da\u30fc\u30b8\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u307e\u3059\u3002\u4e21\u65b9\u306e\u5024\u3092\u30e1\u30e2\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u3092Grafana\u306e\u30e1\u30a4\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306f\u5b89\u5168\u3067\u975e\u516c\u958b\u306e\u5834\u6240\u306b\u4fdd\u7ba1\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u653b\u6483\u306e\u57fa\u76e4\u3068\u3057\u3066\u5229\u7528\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002<\/div>\n<\/div>\n<p>GitHub\u306eOAuth\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001Grafana\u3092\u518d\u8a2d\u5b9a\u3057\u3066GitHub\u3092\u8a8d\u8a3c\u306b\u4f7f\u7528\u3059\u308b\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09\u30b9\u30c6\u30c3\u30d76 \u2014 Grafana\u3092GitHub OAuth\u30a2\u30d7\u30ea\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b<\/h2>\n<p>Grafana\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u304a\u3051\u308bGitHub\u8a8d\u8a3c\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u3001Grafana\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u3044\u304f\u3064\u304b\u306e\u5909\u66f4\u3092\u52a0\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u59cb\u3081\u308b\u306b\u306f\u3001\u30e1\u30a4\u30f3\u306eGrafana\u306e\u8a2d\u5b9a\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> \/etc\/grafana\/grafana.ini<\/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[auth.github]\u300d\u306e\u898b\u51fa\u3057\u3092\u63a2\u3057\u3001\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e&#8221;;allowed_domains =&#8221;\u3068&#8221;;team_ids =&#8221;\u4ee5\u5916\u306e\u884c\u306e\u5148\u982d\u306e;\u3092\u524a\u9664\u3057\u3066\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u884c\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3002\u300d<\/p>\n<p>\u6b21\u306b\u3001\u4ee5\u4e0b\u306e\u5909\u66f4\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Set enabled and allow_sign_up to true. This will enable GitHub Authentication and permit members of the allowed organization to create accounts themselves. Note that this setting is different from the allow_sign_up property under [users] that you changed in Step 4.<\/li>\n<li>Set client_id and client_secret to the values you got while creating your GitHub OAuth application.<\/li>\n<li>Set allowed_organizations to the name of your organization to ensure that only members of your organization can sign up and log in to Grafana.<\/li>\n<\/ul>\n<p>\u5b8c\u5168\u306a\u69cb\u6210\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div>\/etc\/grafana\/grafana.ini\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\u30b0\u30e9\u30d5\u30a1\u30ca\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff08grafana.ini\uff09\u306f\u3001\/etc\/grafana\/\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>...\r\n[auth.github]\r\nenabled = <mark>true<\/mark>\r\nallow_sign_up = <mark>true<\/mark>\r\nclient_id = <mark>your_client_id_from_github<\/mark>\r\nclient_secret = <mark>your_client_secret_from_github<\/mark>\r\nscopes = user:email,read:org\r\nauth_url = https:\/\/github.com\/login\/oauth\/authorize\r\ntoken_url = https:\/\/github.com\/login\/oauth\/access_token\r\napi_url = https:\/\/api.github.com\/user\r\n;allowed_domains =\r\n;team_ids =\r\nallowed_organizations = <mark>your_organization_name<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u73fe\u5728\u3001\u3042\u306a\u305f\u306fGrafana\u306bGitHub\u306b\u3064\u3044\u3066\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u3059\u3079\u3066\u306e\u60c5\u5831\u3092\u4f1d\u3048\u307e\u3057\u305f\u3002\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306b\u3088\u308b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001[server]\u30bb\u30af\u30b7\u30e7\u30f3\u306eroot_url\u5024\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u884c\u308f\u308c\u307e\u3059\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306a\u8868\u73fe\u306b\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\u3059\u308b\uff081\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\uff09:<br \/>\n\u300c\/etc\/grafana\/grafana.ini\u300d<\/div>\n<pre class=\"post-pre\"><code>...\r\n[server]\r\nroot_url = https:\/\/<mark>your_domain<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u308b\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u5909\u66f4\u3092\u6709\u52b9\u306b\u3059\u308b\u305f\u3081\u306b\u30b0\u30e9\u30d5\u30a1\u30ca\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 grafana-server<\/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\u5f8c\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\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 grafana-server<\/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\u7d50\u679c\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u30a2\u30af\u30c6\u30a3\u30d6\uff08\u5b9f\u884c\u4e2d\uff09\u3067\u3042\u308b\u3053\u3068\u3092\u793a\u3059\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u65b0\u3057\u3044\u8a8d\u8a3c\u30b7\u30b9\u30c6\u30e0\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306b\u3001https:\/\/your_domain\u306b\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002Grafana\u306b\u65e2\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u753b\u9762\u306e\u5de6\u4e0b\u9685\u306b\u3042\u308b\u30a2\u30d0\u30bf\u30fc\u30ed\u30b0\u306b\u30de\u30a6\u30b9\u3092\u91cd\u306d\u3001\u540d\u524d\u306e\u6a2a\u306b\u8868\u793a\u3055\u308c\u308b\u30b5\u30d6\u30e1\u30cb\u30e5\u30fc\u3067\u300c\u30ed\u30b0\u30a2\u30a6\u30c8\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u30da\u30fc\u30b8\u3067\u306f\u3001\u5143\u306e\u300c\u30ed\u30b0\u30a4\u30f3\u300d\u30dc\u30bf\u30f3\u306e\u4e0b\u306b\u3001GitHub\u306e\u30ed\u30b4\u304c\u4ed8\u3044\u305f\u300cGitHub\u3067\u30b5\u30a4\u30f3\u30a4\u30f3\u3059\u308b\u300d\u30dc\u30bf\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u65b0\u3057\u3044\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/141-0.png\" alt=\"Grafana Login page with GitHub\" \/><\/div>\n<p>\u300cGitHub\u3067\u306e\u30b5\u30a4\u30f3\u30a4\u30f3\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001GitHub\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3055\u308c\u3001GitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u3001Grafana\u3078\u306e\u627f\u8a8d\u610f\u5411\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u300d<\/p>\n<p>\u7dd1\u8272\u306e\u300c\u3042\u306a\u305f\u306eGitHub\u7d44\u7e54\u3092\u627f\u8a8d\u3059\u308b\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\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\u610f: GitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u627f\u8a8d\u3055\u308c\u305f\u7d44\u7e54\u306e\u30e1\u30f3\u30d0\u30fc\u3067\u3042\u308a\u3001Grafana\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304cGitHub\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u627f\u8a8d\u3055\u308c\u305f\u7d44\u7e54\u306e\u30e1\u30f3\u30d0\u30fc\u3067\u306a\u3044GitHub\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u8a8d\u8a3c\u3092\u8a66\u307f\u308b\u3068\u3001\u300c\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u5fc5\u8981\u306a\u7d44\u7e54\u306e\u30e1\u30f3\u30d0\u30fc\u3067\u306f\u306a\u3044\u3053\u3068\u304c\u4f1d\u3048\u3089\u308c\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001\u65e2\u5b58\u306eGrafana\u30a2\u30ab\u30a6\u30f3\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3055\u308c\u307e\u3059\u3002\u3082\u3057\u3001\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u306b\u65e2\u306bGrafana\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u3001Grafana\u306fViewer\u6a29\u9650\u3092\u6301\u3064\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3001\u65b0\u898f\u30e6\u30fc\u30b6\u30fc\u304c\u65e2\u5b58\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u307f\u3092\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u6a29\u9650\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001\u30e1\u30a4\u30f3\u306eGrafana\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\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\/grafana\/grafana.ini<\/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>[\u30e6\u30fc\u30b6\u30fc]\u898b\u51fa\u3057\u306e\u4e0b\u306bauto_assign_org_role\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u898b\u3064\u3051\u3066\u3001\u884c\u306e\u5148\u982d\u306e;\u3092\u524a\u9664\u3057\u3066\u8a2d\u5b9a\u3092\u30b3\u30e1\u30f3\u30c8\u89e3\u9664\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u5024\u306e\u6307\u793a\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Viewer: can only use existing dashboards.<\/li>\n<li>Editor: can use, modify, and add dashboards.<\/li>\n<li>Admin: has permission to do everything.<\/li>\n<\/ul>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30aa\u30fc\u30c8\u30a2\u30b5\u30a4\u30f3\u3092\u95b2\u89a7\u8005\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div>\u300c\/etc\/grafana\/grafana.ini\u300d\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u300c\/etc\/grafana\/grafana.ini\u300d\u3068\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>...\r\n[users]\r\n...\r\nauto_assign_org_role = <mark>Viewer<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u9589\u3058\u3066Grafana\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 grafana-server<\/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>\u30b5\u30fc\u30d3\u30b9\u306e\u72b6\u614b\u3092\u30c1\u30a7\u30c3\u30af\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 grafana-server<\/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\u524d\u3068\u540c\u69d8\u306b\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u306f\u30a2\u30af\u30c6\u30a3\u30d6\uff08\u5b9f\u884c\u4e2d\uff09\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001GitHub\u7d44\u7e54\u306e\u30e1\u30f3\u30d0\u30fc\u304cGrafana\u306b\u767b\u9332\u3057\u3001Grafana\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u5b8c\u5168\u306b\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Grafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u8a2d\u5b9a\u3057\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3057\u3001\u7d44\u7e54\u306e\u30e1\u30f3\u30d0\u30fc\u304cGitHub\u3092\u901a\u3058\u3066\u8a8d\u8a3c\u3059\u308b\u65b9\u6cd5\u3082\u5b66\u3073\u307e\u3057\u305f\u3002<\/p>\n<p>\u73fe\u5728\u306eGrafana\u306e\u62e1\u5f35\u306b\u3064\u3044\u3066\u306f\u3001\u516c\u5f0f\u304a\u3088\u3073\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u63d0\u4f9b\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e00\u89a7\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u4e00\u822c\u7684\u306aGrafana\u306e\u4f7f\u7528\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u3076\u306b\u306f\u3001\u516c\u5f0f\u306eGrafana\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u304b\u3001\u4ed6\u306e\u76e3\u8996\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8457\u8005\u306f\u300cWrite for Donations\u300d\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001\u5bc4\u4ed8\u91d1\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u306bCOVID-19\u6551\u6e08\u57fa\u91d1\u3092\u9078\u3073\u307e\u3057\u305f\u3002 \u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3 Grafana\u306f\u3001Prometheus\u3001InfluxDB\u3001Grap [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,17],"class_list":["post-304","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-17"],"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>\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/\u300cubuntu-20-04\u306bgrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\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=\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\" \/>\n<meta property=\"og:description\" content=\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/\u300cubuntu-20-04\u306bgrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-06T19:16:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T13:30:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/65-0.png\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\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=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"35\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\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-11-06T19:16:44+00:00\",\"dateModified\":\"2025-07-31T13:30:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"description\":\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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\":\"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\"}]},{\"@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\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d - Blog - Silicon Cloud","description":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/\u300cubuntu-20-04\u306bgrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d","og_description":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/\u300cubuntu-20-04\u306bgrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-06T19:16:44+00:00","article_modified_time":"2025-07-31T13:30:05+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656477dadaa94e2bdf7b7ffc\/65-0.png"}],"author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"35\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-11-06T19:16:44+00:00","dateModified":"2025-07-31T13:30:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"description":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d\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\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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":"\u300cUbuntu 20.04\u306bGrafana\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30bb\u30ad\u30e5\u30a2\u306b\u3059\u308b\u65b9\u6cd5\u300d"}]},{"@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\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%80%8cubuntu-20-04%e3%81%abgrafana%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%82%bb%e3%82%ad%e3%83%a5%e3%82%a2%e3%81%ab%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\/304","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=304"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions"}],"predecessor-version":[{"id":38892,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/304\/revisions\/38892"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}