diff --git a/pkg/collector/handler_dcg.go b/pkg/collector/handler_dcg.go index c0d645c..426bfd9 100644 --- a/pkg/collector/handler_dcg.go +++ b/pkg/collector/handler_dcg.go @@ -43,7 +43,7 @@ func (h *DcgHandler) IsMetricVaild(m *metric.TcmMetric) bool { } func NewDcgHandler(cred common.CredentialIface, c *TcProductCollector, logger log.Logger) (handler ProductHandler, err error) { - handler = &tdmqHandler{ + handler = &DcgHandler{ baseProductHandler: baseProductHandler{ monitorQueryKey: DcgInstanceidKey, collector: c, diff --git a/pkg/collector/handler_vpngw.go b/pkg/collector/handler_vpngw.go index 28fcdc9..504d7b7 100644 --- a/pkg/collector/handler_vpngw.go +++ b/pkg/collector/handler_vpngw.go @@ -43,7 +43,7 @@ func (h *VpngwHandler) IsMetricVaild(m *metric.TcmMetric) bool { } func NewVpngwHandler(cred common.CredentialIface, c *TcProductCollector, logger log.Logger) (handler ProductHandler, err error) { - handler = &tdmqHandler{ + handler = &VpngwHandler{ baseProductHandler: baseProductHandler{ monitorQueryKey: VpngwInstanceidKey, collector: c, diff --git a/pkg/collector/handler_vpnx.go b/pkg/collector/handler_vpnx.go index aaa0ffd..e156842 100644 --- a/pkg/collector/handler_vpnx.go +++ b/pkg/collector/handler_vpnx.go @@ -43,7 +43,7 @@ func (h *VpnxHandler) IsMetricVaild(m *metric.TcmMetric) bool { } func NewVpnxHandler(cred common.CredentialIface, c *TcProductCollector, logger log.Logger) (handler ProductHandler, err error) { - handler = &tdmqHandler{ + handler = &VpnxHandler{ baseProductHandler: baseProductHandler{ monitorQueryKey: VpnxInstanceidKey, collector: c,