Skip to content

Commit

Permalink
[pdh_check] to use wheels implementation of the pdh_check
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Apr 16, 2018
1 parent 8467f55 commit da6f218
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pdh_check/datadog_checks/pdh_check/pdh_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from utils.containers import hash_mutable
# datadog
try:
from checks.libs.win.winpdh import WinPDHCounter
from datadog_checks.checks.win import WinPDHCounter
except ImportError:
def WinPDHCounter(*args, **kwargs):
return
Expand Down Expand Up @@ -44,6 +44,8 @@ def __init__(self, name, init_config, agentConfig, instances=None):
for inst_name, dd_name, mtype in metrics:
m = getattr(self, mtype.lower())
obj = WinPDHCounter(counterset, inst_name, self.log)
if not obj:
continue
entry = [inst_name, dd_name, m, obj]
self.log.debug("entry: %s" % str(entry))
self._metrics[key].append(entry)
Expand Down

0 comments on commit da6f218

Please sign in to comment.