Prometheus 学习笔记 - 安装配置 Grafana
登陆grafana的服务器 安装下面的包
```
sudo apt-get install -y apt-transport-https software-properties-common wget
```
添加gpg key
```
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
```
添加repository
```
sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"
```
安装grafana的包
```
sudo apt-get update
sudo apt-get install grafana=6.6.2
```
启动服务
```
sudo systemctl enable grafana-server
sudo systemctl start grafana-server
```
查看服务状态
```
sudo systemctl status grafana-server
```
登陆管理网页
```
http://:3000
```
登陆之后默认账号 admin 密码 admin,登陆之后根据提示添加data source,选择 prormetheus,添加IP和 端口号,比如 http://10.0.1.101:9090,保存即可