Grafana v5.4.3 安装
1,安装Grafana
- ubuntu
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
Open-Falcon
版本
# open-falcon --version
Open-Falcon version 0.3.x, build 18dd46a
- 下载
grafana v5.4.3
wget https://dl.grafana.com/oss/release/grafana_5.4.3_amd64.deb
- 安装依赖
sudo apt-get install -y adduser libfontconfig1
dpkg -i grafana_5.4.3_amd64.deb
# dpkg -i grafana_5.4.3_amd64.deb
(Reading database ... 178445 files and directories currently installed.)
Preparing to unpack grafana_5.4.3_amd64.deb ...
Unpacking grafana (5.4.3) ...
Setting up grafana (5.4.3) ...
Adding system user `grafana' (UID 126) ...
Adding new user `grafana' (UID 126) with group `grafana' ...
Not creating home directory `/usr/share/grafana'.
### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable grafana-server
### You can start grafana-server by executing
sudo /bin/systemctl start grafana-server
Processing triggers for systemd (237-3ubuntu10.29) ...
Processing triggers for ureadahead (0.100.0-21) ...
# sudo /bin/systemctl daemon-reload
# sudo /bin/systemctl enable grafana-server
# sudo /bin/systemctl start grafana-server
2,启动Grafana
- 查看服务是否起启动
systemctl status grafana-server
-
默认用户名 admin 密码 admin
-
插件安装
# grafana-cli plugins install fastweb-openfalcon-datasource
installing fastweb-openfalcon-datasource @ 1.0.0
from url: https://grafana.com/api/plugins/fastweb-openfalcon-datasource/versions/1.0.0/download
into: /var/lib/grafana/plugins
✔ Installed fastweb-openfalcon-datasource successfully
Restart grafana after installing plugins . <service grafana-server restart>
- 重启服务
systemctl restart grafana-server
- 添加数据源出错,安装
grafana v5.2
HTTP Error Not Found
lvl=info msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=GET path=/api/v1/grafana/metrics/find status=404
参考: