package main
import (
"fmt"
"github.com/yhat/rstatd"
)
func main() {
stats, err := rstatd.ReadStats()
if err != nil {
panic(err)
}
fmt.Println(stats.CPUUser, stats.CPUNice, stats.CPUSys, stats.CPUIdle)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
yhat/rstatd
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Go rstatd client: for all your linux kernel monitoring needs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published