From 6048b75b4c0139c88843e0cc9a640aeb9f80b9cb Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 5 May 2021 21:01:47 +0200 Subject: [PATCH] add simple health endpoint --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index e718dc8..018fa52 100644 --- a/main.go +++ b/main.go @@ -219,6 +219,9 @@ func main() { flag.Parse() http.Handle("/metrics", handler{sourceURL: *videoBridgeURL}) + http.HandleFunc("/health", func(w http.ResponseWriter, req *http.Request) { + _, _ = w.Write([]byte(`ok`)) + }) if err := http.ListenAndServe(*addr, nil); err != nil { log.Fatal(err) }