From 90c7bd80b166713d527debbf163399e0e76294e9 Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Sun, 5 Apr 2026 23:46:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 4 ++-- server/prometheus-service.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index 7c2831e..073d7fa 100644 --- a/public/index.html +++ b/public/index.html @@ -460,8 +460,8 @@
- - + +
diff --git a/server/prometheus-service.js b/server/prometheus-service.js index aedcde0..a4132a6 100644 --- a/server/prometheus-service.js +++ b/server/prometheus-service.js @@ -805,7 +805,7 @@ module.exports = { if (!blackboxUrl || !target) return null; try { const normalized = blackboxUrl.trim().replace(/\/+$/, ''); - const params = new URLSearchParams({ query: `probe_duration_seconds{instance="${target}"}` }); + const params = new URLSearchParams({ query: `probe_duration_seconds{instance_name="${target}"}` }); const res = await fetch(`${normalized}/api/v1/query?${params.toString()}`); if (!res.ok) return null; const data = await res.json();