From cdf060e9accc7438db019f818c476e77b26f0dfa Mon Sep 17 00:00:00 2001 From: Zhang Yuxuan <1373529784@qq.com> Date: Thu, 12 Dec 2024 20:51:02 +0800 Subject: [PATCH] [Optimize] Add a reminder about potential collection issues caused by the Docker deployment method of collector. (#2844) Co-authored-by: Calvin Co-authored-by: tomsun28 Co-authored-by: shown Co-authored-by: aias00 --- home/docs/help/linux_script.md | 1 + home/docs/help/windows_script.md | 1 + .../docusaurus-plugin-content-docs/current/help/linux_script.md | 1 + .../current/help/windows_script.md | 1 + 4 files changed, 4 insertions(+) diff --git a/home/docs/help/linux_script.md b/home/docs/help/linux_script.md index fcb9c4f099b..46cd2ea6687 100644 --- a/home/docs/help/linux_script.md +++ b/home/docs/help/linux_script.md @@ -8,6 +8,7 @@ keywords: [open source monitoring system, open source network monitoring, using ### Preparation > To monitor the local machine, simply deploy Hertzbeat. To monitor other hosts, you need to deploy a collector on the target host. Refer to [this link](https://github.com/apache/hertzbeat?tab=readme-ov-file#2install-via-package) for step 5 of the installation process. +If the collector is installed using Docker, it will cause the collector to be unable to monitor the process information on the host machine, because Docker containers run in an isolated environment, with each container having its own process space. > When creating a monitoring task and selecting a collector, choose the corresponding collector deployed on the target host. ### Configuration Parameters diff --git a/home/docs/help/windows_script.md b/home/docs/help/windows_script.md index bf80e972e92..3aaefd7382c 100644 --- a/home/docs/help/windows_script.md +++ b/home/docs/help/windows_script.md @@ -8,6 +8,7 @@ keywords: [open source monitoring system, open source network monitoring, using ### Preparation > To monitor the local machine, simply deploy Hertzbeat. To monitor other hosts, you need to deploy a collector on the target host. Refer to [this link](https://github.com/apache/hertzbeat?tab=readme-ov-file#2install-via-package) for step 5 of the installation process. +> If the collector is installed using Docker, it will cause the collector to be unable to monitor the process information on the host machine, because Docker containers run in an isolated environment, with each container having its own process space. > When creating a monitoring task and selecting a collector, choose the corresponding collector deployed on the target host. ### Configuration Parameters diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux_script.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux_script.md index 7a722e414c2..ca224edb372 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux_script.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux_script.md @@ -8,6 +8,7 @@ keywords: [开源监控系统, 开源网络监控, 使用脚本监控 Linux 操 ### 准备工作 > 若要监控本机,部署 Hertzbeat 即可,若要监控其他主机,需在目标主机上部署采集器,部署采集器可参考[此链接](https://github.com/apache/hertzbeat?tab=readme-ov-file#2install-via-package)的第 5 步。 +> 如果使用 Docker 安装采集器,则会导致采集器监控不到宿主机上的进程信息,因为 Docker 容器在一个独立的环境中运行,每个容器都有自己的进程空间。 > 在创建监控任务选择采集器时,需选择目标主机上对应的采集器。 ### 配置参数 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows_script.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows_script.md index 38abacad64a..d469b035943 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows_script.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows_script.md @@ -8,6 +8,7 @@ keywords: [开源监控系统, 开源网络监控, 使用脚本监控 Windows ### 准备工作 > 若要监控本机,部署 Hertzbeat 即可,若要监控其他主机,需在目标主机上部署采集器,部署采集器可参考[此链接](https://github.com/apache/hertzbeat?tab=readme-ov-file#2install-via-package)的第 5 步。 +> 如果使用 Docker 安装采集器,则会导致采集器监控不到宿主机上的进程信息,因为 Docker 容器在一个独立的环境中运行,每个容器都有自己的进程空间。 > 在创建监控任务选择采集器时,需选择目标主机上对应的采集器。 ### 配置参数