You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When collapse_request_path is set to false, my metrics become unmanageable because each unique UUID generates a separate metric entry. However, setting it to true collapses everything under the /api prefix, losing valuable details for different endpoints.
Describe your ideal solution
Enable a more advanced configuration for collapse_request_path that allows specifying patterns, placeholders, or partial collapsing so that important segments (like /conversations) are preserved while unique identifiers (UUIDs) are collapsed.
I think you should be able to do that with Prometheus relabelings.
PR is welcome with changes on code level.
There's a similar solution already used in Kratos with ory/x/prometheusx, maybe it can be reused or at least serve as a starting point.
I think you should be able to do that with Prometheus relabelings.
yes, I think so. But I also think it's a bad Idea to let all the request path exposed on /metrics, it will introduce performance issues when the requests path are keep growing, at least the performance when the prometheus try to fetching the metrics.
Preflight checklist
Ory Network Project
No response
Describe your problem
In reference to issue #446, the collapse_request_path configuration could be significantly more useful if it were more flexible.
Use Case
I have an /api prefix for my service, followed by a unique UUID in the URL path, for example:
When collapse_request_path is set to false, my metrics become unmanageable because each unique UUID generates a separate metric entry. However, setting it to true collapses everything under the /api prefix, losing valuable details for different endpoints.
Describe your ideal solution
Enable a more advanced configuration for collapse_request_path that allows specifying patterns, placeholders, or partial collapsing so that important segments (like /conversations) are preserved while unique identifiers (UUIDs) are collapsed.
Example Configuration
Workarounds or alternatives
If the pattern based is too complicated, for the use case that using /api prefix, provide the collapse_level.
Version
0.40.6
Additional Context
No response
The text was updated successfully, but these errors were encountered: