Add process start time metric (#675)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user