Skip to content

Conversation

@TheJokr
Copy link
Collaborator

@TheJokr TheJokr commented Feb 27, 2025

Freighter generates a histogram with lots of buckets for each individual
URL path that 404s. This quickly blows past any reasonable scrape limit
if a Freighter instance gets hit by web scrapers. To fix this, record
the path label only for route matches. An empty string is equivalent
to no label in Prometheus' data model.

I also included a version bump to get this fix out quickly.

Freighter generates a histogram with lots of buckets for each individual
URL path that 404s. This quickly blows past any reasonable scrape limit
if a Freighter instance gets hit by web scrapers. To fix this, record
the `path` label only for route matches. An empty string is equivalent
to no label in Prometheus' data model.
@TheJokr TheJokr requested a review from kornelski February 27, 2025 11:48
@TheJokr TheJokr self-assigned this Feb 27, 2025
@kornelski kornelski merged commit ac6a76c into main Feb 27, 2025
11 checks passed
@kornelski kornelski deleted the lblocher/path-cardinality branch February 27, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants