标签:grafana
Grafana是一个可视化面板(Dashboard),有着非常漂亮的图表和布局展示,功能齐全的度量仪表盘和图形编辑器,支持Graphite、zabbix、InfluxDB、Prometheus和OpenTSDB作为数据源。Grafana主要特性:灵活丰富的图形化选项;可以混合多种风格;支持白天和夜间模式;多个数据源。wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.2.0-1.x86_64.rpm #下载yum源
yum localinstall grafana-4.2.0-1.x86_64.rpm
在线yum安装yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.0-1.x86_64.rpm
通过rpm安装
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.1.0-1.x86_64.rpm
$ sudo yum install initscripts fontconfig
$ sudo rpm -Uvh grafana-5.1.0-1.x86_64.rpm
添加yum配置
/etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/7/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
yum install grafana
注释:
● 二进制安装 /usr/sbin/grafana-server
● 启动脚本位置 /etc/init.d/grafana-server
● 安装默认文件/etc/sysconfig/grafana-server
● Copies configuration file to /etc/grafana/grafana.ini
● 服务名称 grafana-server.service
● 默认日志位置 /var/log/grafana/grafana.log
● 指定数据库/var/lib/grafana/grafana.db
启动服务service grafana-server start
设置开机启动/sbin/chkconfig --add grafana-server
通过systemd启动服务
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
systemctl enable grafana-server.service
如果图像缺少文本,请确保已安装字体包
yum install fontconfig
yum install freetype*
yum install urw-fonts
升级grafanayum update grafana
使用docker安装grafana
grafana默认端口3000
运行docker并映射3000端口$ docker run -d -p 3000:3000 grafana/grafana
标签:grafana
原文地址:http://blog.51cto.com/cuis1/2114421