Public Member Functions | Private Attributes | List of all members
cpu_monitor.CPUMonitor Class Reference

Public Member Functions

def __init__ (self, hostname, diag_hostname)
 
def check_clock_speed (self, interval=1)
 Checks clock speed from reading from CPU info. More...
 
def check_core_temps (self, interval=1)
 Check CPU core temps. More...
 
def check_core_throttling (self, interval=1)
 
def check_cpu_util (self, interval=1)
 
def check_free_memory (self, interval=1)
 Uses 'free -m' to check free memory. More...
 
def check_idlejitter (self, interval=1)
 
def check_info (self, event)
 
def check_load (self, interval=1)
 Uses 'system.load' to see load average. More...
 
def check_memory (self, event)
 
def check_uptime (self, interval=1)
 Uses 'uptime' to see system uptime. More...
 
def check_usage (self, event)
 
def publish_stats (self, event)
 

Private Attributes

 _check_core_temps
 
 _check_idlejitter
 
 _check_thermal_throttling_events
 
 _core_load_error
 
 _core_load_warn
 
 _core_temp_error
 
 _core_temp_warn
 
 _diag_pub
 
 _idlejitter_average_threshold
 
 _idlejitter_max_threshold
 
 _idlejitter_min_threshold
 
 _info_stat
 
 _info_timer
 
 _load1_threshold
 
 _load5_threshold
 
 _mem_error
 
 _mem_warn
 
 _memory_stat
 
 _memory_timer
 
 _netdata_interface
 
 _netdata_version
 
 _num_cores
 
 _publish_timer
 
 _thermal_throttling_threshold
 
 _usage_stat
 
 _usage_timer
 

Detailed Description

Definition at line 35 of file cpu_monitor.py.

Constructor & Destructor Documentation

◆ __init__()

def cpu_monitor.CPUMonitor.__init__ (   self,
  hostname,
  diag_hostname 
)

Definition at line 36 of file cpu_monitor.py.

Member Function Documentation

◆ check_clock_speed()

def cpu_monitor.CPUMonitor.check_clock_speed (   self,
  interval = 1 
)

Checks clock speed from reading from CPU info.

Definition at line 154 of file cpu_monitor.py.

◆ check_core_temps()

def cpu_monitor.CPUMonitor.check_core_temps (   self,
  interval = 1 
)

Check CPU core temps.

Definition at line 90 of file cpu_monitor.py.

◆ check_core_throttling()

def cpu_monitor.CPUMonitor.check_core_throttling (   self,
  interval = 1 
)

Definition at line 460 of file cpu_monitor.py.

◆ check_cpu_util()

def cpu_monitor.CPUMonitor.check_cpu_util (   self,
  interval = 1 
)

Definition at line 376 of file cpu_monitor.py.

◆ check_free_memory()

def cpu_monitor.CPUMonitor.check_free_memory (   self,
  interval = 1 
)

Uses 'free -m' to check free memory.

Definition at line 281 of file cpu_monitor.py.

◆ check_idlejitter()

def cpu_monitor.CPUMonitor.check_idlejitter (   self,
  interval = 1 
)

Definition at line 513 of file cpu_monitor.py.

◆ check_info()

def cpu_monitor.CPUMonitor.check_info (   self,
  event 
)

Definition at line 568 of file cpu_monitor.py.

◆ check_load()

def cpu_monitor.CPUMonitor.check_load (   self,
  interval = 1 
)

Uses 'system.load' to see load average.

Definition at line 231 of file cpu_monitor.py.

◆ check_memory()

def cpu_monitor.CPUMonitor.check_memory (   self,
  event 
)

Definition at line 653 of file cpu_monitor.py.

◆ check_uptime()

def cpu_monitor.CPUMonitor.check_uptime (   self,
  interval = 1 
)

Uses 'uptime' to see system uptime.

Definition at line 199 of file cpu_monitor.py.

◆ check_usage()

def cpu_monitor.CPUMonitor.check_usage (   self,
  event 
)

Definition at line 600 of file cpu_monitor.py.

◆ publish_stats()

