From c01bb57dea82e7b9311059e6af7f14f217120964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Mon, 4 Oct 2021 08:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=8A=8A499=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81=E5=8A=A0=E5=85=A5=E7=8A=B6=E6=80=81=E7=A0=81=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/metrics/task.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/metrics/task.go b/internal/metrics/task.go index 9a415ae..2ed7279 100644 --- a/internal/metrics/task.go +++ b/internal/metrics/task.go @@ -212,6 +212,12 @@ func (this *Task) Add(obj MetricInterface) { var keys = []string{} for _, key := range this.item.Keys { k := obj.MetricKey(key) + + // 忽略499状态 + if key == "${status}" && k == "499" { + return + } + keys = append(keys, k) }