{"id":198,"date":"2022-10-02T13:19:23","date_gmt":"2022-10-02T04:19:23","guid":{"rendered":"http:\/\/192.168.0.16:3005\/?p=198"},"modified":"2022-10-02T13:19:24","modified_gmt":"2022-10-02T04:19:24","slug":"grafana%e3%82%92%e6%b4%bb%e7%94%a8%e3%81%97%e3%81%a6%e8%87%aa%e5%89%8dweb%e3%82%a2%e3%83%97%e3%83%aa%e3%81%a7%e3%83%80%e3%83%83%e3%82%b7%e3%83%a5%e3%83%9c%e3%83%bc%e3%83%89%e3%82%92%e4%bd%9c-2","status":"publish","type":"post","link":"https:\/\/blog.solong.jp\/?p=198","title":{"rendered":"Grafana\u3092\u6d3b\u7528\u3057\u3066\u81ea\u524dWeb\u30a2\u30d7\u30ea\u3067\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u308b(2) &#8211; \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067"},"content":{"rendered":"\n<p>\u30af\u30e9\u30a6\u30c9\u3067\u306f\u306a\u304fSelf-Managed\u7248\u3092\u4f7f\u3046\u3002Ubuntu 22.04\u306b\u5c0e\u5165\u3057\u3066\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u306e\u78ba\u8a8d\u3068\u3001\u3069\u308c\u304f\u3089\u3044\u306e\u30b5\u30fc\u30d0\u8ca0\u8377\u306a\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3053\u308d\u307e\u3067\u3084\u3063\u3066\u307f\u305f\u3044\u3002\u4ee5\u524d\u8a66\u3057\u305fNextCloud\u3068\u304bPhotoPrism\u3068\u304b\u3042\u3093\u306a\u30ec\u30d9\u30eb\u3060\u3068\u3061\u3087\u3063\u3068\u304d\u3064\u3044\u3051\u3069\u3069\u3046\u3060\u308d\u3046\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3089\u8fba\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u7c21\u5358\u305d\u3046\u3060\u306a\u30fb\u30fb\u30fb\u3002\u30e1\u30e2\u308b\u307b\u3069\u3067\u3082\u306a\u3044\u304b\u3082\u3002\u305f\u3060\u3001Edition\u306e\u9078\u629e\u304cEnterprise\u3067\u306f\u306a\u304f\u3066OSS\u306b\u5909\u3048\u3066\u3042\u3052\u308b\u3068\u3053\u308d\u3060\u3051\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3002<br><a rel=\"noreferrer noopener\" href=\"https:\/\/grafana.com\/grafana\/download?pg=get&amp;plcmt=selfmanaged-box1-cta1&amp;platform=linux\" target=\"_blank\">https:\/\/grafana.com\/grafana\/download?pg=get&amp;plcmt=selfmanaged-box1-cta1&amp;platform=linux<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install -y adduser libfontconfig1\r\nwget https:\/\/dl.grafana.com\/oss\/release\/grafana_9.2.0~beta1_amd64.deb\r\nsudo dpkg -i grafana_9.2.0~beta1_amd64.deb<\/code><\/pre>\n\n\n\n<p>dpkg\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u3001\u4ee5\u4e0b\u304c\u30b7\u30a7\u30eb\u306b\u3060\u3089\u3060\u3089\u30c3\u3068\u8868\u793a\u3055\u308c\u305f\u3002\u5c0e\u7dda\u826f\u304f\u3066\u52a9\u304b\u308b\u306a\u3042\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Selecting previously unselected package grafana.\r\n(Reading database ... 107757 files and directories currently installed.)\r\nPreparing to unpack grafana_9.2.0~beta1_amd64.deb ...\r\nUnpacking grafana (9.2.0~beta1) ...\r\nSetting up grafana (9.2.0~beta1) ...\r\nAdding system user `grafana' (UID 110) ...\r\nAdding new user `grafana' (UID 110) with group `grafana' ...\r\nNot creating home directory `\/usr\/share\/grafana'.\r\n### NOT starting on installation, please execute the following statements to \n configure grafana to start automatically using systemd\r\n sudo \/bin\/systemctl daemon-reload\r\n sudo \/bin\/systemctl enable grafana-server\r\n### You can start grafana-server by executing\r\n sudo \/bin\/systemctl start grafana-server\r<\/code><\/pre>\n\n\n\n<p>\u7121\u4e8b\u8d77\u52d5\u3057\u305f\u3063\u307d\u3044\u3088\u3046\u306b\u898b\u3048\u305f\u3051\u3069\u3001\u306a\u3093\u304b\u304a\u304b\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tky@terry:~$ sudo systemctl status grafana-server\r\n\u00d7 grafana-server.service - Grafana instance\r\n     Loaded: loaded (\/lib\/systemd\/system\/grafana-server.service; enabled; vendor preset: enabled)\r\n     Active: failed (Result: exit-code) since Sun 2022-10-02 03:25:57 UTC; 4min 48s ago\r\n       Docs: http:\/\/docs.grafana.org\r\n    Process: 109549 ExecStart=\/usr\/sbin\/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}\/grafana-server.pid --packaging=deb cfg:default.paths.logs=$>\r\n   Main PID: 109549 (code=exited, status=200\/CHDIR)\r\n        CPU: 42ms\r\n\r\nOct 02 03:25:57 terry systemd&#91;1]: grafana-server.service: Scheduled restart job, restart counter is at 5.\r\nOct 02 03:25:57 terry systemd&#91;1]: Stopped Grafana instance.\r\nOct 02 03:25:57 terry systemd&#91;1]: grafana-server.service: Start request repeated too quickly.\r\nOct 02 03:25:57 terry systemd&#91;1]: grafana-server.service: Failed with result 'exit-code'.\r\nOct 02 03:25:57 terry systemd&#91;1]: Failed to start Grafana instance.\r<\/code><\/pre>\n\n\n\n<p>Web\u3092\u76f8\u5f53\u63a2\u3057\u305f\u3051\u3069\u3001\u7d50\u5c40\u3088\u304f\u308f\u304b\u3089\u305a\u3001\u4e00\u5ea6grafana\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3053\u3063\u3061\u306e\u624b\u9806\u3067apt\u3067\u3044\u308c\u305f\u3089\u52d5\u3044\u305f\u3002\u306a\u3093\u3060\u3063\u305f\u3093\u3060\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install -y gnupg2 curl\r\n$ curl https:\/\/packages.grafana.com\/gpg.key | sudo apt-key add -\r\n$ sudo add-apt-repository \"deb https:\/\/packages.grafana.com\/oss\/deb stable main\"\r\n$ sudo apt-get update\r\n$ sudo apt-get -y install grafana\r\n$ sudo systemctl start grafana-server<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"630\" src=\"http:\/\/192.168.0.16:3005\/wp-content\/uploads\/2022\/10\/image-1024x630.png\" alt=\"\" class=\"wp-image-199\" srcset=\"https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-1024x630.png 1024w, https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-300x185.png 300w, https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-768x473.png 768w, https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image.png 1410w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u753b\u9762\u3092\u3050\u308a\u3050\u308a\u52d5\u304b\u3057\u3066\u307f\u3066\u3044\u308b\u3051\u3069\u3001\u30b5\u30fc\u30d0\u306b\u304b\u304b\u308b\u8ca0\u8377\u5c0f\u3055\u3044\u306a\u3002<\/p>\n\n\n\n<p>\u9069\u5f53\u306bMySQL\u306e\u30c7\u30fc\u30bf\u3092Panel\u306b\u3057\u3066\u307f\u308b\u3051\u3069\u3053\u308c\u3082\u554f\u984c\u306a\u3057\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"464\" height=\"285\" src=\"http:\/\/192.168.0.16:3005\/wp-content\/uploads\/2022\/10\/image-1.png\" alt=\"\" class=\"wp-image-200\" srcset=\"https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-1.png 464w, https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-1-300x184.png 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/figure>\n\n\n\n<p>\u3044\u3058\u3063\u3066\u3066\u898b\u3064\u3051\u305f\u306e\u3060\u3051\u3069\u3001Organization\u3063\u3066\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308b\u3002\u3053\u308c\u3001python\u3068\u304b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u304b\u3067\u81ea\u52d5\u751f\u6210\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u306eDashboard\u3092Import\u3057\u3066Web\u30a2\u30d7\u30ea\u5074\u306b\u5408\u308f\u305b\u3066\u52d5\u304b\u3059\u3068\u304b\u3067\u304d\u308b\u306e\u304b\u306a\u30fb\u30fb\u30fb\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"185\" src=\"http:\/\/192.168.0.16:3005\/wp-content\/uploads\/2022\/10\/image-2.png\" alt=\"\" class=\"wp-image-201\" srcset=\"https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-2.png 339w, https:\/\/blog.solong.jp\/wp-content\/uploads\/2022\/10\/image-2-300x164.png 300w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u8fba\u306f\u3061\u3087\u3063\u3068\u52c9\u5f37\u3057\u3066\u3044\u304b\u306a\u3044\u3068\u306a\u3002\u3057\u304b\u3057\u65e5\u672c\u8a9e\u5316\u306f\u5168\u304f\u3067\u304d\u306a\u3044\u3088\u3046\u3060\u306a\u3042\u3002\u3053\u308c\u5f8c\u3005\u969c\u58c1\u306b\u306a\u308b\u304b\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30af\u30e9\u30a6\u30c9\u3067\u306f\u306a\u304fSelf-Managed\u7248\u3092\u4f7f\u3046\u3002Ubuntu 22.04\u306b\u5c0e\u5165\u3057\u3066\u52d5\u304f\u3068\u3053\u308d\u307e\u3067\u306e\u78ba\u8a8d\u3068\u3001\u3069\u308c\u304f\u3089\u3044\u306e\u30b5\u30fc\u30d0\u8ca0\u8377\u306a\u306e\u304b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3053\u308d\u307e\u3067\u3084\u3063\u3066\u307f\u305f\u3044\u3002\u4ee5\u524d\u8a66\u3057\u305fNextCloud\u3068\u304bPhotoPrism\u3068\u304b\u3042\u3093\u306a\u30ec\u30d9\u30eb\u3060\u3068\u3061\u3087\u3063\u3068\u304d\u3064\u3044\u3051\u3069\u3069\u3046\u3060\u308d\u3046\u3002 \u3053\u3053\u3089\u8fba\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u7c21\u5358\u305d\u3046\u3060\u306a\u30fb\u30fb\u30fb\u3002\u30e1\u30e2\u308b\u307b\u3069\u3067\u3082\u306a\u3044\u304b\u3082\u3002\u305f\u3060\u3001Edition\u306e\u9078\u629e\u304cEnterprise\u3067\u306f\u306a\u304f\u3066OSS\u306b\u5909\u3048\u3066\u3042\u3052\u308b\u3068\u3053\u308d\u3060\u3051\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u3002https:\/\/grafana.com\/grafana\/download?pg=get&amp;plcmt=selfmanaged-box1-cta1&amp;platform=linux dpkg\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u3001\u4ee5\u4e0b\u304c\u30b7\u30a7\u30eb\u306b\u3060\u3089\u3060\u3089\u30c3\u3068\u8868\u793a\u3055\u308c\u305f\u3002\u5c0e\u7dda\u826f\u304f\u3066\u52a9\u304b\u308b\u306a\u3042\u3002 \u7121\u4e8b\u8d77\u52d5\u3057\u305f\u3063\u307d\u3044\u3088\u3046\u306b\u898b\u3048\u305f\u3051\u3069\u3001\u306a\u3093\u304b\u304a\u304b\u3057\u3044\u3002 Web\u3092\u76f8\u5f53\u63a2\u3057\u305f\u3051\u3069\u3001\u7d50\u5c40\u3088\u304f\u308f\u304b\u3089\u305a\u3001\u4e00\u5ea6grafana\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3053\u3063\u3061\u306e\u624b\u9806\u3067apt\u3067\u3044\u308c\u305f\u3089\u52d5\u3044\u305f\u3002\u306a\u3093\u3060\u3063\u305f\u3093\u3060\u3002 \u753b\u9762\u3092\u3050\u308a\u3050\u308a\u52d5\u304b\u3057\u3066\u307f\u3066\u3044\u308b\u3051\u3069\u3001\u30b5\u30fc\u30d0\u306b\u304b\u304b\u308b\u8ca0\u8377\u5c0f\u3055\u3044\u306a\u3002 \u9069\u5f53\u306bMySQL\u306e\u30c7\u30fc\u30bf\u3092Panel\u306b\u3057\u3066\u307f\u308b\u3051\u3069\u3053\u308c\u3082\u554f\u984c\u306a\u3057\u3002 \u3044\u3058\u3063\u3066\u3066\u898b\u3064\u3051\u305f\u306e\u3060\u3051\u3069\u3001Organization\u3063\u3066\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308b\u3002\u3053\u308c\u3001python\u3068\u304b\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3068\u304b\u3067\u81ea\u52d5\u751f\u6210\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u306eDashboard\u3092Import\u3057\u3066Web\u30a2\u30d7\u30ea\u5074\u306b\u5408\u308f\u305b\u3066\u52d5\u304b\u3059\u3068\u304b\u3067\u304d\u308b\u306e\u304b\u306a\u30fb\u30fb\u30fb\u3002 \u3053\u306e\u8fba\u306f\u3061\u3087\u3063\u3068\u52c9\u5f37\u3057\u3066\u3044\u304b\u306a\u3044\u3068\u306a\u3002\u3057\u304b\u3057\u65e5\u672c\u8a9e\u5316\u306f\u5168\u304f\u3067\u304d\u306a\u3044\u3088\u3046\u3060\u306a\u3042\u3002\u3053\u308c\u5f8c\u3005\u969c\u58c1\u306b\u306a\u308b\u304b\u306a\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":1,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.solong.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}