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 4474bf48e477780b8cb6c540825df995d509d4dd Author: Logic <[email protected]> AuthorDate: Sun Sep 1 16:13:38 2024 +0800 docs(grafana_dashboard): update prerequisites and add embedding note Update the prerequisites in both English and Chinese versions of the grafana_dashboard documentation to reflect the correct Grafana version and configuration steps. Additionally, add a note on enabling embedding in Grafana by setting the `allow_embedding` option to `true` in the `grafana.ini` configuration file. --- home/docs/help/grafana_dashboard.md | 6 ++++++ .../current/help/grafana_dashboard.md | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/home/docs/help/grafana_dashboard.md b/home/docs/help/grafana_dashboard.md index b3953d8c0..1f5bdc47f 100644 --- a/home/docs/help/grafana_dashboard.md +++ b/home/docs/help/grafana_dashboard.md @@ -9,6 +9,7 @@ keywords: [Grafana, Historical Dashboard] ### Prerequisites +- The `Grafana` version 8.1.0 or later is installed and running. - The `Grafana` service is started and the account password is configured. - The `HertzBeat` service is started and the `VictoriaMetrics` timeseries database is configured (note: the `VictoriaMetrics` data source is required). @@ -16,6 +17,11 @@ keywords: [Grafana, Historical Dashboard] `Grafana` can only show historical data for `Prometheus` type of monitoring, currently it does not support monitoring data defined by `yml` in `HertzBeat`. ::: +### enable Grafana embedded url + +ref: <https://grafana.com/blog/2023/10/10/how-to-embed-grafana-dashboards-into-web-applications/> +In the `Grafana` configuration file `grafana.ini`, set the `allow_embedding` option to `true`. + ### Configuring Grafana in HertzBeat In the configuration file `hertzbeat.yml` in `HertzBeat`, configure the `Grafana` data source. 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 index 9e91b0e95..4cedf703b 100644 --- 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 @@ -8,7 +8,7 @@ keywords: [Grafana, 历史图表] > `Grafana`是一个开源的可视化和分析平台,它可以帮助你轻松地创建、分享和监控仪表板。本文将介绍如何在`HertzBeat`中使用`Grafana`展示历史数据。 ### 前提条件 - +- `Grafana`版本为8.1.0或以上。 - `Grafana`服务已经启动,并配置好了账号密码。 - `HertzBeat`服务已经启动,并配置好了`VictoriaMetrics`时序数据库(注意: `VictoriaMetrics`数据源是必须的)。 @@ -16,6 +16,11 @@ keywords: [Grafana, 历史图表] `Grafana`只能展示`Prometheus`类型监控的历史数据,目前并不支持`HertzBeat`中`yml`定义的监控数据。 ::: +### 启用Grafana 可嵌入功能 + +参考: <https://grafana.com/blog/2023/10/10/how-to-embed-grafana-dashboards-into-web-applications/> +修改配置文件`grafana.ini`中的`allow_embedding = true` + ### 在HertzBeat中配置Grafana 在`HertzBeat`的配置文件`hertzbeat.yml`中,配置`Grafana`数据源: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
