From 585aa614fab3769c9e13f55ceb322bf55fe22d5f Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 21 May 2014 09:07:05 +0200 Subject: [PATCH] source-backend: serve /varz for memleak/goroutine-leak monitoring --- cmd/source-backend/source-backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/source-backend/source-backend.go b/cmd/source-backend/source-backend.go index f4856cc..5c971a5 100644 --- a/cmd/source-backend/source-backend.go +++ b/cmd/source-backend/source-backend.go @@ -7,6 +7,7 @@ import ( "fmt" // This is a forked version of codesearch/regexp which returns the results // in a structure instead of printing to stdout/stderr directly. + "github.com/Debian/dcs/cmd/dcs-web/varz" "github.com/Debian/dcs/ranking" "github.com/Debian/dcs/regexp" "io" @@ -141,5 +142,6 @@ func main() { http.HandleFunc("/source", Source) http.HandleFunc("/file", File) + http.HandleFunc("/varz", varz.Varz) log.Fatal(http.ListenAndServe(*listenAddress, nil)) } -- 2.11.4.GIT