jade.resource_monitor.ResourceMonitorLogger

class jade.resource_monitor.ResourceMonitorLogger(name, stats: ResourceMonitorStats, include_child_processes=True, recurse_child_processes=False)[source]

Bases: object

Logs resource utilization stats on periodic basis.

Methods

log_cpu_stats()

Logs CPU resource stats information.

log_disk_stats()

Logs disk stats.

log_memory_stats()

Logs memory resource stats information.

log_network_stats()

Logs memory resource stats information.

log_process_stats(pids)

Log stats for each process.

log_resource_stats([ids])

Logs resource stats information as structured job events for the current interval.

Attributes

name

Return the name of the monitor.

log_cpu_stats()[source]

Logs CPU resource stats information.

log_disk_stats()[source]

Logs disk stats.

log_memory_stats()[source]

Logs memory resource stats information.

log_network_stats()[source]

Logs memory resource stats information.

log_process_stats(pids)[source]

Log stats for each process.

Parameters:

ids (dict, defaults to None) – Maps job name to process ID.

log_resource_stats(ids=None)[source]

Logs resource stats information as structured job events for the current interval.

Parameters:

ids (dict, defaults to None) – Maps job name to process ID.

property name

Return the name of the monitor.