Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/telkomdev/baper
<in development> Go library which helps you read CPU Stat and convert it to JSON. You can also use Baper as Unix Daemon
https://github.com/telkomdev/baper
command-line-tool cpu-monitoring go golang library
Last synced: about 5 hours ago
JSON representation
<in development> Go library which helps you read CPU Stat and convert it to JSON. You can also use Baper as Unix Daemon
- Host: GitHub
- URL: https://github.com/telkomdev/baper
- Owner: telkomdev
- License: mit
- Created: 2019-12-09T05:53:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T04:51:42.000Z (almost 5 years ago)
- Last Synced: 2023-03-04T15:52:47.154Z (over 1 year ago)
- Topics: command-line-tool, cpu-monitoring, go, golang, library
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Baper
Go library which helps you read `CPU Stat` and convert it to `JSON`. You can also use `Baper` as `Unix Daemon`
### Getting started
Running `CLI Mode`
```shell
$ make build
```Show help and options
```shell
$ baper -h
```Running with specific `interval`
```shell
$ baper -i 2
```Output
```shell
process running on PID = 73863
{"disk":{"kbPerTime":40.96,"tps":30,"mbPerSecond":1.2},"cpu":{"user":4,"system":2,"idle":94},"loadAverage":{"oneMinute":2.01,"fiveMinute":1.58,"fifteenMinute":1.56}}{"disk":{"kbPerTime":6.81,"tps":45,"mbPerSecond":0.3},"cpu":{"user":3,"system":1,"idle":96},"loadAverage":{"oneMinute":2.01,"fiveMinute":1.58,"fifteenMinute":1.56}}{"disk":{"kbPerTime":128,"tps":1,"mbPerSecond":0.12},"cpu":{"user":3,"system":1,"idle":96},"loadAverage":{"oneMinute":1.93,"fiveMinute":1.57,"fifteenMinute":1.56}}
```