grafana 安装配置

1.下载安装包  地址 https://grafana.com/grafana/download

wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.4.1-1.x86_64.rpm 
sudo yum localinstall grafana-4.4.1-1.x86_64.rpm 
service grafana-server start
chkconfig --add grafana-server

2.启动服务之后直接直接在浏览器访问http://IP:3000就会出现如下界面,默认账号和用户名为admin/admin,在/etc/grafana/grafana.ini配置文件中可修改。

3.安装常用插件

grafana-cli plugins install alexanderzobnin-zabbix-app
grafana-cli plugins install fastweb-openfalcon-datasource
grafana-cli plugins install grafana-clock-panel
grafana-cli plugins install grafana-piechart-panel
grafana-cli plugins install jdbranham-diagram-panel
service grafana-server restart

安装完记得重启

 3.grafana 绑定80端口

报错信息

msg="Fail to start server" logger=server error="listen tcp 0.0.0.0:80: bind: permission denied"

解决办法

setcap 'cap_net_bind_service=+ep' /usr/sbin/grafana-server
service grafana-server restart

 

posted @ 2017-07-19 17:33  悉达多尊  阅读(1383)  评论(0编辑  收藏  举报