Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ooopsnake/pressure_watcher
useful tool for monitor cpu stat
https://github.com/ooopsnake/pressure_watcher
cpu-monitoring cpu-usage temperature
Last synced: about 2 months ago
JSON representation
useful tool for monitor cpu stat
- Host: GitHub
- URL: https://github.com/ooopsnake/pressure_watcher
- Owner: ooopSnake
- License: wtfpl
- Created: 2018-03-29T12:47:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-02T01:26:35.000Z (almost 7 years ago)
- Last Synced: 2023-12-04T17:57:50.754Z (about 1 year ago)
- Topics: cpu-monitoring, cpu-usage, temperature
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Useful Tool For Monitor CPU Stat
## GetStarted
### Step 1 clone this repo
```bash
git clone https://github.com/ooopSnake/pressure_watcher
```### Step 2 build
```bash
./build_all.sh
```### Step 3 execute
```bash
sudo ./pressure_watcher_arm
```## Result
```json
{
"cpuInfo": [
{
"id": "cpu 0",
"freq": "1.008 GHz",
"usage": "21.6 %"
},
{
"id": "cpu 1",
"freq": "1.008 GHz",
"usage": "21.1 %"
},
{
"id": "cpu 2",
"freq": "1.008 GHz",
"usage": "25.5 %"
},
{
"id": "cpu 3",
"freq": "1.008 GHz",
"usage": "23.5 %"
}
],
"cpuTemp": "39.9 °C"
}
```
## CommandFlags```bash
Usage of ./pressure_watcher:
-addr string
http addr , eg : 127.0.0.1 (default "0.0.0.0")
-nohttp
disable http server
-port string
http listen port , eg : 8080 (default "12345")
```## License
WTFPL