client_ruby
client_ruby copied to clipboard
How can I change how paths are labelled?
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
?