diff --git a/home/docs/help/grafana_dashboard.md b/home/docs/help/grafana_dashboard.md index b3953d8c052..7c4b9cfbcbc 100644 --- a/home/docs/help/grafana_dashboard.md +++ b/home/docs/help/grafana_dashboard.md @@ -9,16 +9,30 @@ 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). +- The `HertzBeat` service is started and the `VictoriaMetrics` time-series database is configured (note: the `VictoriaMetrics` data source is required). :::caution Caution. `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: +In the `Grafana` configuration file `grafana.ini`, set the `allow_embedding = true`. +In the `Grafana` configuration file `grafana.ini`, set the `[auth.anonymous]` option to `true`. + +```ini +allow_embedding = true +[auth.anonymous] +# enable anonymous access +enabled = true +``` + ### Configuring Grafana in HertzBeat -In the configuration file `hertzbeat.yml` in `HertzBeat`, configure the `Grafana` data source. +In the configuration file `application.yml` in `HertzBeat`, configure the `Grafana` data source. ```yaml grafana: 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 9e91b0e956d..6126f0db950 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 @@ -9,6 +9,7 @@ keywords: [Grafana, 历史图表] ### 前提条件 +- `Grafana`版本为8.1.0或以上。 - `Grafana`服务已经启动,并配置好了账号密码。 - `HertzBeat`服务已经启动,并配置好了`VictoriaMetrics`时序数据库(注意: `VictoriaMetrics`数据源是必须的)。 @@ -16,9 +17,22 @@ keywords: [Grafana, 历史图表] `Grafana`只能展示`Prometheus`类型监控的历史数据,目前并不支持`HertzBeat`中`yml`定义的监控数据。 ::: +### 启用Grafana 可嵌入功能, 并开启匿名访问 + +参考: +修改配置文件`grafana.ini`中的`allow_embedding = true` +修改配置文件`grafana.ini`中的`[auth.anonymous]` 为 `true` + +```ini +allow_embedding = true +[auth.anonymous] +# enable anonymous access +enabled = true +``` + ### 在HertzBeat中配置Grafana -在`HertzBeat`的配置文件`hertzbeat.yml`中,配置`Grafana`数据源: +在`HertzBeat`的配置文件`application.yml`中,配置`Grafana`数据源: ```yaml grafana: