From 5732c4403b8bf4110bf5cf3fcb711a62b62cad35 Mon Sep 17 00:00:00 2001 From: qzh <951012707@qq.com> Date: Fri, 15 Apr 2022 21:17:16 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=90=88=E5=B9=B6targets=5Fup=E6=8C=87?= =?UTF-8?q?=E6=A0=87=E4=B8=BA=E4=B8=80=E4=B8=AAident=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E8=B5=84=E6=BA=90=E5=88=A9=E7=94=A8=E3=80=82=20(#915)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/idents/idents.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/idents/idents.go b/src/server/idents/idents.go index b7e064f6..9531a55b 100644 --- a/src/server/idents/idents.go +++ b/src/server/idents/idents.go @@ -168,7 +168,7 @@ func pushMetrics() { common.AppendLabels(pt, target) } - writer.Writers.PushSample(active, pt) + writer.Writers.PushSample("default_ident_target_up", pt) } // 把actives传给TargetCache,看看除了active的部分,还有别的target么?有的话返回,设置target_up = 0 @@ -193,6 +193,6 @@ func pushMetrics() { }) common.AppendLabels(pt, dead) - writer.Writers.PushSample(ident, pt) + writer.Writers.PushSample("default_ident_target_up", pt) } }