This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tango-docs/grafana-auto-deploy/README.md
2019-09-12 14:01:15 +08:00

56 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# README #
@Date : 2019/09/12
@Author : lwp
**说明**
此目录下的文件,用于 grafana 的自动部署(用于展示 tfe/kni 的 fieldstatu 数据)。
```
./
├── dashboard-tfe.json # dashboard 样式,界面
├── dashboard-tfe.yaml # dashboard 配置文件
├── datasources-influxdb.yaml # 数据源配置文件
├── grafana-6.3.0-1.x86_64.rpm # grafan 安装包
└── install.sh
```
**配置**
需要根据实际情况修改 datasources-influxdb.yaml 文件中的下列配置项:
* url : influxdb 访问地址
* user : influxdb 用户
* password: influxdb 用户密码
* database: influxdb 数据库名
**安装**
``` sh
sh install.sh
```
**访问**
使用浏览器访问下述地址(${HOST}: 为部署 grafana 的机器 IP
``` sh
http://${HOST}:3000/
```
* 默认管理账户admin
* 默认管理密码admin
**注意**
用于数据聚合的 telegraf 配置文件 /etc/telegraf/telegraf.conf 中建议增加下述配置,使 telegraf 聚合的直方图统计分布与 fieldstat 的配置一致,便于 grafana 进行数据展示。
``` sh
[[inputs.statsd]]
percentiles = [50,80,90,95] # 建议与 fieldstat 的配置一致
```