def cpu_monitor.CPUMonitor.publish_stats (   self,
  event 
)

Definition at line 675 of file cpu_monitor.py.

Member Data Documentation

◆ _check_core_temps

cpu_monitor.CPUMonitor._check_core_temps
private

Definition at line 39 of file cpu_monitor.py.

◆ _check_idlejitter

cpu_monitor.CPUMonitor._check_idlejitter
private

Definition at line 52 of file cpu_monitor.py.

◆ _check_thermal_throttling_events

cpu_monitor.CPUMonitor._check_thermal_throttling_events
private

Definition at line 49 of file cpu_monitor.py.

◆ _core_load_error

cpu_monitor.CPUMonitor._core_load_error
private

Definition at line 41 of file cpu_monitor.py.

◆ _core_load_warn

cpu_monitor.CPUMonitor._core_load_warn
private

Definition at line 40 of file cpu_monitor.py.

◆ _core_temp_error

cpu_monitor.CPUMonitor._core_temp_error
private

Definition at line 45 of file cpu_monitor.py.

◆ _core_temp_warn

cpu_monitor.CPUMonitor._core_temp_warn
private

Definition at line 44 of file cpu_monitor.py.

◆ _diag_pub

cpu_monitor.CPUMonitor._diag_pub
private

Definition at line 83 of file cpu_monitor.py.

◆ _idlejitter_average_threshold

cpu_monitor.CPUMonitor._idlejitter_average_threshold
private

Definition at line 55 of file cpu_monitor.py.

◆ _idlejitter_max_threshold

cpu_monitor.CPUMonitor._idlejitter_max_threshold
private

Definition at line 54 of file cpu_monitor.py.

◆ _idlejitter_min_threshold

cpu_monitor.CPUMonitor._idlejitter_min_threshold
private

Definition at line 53 of file cpu_monitor.py.

◆ _info_stat

cpu_monitor.CPUMonitor._info_stat
private

Definition at line 62 of file cpu_monitor.py.

◆ _info_timer

cpu_monitor.CPUMonitor._info_timer
private

Definition at line 85 of file cpu_monitor.py.

◆ _load1_threshold

cpu_monitor.CPUMonitor._load1_threshold
private

Definition at line 42 of file cpu_monitor.py.

◆ _load5_threshold

cpu_monitor.CPUMonitor._load5_threshold
private

Definition at line 43 of file cpu_monitor.py.

◆ _mem_error

cpu_monitor.CPUMonitor._mem_error
private

Definition at line 47 of file cpu_monitor.py.

◆ _mem_warn

cpu_monitor.CPUMonitor._mem_warn
private

Definition at line 46 of file cpu_monitor.py.

◆ _memory_stat

cpu_monitor.CPUMonitor._memory_stat
private

Definition at line 76 of file cpu_monitor.py.

◆ _memory_timer

cpu_monitor.CPUMonitor._memory_timer
private

Definition at line 87 of file cpu_monitor.py.

◆ _netdata_interface

cpu_monitor.CPUMonitor._netdata_interface
private

Definition at line 37 of file cpu_monitor.py.

◆ _netdata_version

cpu_monitor.CPUMonitor._netdata_version
private

Definition at line 59 of file cpu_monitor.py.

◆ _num_cores

cpu_monitor.CPUMonitor._num_cores
private

Definition at line 57 of file cpu_monitor.py.

◆ _publish_timer

cpu_monitor.CPUMonitor._publish_timer
private

Definition at line 84 of file cpu_monitor.py.

◆ _thermal_throttling_threshold

cpu_monitor.CPUMonitor._thermal_throttling_threshold
private

Definition at line 50 of file cpu_monitor.py.

◆ _usage_stat

cpu_monitor.CPUMonitor._usage_stat
private

Definition at line 69 of file cpu_monitor.py.

◆ _usage_timer

cpu_monitor.CPUMonitor._usage_timer
private

Definition at line 86 of file cpu_monitor.py.


The documentation for this class was generated from the following file:


cob_monitoring
Author(s): Florian Weisshardt , Felix Messmer
autogenerated on Fri Aug 2 2024 09:45:52