This is an automated email from the ASF dual-hosted git repository.

zhaoqingran pushed a commit to branch grafana-doc
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git

commit 2c3ddc56b07c7b65a9ee10e833c1dea4100322a1
Author: zqr10159 <[email protected]>
AuthorDate: Thu Aug 29 23:20:07 2024 +0800

    docs(grafana_dashboard): create zh-cn documentation for Grafana 
integrationAdd Chinese documentation explaining the integration of Grafana for 
historical data
    visualization within the HertzBeat monitoring system. The new documentation 
covers
    prerequisites, configuration steps, and how to upload Grafana dashboard 
templates.
---
 .../current/help/grafana_dashboard.md              | 39 ++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git 
a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md
 
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md
new file mode 100644
index 000000000..b27e6f960
--- /dev/null
+++ 
b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md
@@ -0,0 +1,39 @@
+---
+id: grafana_dashboard  
+title: Grafana Dashboard      
+sidebar_label: Grafana历史图表   
+keywords: [Grafana, 历史图表]
+---
+
+> 
`Grafana`是一个开源的可视化和分析平台,它可以帮助你轻松地创建、分享和监控仪表板。本文将介绍如何在`HertzBeat`中使用`Grafana`展示历史数据。
+
+### 前提条件
+
+- `Grafana`服务已经启动,并配置好了账号密码。
+- `HertzBeat`服务已经启动,并配置好了`VictoriaMetrics`时序数据库(注意: `VictoriaMetrics`数据源是必须的)。
+
+:::caution 注意
+`Grafana`只能展示`Prometheus`类型监控的历史数据,目前并不支持`HertzBeat`中`yml`定义的监控数据。
+:::
+
+### 在HertzBeat中配置Grafana
+
+在`HertzBeat`的配置文件`hertzbeat.yml`中,配置`Grafana`数据源:
+
+```yaml
+grafana:
+  enabled: true
+  url: http://127.0.0.1:3000
+  username: admin
+  password: admin
+```
+
+### 在HertzBeat监控中上传Grafana监控模板json文件
+
+在`HertzBeat`新建或编辑`Prometheus`类型监控时,点击启用Grafana模板,选择Grafana模板json文件上传。
+监控模板json文件可以在 https://grafana.com/grafana/dashboards/ 下载。
+比如,在`HertzBeat`中新建一个关于`VictoriaMetrics`单节点的监控,然后打开 
https://grafana.com/grafana/dashboards/10229-victoriametrics-single-node/ ,点击右侧 
`Download JSON`按钮,下载模板json文件。在`HertzBeat`监控中上传模板json文件,保存。
+
+### 查看Grafana历史图表
+
+在`HertzBeat`监控页面,点击`Grafana`按钮,选择`Grafana`历史图表,选择监控模板,点击`查询`按钮,即可查看`Grafana`历史图表。


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to