diff --git a/monitoring.go b/monitoring.go index cb70422..1009bce 100644 --- a/monitoring.go +++ b/monitoring.go @@ -6,6 +6,7 @@ import ( "html/template" "net/http" "os" + "runtime" "time" "blitiri.com.ar/go/chasquid/internal/config" @@ -24,12 +25,14 @@ func launchMonitoringServer(conf *config.Config) { indexData := struct { Version string + GoVersion string SourceDate time.Time StartTime time.Time Config *config.Config Hostname string }{ Version: version, + GoVersion: runtime.Version(), SourceDate: sourceDate, StartTime: time.Now(), Config: conf, @@ -79,12 +82,17 @@ var monitoringHTMLIndex = template.Must(

chasquid @{{.Config.Hostname}}

+

chasquid {{.Version}}
-source date {{.SourceDate.Format "2006-01-02 15:04:05 -0700"}}

+source date {{.SourceDate.Format "2006-01-02 15:04:05 -0700"}}
+built with {{.GoVersion}}
+

+

started {{.StartTime.Format "Mon, 2006-01-02 15:04:05 -0700"}}
up for {{.StartTime | since | roundDuration}}
-os hostname {{.Hostname}}

+os hostname {{.Hostname}}
+