All Projects β†’ pesos β†’ Grofer

pesos / Grofer

Licence: apache-2.0
A system and resource monitoring tool written in Golang!

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Grofer

Spotui
Spotify in the terminal πŸ’»πŸŽΆ
Stars: ✭ 302 (+123.7%)
Mutual labels:  terminal-based, cli, tui
S Tui
Terminal-based CPU stress and monitoring utility
Stars: ✭ 2,825 (+1992.59%)
Mutual labels:  cli, tui, cpu
Spotify Tui
Spotify for the terminal written in Rust πŸš€
Stars: ✭ 11,061 (+8093.33%)
Mutual labels:  terminal-based, cli
Xxv
The XXV visual hex viewer for the terminal.
Stars: ✭ 61 (-54.81%)
Mutual labels:  cli, tui
Cordless
The Discord terminal client you never knew you wanted.
Stars: ✭ 1,391 (+930.37%)
Mutual labels:  cli, tui
Auto Cpufreq
Automatic CPU speed & power optimizer for Linux
Stars: ✭ 843 (+524.44%)
Mutual labels:  cli, cpu
Bashmultitool
A library for bash shell program containing useful functions. Can be imported into scripts to create colourful and functional scripts and TUIs.
Stars: ✭ 27 (-80%)
Mutual labels:  cli, tui
Torchlambda
Lightweight tool to deploy PyTorch models to AWS Lambda
Stars: ✭ 83 (-38.52%)
Mutual labels:  cli, performance
Walle
iOS Application performance monitoring
Stars: ✭ 19 (-85.93%)
Mutual labels:  cpu, performance
Clrcli
CLRCLI is an event-driven library for building line-art user interfaces in C#/.Net command-line applications.
Stars: ✭ 124 (-8.15%)
Mutual labels:  cli, tui
Onemkl
oneAPI Math Kernel Library (oneMKL) Interfaces
Stars: ✭ 122 (-9.63%)
Mutual labels:  cpu, performance
Nnn
nΒ³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+9631.85%)
Mutual labels:  cli, tui
Image Actions
A Github Action that automatically compresses JPEGs, PNGs and WebPs in Pull Requests.
Stars: ✭ 844 (+525.19%)
Mutual labels:  performance-monitoring, performance
Devdash
🍱 Highly Configurable Terminal Dashboard for Developers and Creators
Stars: ✭ 939 (+595.56%)
Mutual labels:  cli, tui
Corefreq
CoreFreq is a CPU monitoring software designed for the 64-bits Processors.
Stars: ✭ 1,026 (+660%)
Mutual labels:  cpu, performance-monitoring
Hed
vim like hex editor
Stars: ✭ 23 (-82.96%)
Mutual labels:  terminal-based, cli
Pcm
Processor Counter Monitor
Stars: ✭ 1,240 (+818.52%)
Mutual labels:  cpu, performance-monitoring
Jsonfui
jsonfui is an interactive command-line JSON viewer.
Stars: ✭ 125 (-7.41%)
Mutual labels:  cli, tui
Chafa
πŸ“ΊπŸ—Ώ Terminal graphics for the 21st century.
Stars: ✭ 774 (+473.33%)
Mutual labels:  terminal-based, cli
Vlany
Linux LD_PRELOAD rootkit (x86 and x86_64 architectures)
Stars: ✭ 804 (+495.56%)
Mutual labels:  cli, tui

Grofer

pesos

A clean and modern system and resource monitor written purely in golang using termui and gopsutil!

Currently compatible with Linux only.

Currently compatible with Linux only.

Installation

Using go get:

go get -u github.com/pesos/grofer

As an executable:

curl -sSL https://github.com/pesos/grofer/releases/download/<version tag>/grofer_<architecture> --output grofer
chmod +x grofer

architecture: underlying system architecture on which grofer will be run

  • grofer_386
  • grofer_amd64
  • grofer_arm
  • grofer_arm64

