diff --git a/handler/status.go b/handler/status.go index 2d227cbf..76a21b05 100644 --- a/handler/status.go +++ b/handler/status.go @@ -104,6 +104,10 @@ func Status( "goVersion": version.GoVersion, } + if pathPrefix == "" { + pathPrefix = "." + } + d := &data{ MetricGroups: ms.GetMetricFamiliesMap(), BuildInfo: buildInfo,