Skip to content

ossareh/libgosysstat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libgosysstat

CPU, Memory and Disk stat tool written in Go

Uses

A library for reading:

  • /proc/stat
  • /proc/meminfo

at a set interval.

Mental Model

+-----------+
| processor |- StatProcessor(statProcessor, chan)
+-----------+
    |-- Process() -> []core.Stat{}
+-----------------+
| ResettingReader | Open(reader.DataSource)
+-----------------+ 
    |-- Read() -> [][]string
+---------+
| io.File |
+---------+
    |-- Seek()
    \-- Read()

TODO

  • disk stats (% used, io rates)
  • net stats (kb/s?)
  • /proc//stat

About

Library for reading files in the /proc filesystem on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages