diff --git a/lib/httpserver/metrics.go b/lib/httpserver/metrics.go index ec8da34af6..4ad6781a99 100644 --- a/lib/httpserver/metrics.go +++ b/lib/httpserver/metrics.go @@ -18,7 +18,7 @@ import ( "github.com/VictoriaMetrics/metrics" ) -var versionRe = regexp.MustCompile(`v\d+\.\d+\.\d+`) +var versionRe = regexp.MustCompile(`v\d+\.\d+\.\d+(?:-enterprise)?(?:-cluster)?`) // WritePrometheusMetrics writes all the registered metrics to w in Prometheus exposition format. func WritePrometheusMetrics(w io.Writer) {