Skip to content

Commit

Permalink
No HTTP client metrics for status check.
Browse files Browse the repository at this point in the history
Oops that makes a time series per host, bad.
  • Loading branch information
PJB3005 committed Dec 3, 2023
1 parent a18f31f commit a3dbc19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SS14.ServerHub/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ public void ConfigureServices(IServiceCollection services)
client.DefaultRequestHeaders.Add("User-Agent", "SS14.ServerHub/1.0 Status Checker");
var hubOptions = Configuration.GetSection(HubOptions.Position).Get<HubOptions>() ?? new HubOptions();
client.MaxResponseContentBufferSize = hubOptions.MaxStatusResponseSize * 1024;
})
.UseHttpClientMetrics();
});

services.AddOptions<HubOptions>()
.Bind(Configuration.GetSection(HubOptions.Position));
Expand Down

0 comments on commit a3dbc19

Please sign in to comment.