All Projects → likexian → host-stat-go

likexian / host-stat-go

Licence: Apache-2.0 license
Go module for collecting host stat

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to host-stat-go

YappyGitHub
A github monitor bot for Discord
Stars: ✭ 64 (+128.57%)
Mutual labels:  monitor
bundlemon
Monitor your bundle size
Stars: ✭ 53 (+89.29%)
Mutual labels:  monitor
mix-agent
基于rust语言开发的一套运维监控探针,支持widnows、linux、macos系统
Stars: ✭ 14 (-50%)
Mutual labels:  monitor
dynamic-engine
Monitor events in the background on Android.
Stars: ✭ 24 (-14.29%)
Mutual labels:  monitor
Intercept-netkeeper-account
截取NetKeeper拨号时的真实账号,截获到的账号可以用于路由器、电脑等的pppoe拨号,可用4.9及其以下版本的NetKeeper
Stars: ✭ 57 (+103.57%)
Mutual labels:  monitor
swarm-monitor
Monitor a Docker Swarm with Blinkt! LED
Stars: ✭ 48 (+71.43%)
Mutual labels:  monitor
dash
Server control panel
Stars: ✭ 22 (-21.43%)
Mutual labels:  monitor
performance monitor
Monitor Linux system
Stars: ✭ 30 (+7.14%)
Mutual labels:  monitor
speedy
Test, track, monitor and analyze your internet speed.
Stars: ✭ 35 (+25%)
Mutual labels:  monitor
system-monitor
Qt based replacement for gnome system monitor
Stars: ✭ 16 (-42.86%)
Mutual labels:  monitor
monitor-man
HTTP API monitor based on postman and newman.
Stars: ✭ 44 (+57.14%)
Mutual labels:  monitor
vaper
Take a look at the relations among servers.
Stars: ✭ 16 (-42.86%)
Mutual labels:  monitor
StatusPilatus
Monitor your PC like never before!
Stars: ✭ 52 (+85.71%)
Mutual labels:  monitor
kafka monitor
A kafka monitor to send alarm emails
Stars: ✭ 14 (-50%)
Mutual labels:  monitor
dde-istate-menus
a dde-dock plugin which aims to implement most features of Istat menus(macOS) for Deepin V20
Stars: ✭ 30 (+7.14%)
Mutual labels:  monitor
gl-bench
⏱ WebGL performance monitor with CPU/GPU load.
Stars: ✭ 146 (+421.43%)
Mutual labels:  monitor
dubbox
dubbox原始版本的升级版,主要根据GitHub各路大神代码的整合
Stars: ✭ 13 (-53.57%)
Mutual labels:  monitor
monitor system docs
No description or website provided.
Stars: ✭ 30 (+7.14%)
Mutual labels:  monitor
audria
audria - A Utility for Detailed Ressource Inspection of Applications
Stars: ✭ 35 (+25%)
Mutual labels:  monitor
is-directory
Extends `stats.isDirectory()`, returns `true` if a filepath is a directory.
Stars: ✭ 28 (+0%)
Mutual labels:  stat

host-stat

License GoDoc Build Status Go Report Card Code Cover

host-stat-go is a Go module for collecting host stat.

Overview

This module provided functions to collect cpu/mem/disk/io/load/uptime/kernel info of the host.

Work for popular LINUX distributions ONLY

Installation

go get -u github.com/likexian/host-stat-go

Importing

import (
    "github.com/likexian/host-stat-go"
)

Documentation

Visit the docs on GoDoc

Example

Get the memory stat

memStat, err := hoststat.GetMemStat()
if err == nil {
    // print total memory of host in KB
    fmt.Println(memStat.MemTotal)

    // print used memory of host in KB
    fmt.Println(memStat.MemUsed)

    // print free memory of host in KB
    fmt.Println(memStat.MemFree)

    // print used memory rate of host in percent
    fmt.Println(memStat.MemRate)
}

LICENSE

Copyright 2014-2019 Li Kexian

Licensed under the Apache License 2.0

About

DONATE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].