Golang SDK for https://monibot.io - Website-, Server- and Application Monitoring.
This module provides a SDK to interact with the Monibot REST API. Monibot is a service that monitors your web apps, servers and application metrics, and notifies you if something goes wrong.
go get github.com/cvilsmeier/monibot-go
import "github.com/cvilsmeier/monibot-go"
func main() {
// api access requires an apiKey
apiKey := os.Getenv("MONIBOT_API_KEY")
// create new api
api := monibot.NewApi(apiKey)
// send a watchdog heartbeat
api.PostWatchdogHeartbeat("a749ff35891ecb36")
// increment a counter metric by 42
api.PostMetricInc("ffe31498bc7193a4", 42)
}
- replace MachineSample DiskReads/Writes (number of sectors) with DiskRead/Write (number of bytes)
- add histogram values functions
- add histogram metric values
- add machine text
- fix disk/net usage samples
- added netRecv and netSend to machine sample
- added diskReads and diskWrites to machine sample
- moved moni command line tool into own repo: https://github.com/cvilsmeier/moni
- first version
MIT License, see LICENSE