Estats - A minimal metric retrieval system

estats - A minimal metric retrieval system

A CLI tool which polls:

  • Load average values
  • Derived CPU percentage values
  • Network interface statistics
  • Disk partition usage in percent
  • Memory usage in percent

Linux only. May work on other *nix, but untested.

Build:

This is a Go tool with no external dependencies. To build the project run:

git checkout https://github.com/kobajagi/estats.git && cd estats
go build

How to use:

Usage:
  estats [OPTION...]
Options:
  -i int
    	interval in seconds at which to poll (default 5)
  -n string
    	network interface to poll
  -p string
    	disk partition to poll

If -n or -p options are not specified, corresponding metrics will not print. To specify disk partition, specify any file or folder path within that partition (as expected by statfs).

Tool output is in (compact) JSON format, piped through jq it looks like this (single poll):

$ ./estats -n wlp2s0 -i 1 -p /home | jq

{
  "timestamp": 1642633633,
  "metrics": [
    {
      "name": "disk usage (%)",
      "metric": 8
    },
    {
      "name": "loadavg 1m",
      "metric": "0.29"
    },
    {
      "name": "loadavg 5m",
      "metric": "0.24"
    },
    {
      "name": "loadavg 15m",
      "metric": "0.33"
    },
    {
      "name": "cpu usage (%)",
      "metric": 5
    },
    {
      "name": "download (bytes)",
      "metric": 494800992
    },
    {
      "name": "upload (bytes)",
      "metric": 20615508
    },
    {
      "name": "memory usage (%)",
      "metric": 39
    }
  ]
}

Errors during polling are printed to stderr and do not stop the polling process. Stop tool using CTRL+c.

Similar Resources

An Open Source video surveillance management system for people making this world a safer place.

An Open Source video surveillance management system for people making this world a safer place.

Kerberos Open Source Docker Hub | Documentation | Website Kerberos Open source (v3) is a cutting edge video surveillance management system made availa

Dec 30, 2022

A system and resource monitoring tool written in Golang!

A system and resource monitoring tool written in Golang!

Grofer A clean and modern system and resource monitor written purely in golang using termui and gopsutil! Currently compatible with Linux only. Curren

Jan 8, 2023

A tool to list and diagnose Go processes currently running on your system

gops gops is a command to list and diagnose Go processes currently running on your system. $ gops 983 980 uplink-soecks go1.9 /usr/local/bin/u

Dec 27, 2022

An open-source and enterprise-level monitoring system.

 An open-source and enterprise-level monitoring system.

Falcon+ Documentations Usage Open-Falcon API Prerequisite Git = 1.7.5 Go = 1.6 Getting Started Docker Please refer to ./docker/README.md. Build from

Jan 1, 2023

OS system statistics library for Go

OS system statistics library for Go This is a library to get system metrics like cpu load and memory usage. The library is created for mackerel-agent.

Dec 9, 2022

Distributed simple and robust release management and monitoring system.

Distributed simple and robust release management and monitoring system.

Agente Distributed simple and robust release management and monitoring system. **This project on going work. Road map Core system First worker agent M

Nov 17, 2022

checkah is an agentless SSH system monitoring and alerting tool.

CHECKAH checkah is an agentless SSH system monitoring and alerting tool. Features: agentless check over SSH (password, keyfile, agent) config file bas

Oct 14, 2022

An example logging system using Prometheus, Loki, and Grafana.

An example logging system using Prometheus, Loki, and Grafana.

Logging Example Structure Collector Export numerical data for Prometheus and log data for Promtail. Exporter uses port 8080 Log files are saved to ./c

Nov 21, 2022

Cloudprober is a monitoring software that makes it super-easy to monitor availability and performance of various components of your system.

Cloudprober is a monitoring software that makes it super-easy to monitor availability and performance of various components of your system. Cloudprobe

Dec 30, 2022
A minimal and extensible structured logger

⚠️ PRE-RELEASE ⚠️ DO NOT IMPORT THIS MODULE YOUR PROJECT WILL BREAK package log package log provides a minimal interface for structured logging in ser

Jan 7, 2023
A minimal configuration manager for Go applications.

Confetti A simple config manager for Go applications. Install Use the following: go get -u github.com/shivanshkc/confetti/v2 When to use Confetti Con

Dec 7, 2021
📝 🪵 A minimal level based logging library for Go

slogx A minimal level based logging library for Go. Installation Example Usage Logger Log Level Format Output Contribute License Installation go get g

May 23, 2022
minimal now playing / music log

np === minimalistic 'now playing' music log. POST to add a song/album, GET to retreive log. usage ------ server: $ go build -o np main.go $ ./np -

Feb 22, 2022
Cloudinsight Agent is a system tool that monitors system processes and services, and sends information back to your Cloudinsight account.

Cloudinsight Agent 中文版 README Cloudinsight Agent is written in Go for collecting metrics from the system it's running on, or from other services, and

Nov 3, 2022
System resource usage profiler tool which regularly takes snapshots of the memory and CPU load of one or more running processes so as to dynamically build up a profile of their usage of system resources.
System resource usage profiler tool which regularly takes snapshots of the memory and CPU load of one or more running processes so as to dynamically build up a profile of their usage of system resources.

Vegeta is a system resource usage tracking tool built to regularly take snapshots of the memory and CPU load of one or more running processes, so as to dynamically build up a profile of their usage of system resources.

Jan 16, 2022
EdgeLog is a lightweight log management system, and Agent is a part of EdgeLog system

EdgeLog is a lightweight log management system, and Agent is a part of EdgeLog system. It is installed on host machine and its main duty is to collect host program log statics.

Oct 10, 2022
The Prometheus monitoring system and time series database.

Prometheus Visit prometheus.io for the full documentation, examples and guides. Prometheus, a Cloud Native Computing Foundation project, is a systems

Dec 31, 2022
rtop is an interactive, remote system monitoring tool based on SSH

rtop rtop is a remote system monitor. It connects over SSH to a remote system and displays vital system metrics (CPU, disk, memory, network). No speci

Dec 30, 2022
distributed monitoring system
distributed monitoring system

OWL OWL 是由国内领先的第三方数据智能服务商 TalkingData 开源的一款企业级分布式监控告警系统,目前由 Tech Operation Team 持续开发更新维护。 OWL 后台组件全部使用 Go 语言开发,Go 语言是 Google 开发的一种静态强类型、编译型、并发型,并具有垃圾回

Dec 24, 2022