From aa5e494abac02db605d65e3a7487e4d00a069536 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 20 Sep 2022 09:47:19 -0700 Subject: [PATCH] tsweb: export go_version in standard expvar vars For monitoring. Signed-off-by: Brad Fitzpatrick --- tsweb/tsweb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tsweb/tsweb.go b/tsweb/tsweb.go index d5a873656..5ce65680f 100644 --- a/tsweb/tsweb.go +++ b/tsweb/tsweb.go @@ -37,6 +37,7 @@ func init() { expvar.Publish("process_start_unix_time", expvar.Func(func() any { return timeStart.Unix() })) expvar.Publish("version", expvar.Func(func() any { return version.Long })) + expvar.Publish("go_version", expvar.Func(func() any { return runtime.Version() })) expvar.Publish("counter_uptime_sec", expvar.Func(func() any { return int64(Uptime().Seconds()) })) expvar.Publish("gauge_goroutines", expvar.Func(func() any { return runtime.NumGoroutine() })) }