tsweb: add float64 to logged metrics
A previously added metric which was float64 was being ignored in tsweb, because it previously
only accepted int64 and ints. It can be handled in the same way as ints.
@@ -409,7 +409,7 @@ funcRet = fmt.Sprintf(" returning %T", v)
case expvar.Func:
val := v()
switch val.(type) {
- case int64, int:
+ case float64, int64, int:
fmt.Fprintf(w, "# TYPE %s %s\n%s %v\n", name, typ, name, val)
default:
fmt.Fprintf(w, "# skipping expvar func %q returning unknown type %T\n", name, val)
