Skip to content

Diggerd is a simple server monitoring daemon that serves info via JSON API

License

Notifications You must be signed in to change notification settings

painejake/diggerd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diggerd

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+

Building form source

Fetch dependancies:

$ go get

For production release:

$ go build -o build/diggerd

Getting it running

Start the process:

$ ./diggerd

diggerd 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

Todos

  • Expand offered data by net including error counts
  • Add disk stats output per disk basis
  • Create config options for CORS header, port binding etc

License

BSD

About

Diggerd is a simple server monitoring daemon that serves info via JSON API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages