Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevenjoezhang/web-vmstats
Prettify vmstats in your browser
https://github.com/stevenjoezhang/web-vmstats
Last synced: about 1 month ago
JSON representation
Prettify vmstats in your browser
- Host: GitHub
- URL: https://github.com/stevenjoezhang/web-vmstats
- Owner: stevenjoezhang
- License: gpl-3.0
- Created: 2019-11-30T10:17:56.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T12:34:28.000Z (about 2 years ago)
- Last Synced: 2024-10-14T14:38:02.995Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web VMStat
Display live Linux system stats (memory, CPU, IO, etc) in a pretty web-page, with charts and everything.
![Screenshot](https://github.com/joewalnes/web-vmstats/raw/master/screenshot.png)
## Overview
Linux (and many other UNIXy operating systems) have a command line tool called [vmstat](http://en.wikipedia.org/wiki/Vmstat) for monitoring system stats.
It looks like this (a new line is output every second showing the latest values):
$ vmstat 1
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
0 0 246784 88976 144640 502132 0 0 9 15 15 6 0 0 99 0 0
0 0 246784 88984 144640 502132 0 0 0 0 79 155 0 0 100 0 0
0 0 246784 89488 144640 502132 0 0 0 24 99 229 1 0 99 0 0
0 0 246784 89504 144640 502132 0 0 0 0 79 168 0 1 99 0 0
0 0 246784 89504 144640 502132 0 0 0 0 74 163 0 0 100 0 0Useful, but fugly.
This is a tiny application that streams these stats over a WebSocket using [ws](https://github.com/websockets/ws) and charts them using [SmoothieCharts](http://smoothiecharts.org).
## Why?
Why not? A handy little process to install on machines you care about. After building this for my own needs, I thought it would make a great little demo.
And if you want to use it or hack on it yourself, here it is.
## Credits
Inspired by the original [web-vmstats](https://github.com/joewalnes/web-vmstats) by [Joe Walnes](https://github.com/joewalnes).