mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-05-17 04:34:16 +00:00
various: add internal health and runtime metrics
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iae1dcf8495a00159d588c6e2344312f36a6a6964
This commit is contained in:
parent
d7cdf2cc49
commit
27b3641717
5 changed files with 187 additions and 4 deletions
15
main.go
15
main.go
|
|
@ -2,6 +2,19 @@ package main
|
|||
|
||||
import "notashelf.dev/watchdog/cmd/watchdog"
|
||||
|
||||
// Injected at build time via ldflags:
|
||||
//
|
||||
// -X main.Version=v1.0.0
|
||||
// -X main.Commit=abc1234
|
||||
// -X main.BuildDate=2026-03-02
|
||||
//
|
||||
// I hate this pattern btw.
|
||||
var (
|
||||
Version = "dev"
|
||||
Commit = "unknown"
|
||||
BuildDate = "unknown"
|
||||
)
|
||||
|
||||
func main() {
|
||||
watchdog.Main()
|
||||
watchdog.Main(Version, Commit, BuildDate)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue