Skip to content

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

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages