This class can only be used outside the process that is being inspected
Get process busy stats.
Return 3 statsd messages for total_cpu time in seconds, total uptime in seconds, and the percentage of time the process has been active.
Return details of each network connection as a list of dictionaries.
Keys in each connection dictionary are:
local - host:port for the local side of the connection
remote - host:port of the remote side of the connection
- status - TCP Connection status. One of :
- “ESTABLISHED”
- “SYN_SENT”
- “SYN_RECV”
- “FIN_WAIT1”
- “FIN_WAIT2”
- “TIME_WAIT”
- “CLOSE”
- “CLOSE_WAIT”
- “LAST_ACK”
- “LISTEN”
- “CLOSING”
Return CPU usages in seconds split by system and user for the whole process. Also provides CPU % used for a 0.1 second interval.
Note that this method will block for 0.1 seconds.
Return the number of bytes read, written and the number of read and write syscalls that have invoked.
Return the percentage of physical memory used, RSS and VMS memory used
Return CPU usages in seconds split by system and user on a per thread basis.
Summarizes network connection information into something that is friendly to statsd.
From a metrics standpoint, we only really care about the number of connections in each state.
For each listening host:port, a dictionary of connection states to connection counts is created
psutil can’t do the right thing on OSX because of weird permissioning rules in Darwin.
Configure the metlog plugin prior to binding it to the metlog client.