File tree Expand file tree Collapse file tree 3 files changed +0
-34
lines changed Expand file tree Collapse file tree 3 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,6 @@ func (h *cbsHandler) GetNamespace() string {
3333}
3434
3535func (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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package collector
22
33import (
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-
3420func init () {
3521 registerHandler (TdmqNamespace , defaultHandlerEnabled , NewTdmqHandler )
3622}
@@ -50,10 +36,6 @@ func (h *tdmqHandler) GetNamespace() string {
5036}
5137
5238func (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
You can’t perform that action at this time.
0 commit comments