luosangnanka/goinfo


the info collect for Linux, such as CPU, mem, disk, IO etc.

License: MIT

Language: Go


goinfo

Getting Server system info by reading file in '/proc', such as CPU, Memory, Disk stat, IO, etc.

Installation

go get github.com/luosangnanka/goinfo

Features

  • Fast, and little resource consumption.

    Only because it works by reading linux file but not depand on any linux command such as 'free', etc.

  • Good compatibility. It works in any Linux machines.

Reading File List.

CPU:        "/proc/stat"        
Memory:     "/proc/meminfo"     
Net:        "/proc/net/dev"     
Host:       "/proc/uptime"      
Disk:       "/proc/diskstats"   
Loadavg:    "/proc/loadavg"     
TCP & UDP:  "/proc/net/snmp"    

Project Statistics

Sourcerank 4
Repository Size 148 KB
Stars 4
Forks 1
Watchers 2
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

狗蛋

Packages Referencing this Repo

github.com/luosangnanka/goinfo
the info collect for Linux, such as CPU, mem, disk, IO etc.
Latest release - Published - 4 stars

Something wrong with this page? Make a suggestion

Last synced: 2017-03-01 06:21:33 UTC

Login to resync this repository