For system wide usage, install grofer to a location on $PATH, e.g. /usr/local/bin

mv grofer /usr/local/bin

Building from source:

git clone https://github.com/pesos/grofer
cd grofer
go build grofer.go

Shell Completions

grofer includes a subcommand to generate shell completion scripts to get autocompletion for subcommands and flags

Bash

To get completions for current session only,

source <(grofer completion bash)

To load completions for each session, the generated script must be moved to the completions directory. Take a look at the third question here to find out the right place to put the script

Zsh

If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions for each session, the generated script must be placed in a directory in your fpath. For a quick-and-dirty solution, run once:

grofer completion zsh > "${fpath[1]}/_grofer"

You will need to start a new shell for this setup to take effect.

Fish

To get completions for current session only,

grofer completion fish | source

To load completions for each session, the generated script must be moved to the completions directory

grofer completion fish > ~/.config/fish/completions/grofer.fish

Usage

grofer is a system and resource monitor written in golang.

While using a TUI based command, press ? to get information about key bindings (if any) for that command.

Usage:
  grofer [flags]
  grofer [command]

Available Commands:
  about       about is a command that gives information about the project in a cute way
  completion  Generate completion script
  export      Used to export profiled data.
  help        Help about any command
  proc        proc command is used to get per-process information

Flags:
      --config string   config file (default is $HOME/.grofer.yaml)
  -c, --cpuinfo         Info about the CPU Load over all CPUs
  -h, --help            help for grofer
  -r, --refresh uint    Overall stats UI refreshes rate in milliseconds greater than 1000 (default 1000)
  -t, --toggle          Help message for toggle

Use "grofer [command] --help" for more information about a command.


Examples

grofer [-r refreshRate] [-c]

This gives overall utilization stats refreshed every refreshRate milliseconds. Default and minimum value of the refresh rate is 1000 ms.

grofer

Information provided:

  • CPU utilization per core
  • Memory (RAM) usage
  • Network usage
  • Disk storage

The -c, --cpuinfo flag displays finer details about the CPU load such as percentage of the time spent servicing software interrupts, hardware interrupts, etc.

grofer-cpu

Information provided:

  • Usr : % of time spent executing user level applications.
  • Sys : % of time spent executing kernel level processes.
  • Irq : % of time spent servicing hardware interrupts.
  • Idle : % of time CPU was idle.
  • Nice : % of time spent by CPU executing user level processes with a nice priority.
  • Iowait: % of time spent by CPU waiting for an outstanding disk I/O.
  • Soft : % of time spent by the CPU servicing software interrupts.
  • Steal : % of time spent in involuntary waiting by logical CPUs.

grofer proc [-p PID] [-r refreshRate]

If the -r flag is specified then the UI will refresh and display new information every refreshRate milliseconds. The minimum and default value for refreshRate is 1000 ms.

grofer proc

This lists all running processes and relevant information.

grofer-proc


grofer proc -p PID

This gives information specific to a process, specified by a valid PID.

Passing a PID of 0 will list all the processes instead (same as grofer proc).

grofer-proc-pid

Information provided:

  • CPU utilization %

  • Memory utilization %

  • Child processes

  • Number of voluntary and involuntary context switches

  • Memory usage (RSS, Data, Stack, Swap)

grofer export [-i Iterations] [-f File] [-r refreshRate] [-t type] [-p PID]

This allows exporting of profiled data either of system usage or data particular to that of a process. Data format is JSON by default, but XML support exists too!

The flags are explained as follows:

  • -i, --iter: Number of iterations to profile for.

  • -f, --filename: Name of output file (exported data).

  • -r, --refresh: Refresh rate, time interval between iterations (in milliseconds).

  • -t, --type: Specify the output data format (JSON by default). Types supported are:

    • JSON: Specifically, LJSON, where each line consists of one JSON object which contain nested fields and values.
  • -p, --pid: Specify PID of process to profile.

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].