grafana 安装配置

Dependencies

Make sure you have the following dependencies installed before setting up your developer environment:

https://github.com/grafana/grafana/blob/dfc7a98d87c93860545033c9a37d81352c2caf70/contribute/developer-guide.md

1
2
❯ npm config get registry
https://registry.npm.taobao.org/
1
2
3
yarn install --immutable

yarn start

安装

下载二进制包 https://grafana.com/grafana/download/9.5.3?edition=oss

1
2
3
4
5
6
7
8
9
10
❯ tree ./grafana-9.5.3 -L 1
 ./grafana-9.5.3
├──  bin
├──  conf
├──  LICENSE
├──  NOTICE.md
├──  plugins-bundled
├──  public
├──  README.md
└──  VERSION

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
2
3
4
create database grafana;
create user grafana@'%' identified by 'grafana@123';
grant all on grafana.* to grafana@'%';
flush privileges;

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
点击打赏
文章目录
  1. 1. Dependencies
  2. 2. 安装
    1. 2.1. configure
    2. 2.2. 密码
    3. 2.3. plugins
      1. 2.3.1. zabbix
载入天数...载入时分秒... ,