Skip to content

Commit 7e58454

Browse files
author
zianazhao
committed
对齐版本
1 parent c4da628 commit 7e58454

File tree

3 files changed

+0
-34
lines changed

3 files changed

+0
-34
lines changed

pkg/collector/handler_cbs.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ func (h *cbsHandler) GetNamespace() string {
3333
}
3434

3535
func (h *cbsHandler) IsMetricVaild(m *metric.TcmMetric) bool {
36-
// 暂时过滤nvme盘类指标
37-
var dimensions []string
38-
for _, v := range m.Meta.SupportDimensions {
39-
dimensions = append(dimensions, v)
40-
}
41-
if util.IsStrInList(dimensions, "vmUuid") {
42-
return false
43-
}
4436
return true
4537
}
4638

pkg/collector/handler_clb7.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ var (
2323
"activeconnratio",
2424
"newactiveconnratio",
2525
"outtrafficratio",
26-
"rsptimeout",
27-
"setreqavg",
28-
"setreqmax",
29-
"setrspavg",
30-
"setrspmax",
31-
"settotalreq",
32-
"vrsptimeout",
33-
"vsettotalreq",
3426
}
3527
)
3628

pkg/collector/handler_tdmq.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package collector
22

33
import (
44
"fmt"
5-
"strings"
65
"time"
76

87
"github.com/go-kit/log"
@@ -18,19 +17,6 @@ const (
1817
TdmqInstanceidKey = "tenant"
1918
)
2019

21-
var (
22-
RocketMQOnlyIncludeMetrics = []string{
23-
"ropratein",
24-
"roprateout",
25-
"ropthroughputin",
26-
"ropthroughputout",
27-
"ropmsgbacklog",
28-
"ropmsgaveragesize",
29-
"ropinmessagetotal",
30-
"ropgroupcount",
31-
}
32-
)
33-
3420
func init() {
3521
registerHandler(TdmqNamespace, defaultHandlerEnabled, NewTdmqHandler)
3622
}
@@ -50,10 +36,6 @@ func (h *tdmqHandler) GetNamespace() string {
5036
}
5137

5238
func (h *tdmqHandler) IsMetricVaild(m *metric.TcmMetric) bool {
53-
// 暂时只支持 TDMQ RocketMQ 版指标
54-
if !util.IsStrInList(RocketMQOnlyIncludeMetrics, strings.ToLower(m.Meta.MetricName)) {
55-
return false
56-
}
5739
_, ok := excludeMetricName[m.Meta.MetricName]
5840
if ok {
5941
return false

0 commit comments

Comments
 (0)