Set request type to monitoring for /metrics/v2 requests
@@ -47,7 +47,7 @@ public class JettyHttpServer extends SimpleComponent implements ServerConfig.Pro
@Override
public void getConfig(ServerConfig.Builder builder) {
builder.metric(new ServerConfig.Metric.Builder()
- .monitoringHandlerPaths(List.of("/state/v1", "/status.html"))
+ .monitoringHandlerPaths(List.of("/state/v1", "/status.html", "/metrics/v2"))
.searchHandlerPaths(List.of("/search"))
);
if (isHostedVespa) {
