https://github.com/davydovanton/host-monitoring-client
Host-monitoring client
https://github.com/davydovanton/host-monitoring-client
Last synced: 3 months ago
JSON representation
Host-monitoring client
- Host: GitHub
- URL: https://github.com/davydovanton/host-monitoring-client
- Owner: davydovanton
- Created: 2015-10-10T18:31:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-10T18:36:31.000Z (over 9 years ago)
- Last Synced: 2025-01-21T22:08:50.276Z (5 months ago)
- Language: Go
- Size: 2.37 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Host-monitoring client
Simple implementation JSON http client witch returns system statistic (CPU and memory)## Usage
Start server
```
$ bin/main
```and after that:
```
$ curl -i localhost:8071/stats
```## Response
- `used_percent_per_core` - returns arrays with percent usage for each processor```
{
"memory": {
"total": 17179869184,
"available": 6500904960,
"used": 16786092032,
"used_percent": 62.15975284576416,
"free": 393777152,
"active": 8078532608,
"inactive": 3784556544,
"buffers": 0,
"cached": 6107127808,
"wired": 1887318016,
"shared": 0
},
"cpu": {
"used_percent_per_core": [4,1.9607843137254901,2.9702970297029703,1]
}
}
```