Add process start time metric (#675)

This commit is contained in:
Dan Sosedoff
2023-05-08 20:46:00 -05:00
committed by GitHub
parent 52f7988ebd
commit d4cfb059ce
2 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ type Handler struct {
func (h Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
uptimeGauge.Set(time.Since(h.startTime).Seconds())
h.promHandler.ServeHTTP(rw, req)
}