Skip to content

A simple logger to gathering linux system resource usage for analysis purpose.

Notifications You must be signed in to change notification settings

guihaomin/System-metric-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run this metric collector

sudo python logger.py

Intervals can be adjusted in logger.py Interface and disk name can be specified in logger.py( NETWORK_INTERFACE = 'eno1') eno1 is the interface that is used, make sure it corresponds to the information using ifconfig command.

Metric information include:

CPU

  • System CPU Usage
  • User CPU Usage
  • Load Avg
  • Run Queue Length

Process/Threads

  • Total # Process
  • Running Process
  • Sleeping Process
  • Threads
  • Blocked Process

Memory

  • Used Physical Memory
  • Unused Pysical Memory
  • swap-in
  • swap-out
  • page-in
  • page-out
  • Amount of Swap Space Allocated

Disk

  • Pysical Disk Read
  • Amount of Disk Physical Read
  • Pysical Disk Write
  • Amount of Disk Physical Write
  • Disk Busy Time

Network

  • Total # Incoming Packages
  • Size of Incoming Packages
  • Total # Outgoing Packages
  • Size of outging packages
  • Connections
  • Disconnections

Log

  • format
    "%s %f %s %d %s %s %s %s" 
      % (name, value, unit, interval, isCumulative, transform, description, host_name)
  • Important things to know about Metrics Parsing In log, we have a flag about whether a value is a cumulative value. For cumulative value, we will calculate the mean value during that interval.

Referance:

package linux-metrics distribution by Corey Goldberg (http://goldb.org)

About

A simple logger to gathering linux system resource usage for analysis purpose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages