Diggerd is a simple, lightweight, monitoring daemon serving the data via a JSON API written in Go designed to be super simple. Essentially a wrapper around gopsutil. Used for simple monitoring of Raspberry Pi's and learning Go.
Requires go 1.20+
Fetch dependancies:
$ go getFor production release:
$ go build -o build/diggerdStart the process:
$ ./diggerddiggerd will now be listening on port :10000. The avaliable endpoints are:
| Endpoint | Usage |
|---|---|
| /stats | Returns all the collected system stats as JSON |
| /stats/cpu | Returns the CPU usage as a percentage |
| /stats/mem | Returns the current Memory usage in bytes |
| /stats/net | Returns the current Network usage for each interface in bytes |
- Expand offered data by net including error counts
- Add disk stats output per disk basis
- Create config options for CORS header, port binding etc
BSD