0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Grafana と Nginx の連携

Posted at

Nginx のリバースプロキシーで Grafana につなぐ方法です。

Nginx の設定

/etc/nginx/sites-available/default
server {
        listen 80 default_server;
        listen [::]:80 default_server;

(省略)

        location /grafana/ {
                proxy_pass http://localhost:3000/;
        }

}

Nginx の設定の確認

$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Grafana の設定

/etc/grafana/grafana.ini
(省略)
domain = localhost
root_url = %(protocol)s://%(domain)s/grafana/
(省略)

サーバーの再起動

sudo systemctl restart grafana-server
sudo systemctl restart nginx
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?