介绍
Grafana
是一款开源的,功能齐全的度量仪表和图形编辑器.支持查看系统运行状态已经监控数据库性能.
安装显示管理界面grafana
参考官网安装;
以center OS
为例:
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.3.2_amd64.deb
$ sudo dpkg -i grafana_4.3.2_amd64.deb
安装数据源zabbix
$ sudo grafana-cli plugins install alexanderzobnin-zabbix-app
installing alexanderzobnin-zabbix-app @ 3.4.0
from url: https://grafana.com/api/plugins/alexanderzobnin-zabbix-app/versions/3.4.0/download
into: /var/lib/grafana/plugins
✔ Installed alexanderzobnin-zabbix-app successfully
Restart grafana after installing plugins . <service grafana-server restart>
启动
$ sudo service grafana-server start
# 设置开机启动
$ sudo chkconfig grafana-server on
# 启动服务器(通过systemd)
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
# 设置开机自启systemd服务
$ systemctl enable grafana-server.service
配置
访问localhost:8000
,登录帐号密码都是admin
.