Grafana基础

介绍

安装

Ubuntu中安装

1
2
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.3.2_amd64.deb 
sudo dpkg -i grafana_5.3.2_amd64.deb

CentOS中安装

1
2
$ wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.3.2-1.x86_64.rpm 
$ sudo yum localinstall grafana-5.3.2-1.x86_64.rpm

MacOS中安装

1
2
$ brew update 
$ brew install grafana

Docker中安装

1
$ docker run -d --name=grafana -p 3000:3000 grafana/grafana

配置

配置文件路径:/etc/grafana/grafana.ini

配置参考http://docs.grafana.org/installation/configuration/

默认项:

说明
登陆 http://localhost:3000
用户名 admin
密码 admin

管理

启动

1
2
3
4
5
$ sudo service grafana-server start
# 或者
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server

开机启动

1
2
3
$ sudo systemctl enable grafana-server.service
# 或者
$ sudo /sbin/chkconfig --add grafana-server
坚持原创技术分享,您的支持将鼓励我继续创作!
0%