From 415334ad73672c94ecc1d43e8190cf56541a51dd Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sat, 4 Apr 2026 22:13:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index e949518..97afa76 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,20 @@ npm run dev 点击右上角的 ⚙️ 按钮,添加你的 Prometheus 地址(如 `http://prometheus.example.com:9090`)。 +### 6. Prometheus 配置参考 (Example) + +在您的 Prometheus 配置文件 `prometheus.yml` 中,建议执行以下配置(`scrape_interval` 建议设为 `5s` 以获取最佳实时展示效果): + +```yaml +global: + scrape_interval: 5s +scrape_configs: + - job_name: '机器名称' + static_configs: + - targets: ['IP:Port'] +``` + + ## 技术栈 - **后端**: Node.js + Express