Skip to content

A Go SDK for Monibot - Easy Server and Application Monitoring

License

Notifications You must be signed in to change notification settings

cvilsmeier/monibot-go

Repository files navigation

monibot-go

GoDoc Reference Build Status License: MIT

Golang SDK and CLI tool for https://monibot.io.

PLEASE NOTE: Monibot is still under development, visit https://monibot.io for details.

SDK Usage

$ 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
	err := api.PostWatchdogHeartbeat("5f6d343f517715a471d8768730c3f2f4")
	if err != nil {
		log.Fatal(err)
	}
}

CLI Usage

Build from source, needs Go. See also https://go.dev.

$ go install github.com/cvilsmeier/monibot-go/cmd/moni@latest

Show help page with the following command:

$ moni help

Changelog

See CHANGELOG.md

License

MIT License, see LICENSE