Skip to content

Commit

Permalink
Pin Prometheus port (#309)
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Ahrens <boris.ahrens@gdata.de>
  • Loading branch information
borisahrens and Boris Ahrens committed Feb 26, 2024
1 parent 694e977 commit bffbb3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ insert_final_newline = true
max_line_length = 120

[*.xml]
indent_size = 4
indent_size = 2

[*.cs]
indent_size = 4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<PackageReference Include="JWT" Version="8.9.0" />
<PackageReference Include="AWSSDK.S3" Version="3.7.8.5" />
<PackageReference Include="MongoDB.Driver.Linq.AsyncEnumerable" Version="2.15.4" />
<PackageReference Include="Prometheus.Client.AspNetCore" Version="4.5.1" />
<PackageReference Include="Prometheus.Client" Version="5.2.0" />
<PackageReference Include="Prometheus.Client.AspNetCore" Version="5.0.0" />
<PackageReference Include="Prometheus.Client.HttpRequestDurations" Version="3.4.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.3" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.16.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/MalwareSampleExchange.Console/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void ConfigureServices(IServiceCollection services)

public void Configure(IApplicationBuilder app)
{
app.UsePrometheusServer();
app.UsePrometheusServer(options => options.Port = 8080);

app.UsePrometheusRequestDurations(q =>
{
Expand Down

0 comments on commit bffbb3b

Please sign in to comment.