diff --git a/main.go b/main.go index 812250b3d..3d84a45e9 100644 --- a/main.go +++ b/main.go @@ -224,6 +224,7 @@ func main() { Config: conf.String(), TargetPools: targetManager.Pools(), Flags: flags, + Birth: time.Now(), }, CurationState: curationState, } diff --git a/web/status.go b/web/status.go index bb7e595ba..abd07e6ce 100644 --- a/web/status.go +++ b/web/status.go @@ -18,6 +18,7 @@ import ( "github.com/prometheus/prometheus/storage/metric" "net/http" "sync" + "time" ) type PrometheusStatus struct { @@ -27,6 +28,8 @@ type PrometheusStatus struct { Flags map[string]string Rules string TargetPools map[string]*retrieval.TargetPool + + Birth time.Time } type StatusHandler struct { diff --git a/web/templates/status.html b/web/templates/status.html index c821cab54..2b029202a 100644 --- a/web/templates/status.html +++ b/web/templates/status.html @@ -1,7 +1,18 @@ {{define "head"}}{{end}} {{define "content"}} -

Build Info

+

Runtime Information

+
+ + + + + + + +
Uptime{{.Birth}}
+
+

Build Information