Dependencies
Make sure you have the following dependencies installed before setting up your developer environment:
- Git
- Go (see go.mod for minimum required version)
- Node.js (Long Term Support)
- Yarn
1 | ❯ npm config get registry |
1 | yarn install --immutable |
…
安装
下载二进制包 https://grafana.com/grafana/download/9.5.3?edition=oss
1 | ❯ tree ./grafana-9.5.3 -L 1 |
configure
https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/
密码
1 | grafana cli admin reset-admin-password xx |
重启,以配置文件的初始密码登陆,修改密码
[security]
admin_password = 123456
plugins
zabbix
https://grafana.com/grafana/plugins/alexanderzobnin-zabbix-app/
http://192.168.122.1:8080/api_jsonrpc.php
d8fe082afa3c3017727a59ca2feee657eeea67c9db55b9faae0c99b806d4eb89
sqlite3替换成 mysql
1 | create database grafana; |
type = mysql
host = 127.0.0.1:3305
name = grafana
user = grafana
password = grafana@123
Administration->Default preferences->Preferences(Language)->中文
https://grafana.com/docs/grafana/latest/cli/#plugins-commands
1 | ./grafana-cli --pluginsDir "/opt/monitor/grafana/plugins" plugins install alexanderzobnin-zabbix-app |