client_ruby icon indicating copy to clipboard operation
client_ruby copied to clipboard

How can I change how paths are labelled?

Open rquinlivan opened this issue 11 months ago • 0 comments

I'm having trouble with Prometheus generating a new label for each request in one part of an application, but others are correctly mapped, e.g. /posts/:post_id/ instead of /posts/12345. I noticed that there is a strip_ids_from_path method and a PATH_INFO env var that seem to allow this to be tuned per application, but no documentation on how this would work. How can i use these options to collapse all the /posts/12345 type labels into /posts:post_id?

rquinlivan avatar Mar 08 '24 20:03 rquinlivan