Skip to content

Commit

Permalink
move Prometheus endpoints to before rate limiting middleware (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
dealloc authored Nov 14, 2024
1 parent 41cb478 commit b915d8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Helldivers-2-API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@
// Make sure ASP.NET Core uses the correct addresses internally rather than Fly's proxy
app.UseForwardedHeaders();

// Maps Prometheus to /metrics
app.MapMetrics();

// Handles rate limiting so everyone plays nice
app.UseMiddleware<RateLimitMiddleware>();

Expand Down Expand Up @@ -281,7 +284,4 @@
You can also find additional resources on our Github: https://github.com/helldivers-2/api
Consider supporting us at https://github.com/sponsors/dealloc");

// Maps Prometheus to /metrics
app.MapMetrics();

await app.RunAsync();

0 comments on commit b915d8e

Please sign in to comment.