-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Current Situation
When an application uses the standard net/http mux, every request whose path is not listed in IgnoredPaths
is recorded.
Servers are frequently hit by automated scanners, health-checkers, or other unpredictable clients. These one-off paths continuously create new Prometheus time-series, causing unbounded cardinality growth.
Problem
Because the paths are effectively random (e.g. /.git/config, /favicon_123.ico, …), it is not feasible to maintain an exhaustive IgnoredPaths
list.
Proposed Solution
Add a new configuration field to the middleware factory:
// IgnoredPathRegexps is a list of regular expression path patterns that will not be
// measured for the request duration and the response size. They will still be counted
// in the RequestsInflight metric.
IgnoredPathRegexps []string
Metadata
Metadata
Assignees
Labels
No labels