diff --git a/Control/Submitter/src/Program.cs b/Control/Submitter/src/Program.cs index 4aaa745ee..3f23c9888 100644 --- a/Control/Submitter/src/Program.cs +++ b/Control/Submitter/src/Program.cs @@ -187,7 +187,7 @@ await func.Invoke() app.UseRouting(); app.UseGrpcWeb(); - app.UseOpenTelemetryPrometheusScrapingEndpoint(context => context.Connection.LocalPort == 1081); + app.UseOpenTelemetryPrometheusScrapingEndpoint(context => context.Connection.LocalPort == 1081 && context.Request.Path == "/metrics"); app.UseAuthorization(); app.UseSerilogRequestLogging();