issue while importing metrics with datadog

1.2k views Asked by At

i am struggling with importing metrics with datadog...I am getting below error in spite of installing all required packages... ( - instance #0 [ERROR]: Exception('You need the "psutil" package to run this check',)

request you to please help me out here as this is prove to be a major showstopper.

[root@mudcsftpup01 init.d]# ./datadog-agent info

2017-08-31 11:31:20,416 | INFO | dd.collector | util(util.py:481) | Pid file is: /var/run/dd-agent/dd-agent.pid

Collector (v 4.4.0)

Status date: 2017-08-31 11:31:19 (1s ago) Pid: 32028 Platform: Linux-3.10.0-514.el7.x86_64-x86_64-with-redhat-7.3-Maipo Python Version: 2.7.5 Logs: , /var/log/datadog/collector.log, syslog:/dev/log

Clocks ======

NTP offset: Unknown (timed out)
System UTC time: 2017-08-31 06:01:25.512491

Paths =====

conf.d: /etc/dd-agent/conf.d
checks.d: /usr/share/datadog/agent/checks.d

Hostnames =========

socket-hostname: mudcsftpup01
hostname: mudcsftpup01
socket-fqdn: mudcsftpup01.paytm-pb.net

Checks ======

process
-------
  - instance #0 [ERROR]: Exception('You need the "psutil" package to run this check',)
  - instance #1 [ERROR]: Exception('You need the "psutil" package to run this check',)
  - instance #2 [ERROR]: Exception('You need the "psutil" package to run this check',)
  - instance #3 [ERROR]: Exception('You need the "psutil" package to run this check',)
  - Collected 0 metrics, 0 events & 0 service checks

tcp_check
---------
  - instance #0 [OK]
  - instance #1 [OK]
  - Collected 0 metrics, 0 events & 0 service checks

network
-------
  - instance #0 [OK]
  - Collected 0 metrics, 0 events & 0 service checks

Emitters ========

- http_emitter [OK]

2017-08-31 11:31:25,827 | INFO | dd.dogstatsd | util(util.py:481) | Pid file is: /var/run/dd-agent/dogstatsd.pid

Dogstatsd (v 4.4.0)

Status date: 2017-08-31 11:31:23 (2s ago) Pid: 32053 Platform: Linux-3.10.0-514.el7.x86_64-x86_64-with-redhat-7.3-Maipo Python Version: 2.7.5 Logs: , /var/log/datadog/dogstatsd.log, syslog:/dev/log

Flush count: 1 Packet Count: 0 Packets per second: 0.0 Metric count: 0 Event count: 0

2

There are 2 answers

0
tqr_aupa_atleti On

Your answer appears to be there in the text -- you're missing a Python package. Try running sudo pip install psutil, then restarting the agent. Can you add your agent version, OS and version, and how you installed the agent to your text as well? It looks like you're also using a very old version of the agent (it's up to 5.17.* for a number of OS's) so there may be better package bundling or critical updates since v. 4.4.0. Try installing a newer version as well.

8
Rahul Kumar Srivastava On

Please find the required

[root@mudcsftpup01 ~]# sudo pip install psutil
Requirement already satisfied: psutil in /usr/lib64/python2.7/site-packages