Grafana安装及配置

注意:
1.如何按照插件
2.nignx中如何进行设置反向代理

# Centos7
yum localinstall -y https://dl.grafana.com/oss/release/grafana-6.4.4-1.x86_64.rpm

# 安装拼图、Consul数据源插件
grafana-cli plugins install grafana-piechart-panel
grafana-cli plugins install sbueringer-consul-datasource
systemctl restart grafana-server.service

# 启动服务
systemctl enable grafana-server.service
systemctl start grafana-server.service
systemctl status grafana-server.service

# nginx 配置
cat > /etc/nginx/conf.d/grafana.k8stech.net.conf << EOF
server {
    listen       80;
    server_name  grafana.k8stech.net;

    location / {
            try_files $uri @grafana;
    }

    location @grafana {
            internal;
            proxy_pass http://localhost:3000;
    }
}
EOF
posted @ 2020-09-03 10:37  哈喽哈喽111111  阅读(1962)  评论(0编辑  收藏  举报