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)
 Checks clock speed from reading from CPU info. More...
 
def check_core_temps (self)
 Check CPU core temps. More...
 
def check_core_throttling (self, interval=1)
 
def check_free_memory (self)
 Uses 'free -m' to check free memory. More...
 
def check_idlejitter (self, interval=1)
 
def check_info (self, event)
 
def check_ipmi (self)
 Output entire IPMI data set. More...
 
def check_memory (self, event)
 
def check_mpstat (self)
 Use mpstat to find CPU usage. More...
 
def check_uptime (self)
 Uses 'uptime' to see load average. More...
 
def check_usage (self, event)
 
def get_core_temp_names (self)
 Returns names for core temperature files. More...
 
def publish_stats (self, event)
 
def query_netdata (self, chart, after)
 

Private Attributes

 _check_core_temps
 
 _check_idlejitter
 
 _check_ipmi
 
 _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
 
 _num_cores
 
 _publish_timer
 
 _temp_vals
 
 _thermal_throttling_threshold
 
 _usage_stat
 
 _usage_timer
 

Detailed Description

Definition at line 34 of file cpu_monitor.py.

Constructor & Destructor Documentation

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

Definition at line 35 of file cpu_monitor.py.

Member Function Documentation

def cpu_monitor.CPUMonitor.check_clock_speed (   self)

Checks clock speed from reading from CPU info.

Definition at line 263 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_core_temps (   self)

Check CPU core temps.

Read from every core, divide by 1000

Definition at line 212 of file cpu_monitor.py.

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

Definition at line 590 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_free_memory (   self)

Uses 'free -m' to check free memory.

Definition at line 400 of file cpu_monitor.py.

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

Definition at line 623 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_info (   self,
  event 
)

Definition at line 718 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_ipmi (   self)

Output entire IPMI data set.

Definition at line 90 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_memory (   self,
  event 
)

Definition at line 796 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_mpstat (   self)

Use mpstat to find CPU usage.

Definition at line 470 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_uptime (   self)

Uses 'uptime' to see load average.

Definition at line 348 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.check_usage (   self,
  event 
)

Definition at line 750 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.get_core_temp_names (   self)

Returns names for core temperature files.

Definition at line 660 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.publish_stats (   self,
  event 
)

Definition at line 817 of file cpu_monitor.py.

def cpu_monitor.CPUMonitor.query_netdata (   self,
  chart,
  after 
)

Definition at line 561 of file cpu_monitor.py.

Member Data Documentation

cpu_monitor.CPUMonitor._check_core_temps
private

Definition at line 37 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._check_idlejitter
private

Definition at line 51 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._check_ipmi
private

Definition at line 36 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._check_thermal_throttling_events
private

Definition at line 48 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._core_load_error
private

Definition at line 40 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._core_load_warn
private

Definition at line 39 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._core_temp_error
private

Definition at line 44 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._core_temp_warn
private

Definition at line 43 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._diag_pub
private

Definition at line 83 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._idlejitter_average_threshold
private

Definition at line 54 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._idlejitter_max_threshold
private

Definition at line 53 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._idlejitter_min_threshold
private

Definition at line 52 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._info_stat
private

Definition at line 62 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._info_timer
private

Definition at line 85 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._load1_threshold
private

Definition at line 41 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._load5_threshold
private

Definition at line 42 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._mem_error
private

Definition at line 46 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._mem_warn
private

Definition at line 45 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._memory_stat
private

Definition at line 76 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._memory_timer
private

Definition at line 87 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._num_cores
private

Definition at line 56 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._publish_timer
private

Definition at line 84 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._temp_vals
private

Definition at line 59 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._thermal_throttling_threshold
private

Definition at line 49 of file cpu_monitor.py.

cpu_monitor.CPUMonitor._usage_stat
private

Definition at line 69 of file cpu_monitor.py.

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 Wed Apr 7 2021 03:03:11