{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5875","repository_url":"https://api.github.com/repos/spring-projects/spring-boot","labels_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5875/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5875/comments","events_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5875/events","html_url":"https://github.com/spring-projects/spring-boot/issues/5875","id":153290415,"number":5875,"title":"MetricsFilter doesn't consider path variables when using Jersey","user":{"login":"heroicefforts","id":208061,"avatar_url":"https://avatars.githubusercontent.com/u/208061?v=3","gravatar_id":"","url":"https://api.github.com/users/heroicefforts","html_url":"https://github.com/heroicefforts","followers_url":"https://api.github.com/users/heroicefforts/followers","following_url":"https://api.github.com/users/heroicefforts/following{/other_user}","gists_url":"https://api.github.com/users/heroicefforts/gists{/gist_id}","starred_url":"https://api.github.com/users/heroicefforts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heroicefforts/subscriptions","organizations_url":"https://api.github.com/users/heroicefforts/orgs","repos_url":"https://api.github.com/users/heroicefforts/repos","events_url":"https://api.github.com/users/heroicefforts/events{/privacy}","received_events_url":"https://api.github.com/users/heroicefforts/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-boot/labels/feedback-provided","name":"feedback-provided","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-05T18:14:38Z","updated_at":"2016-05-18T08:53:33Z","closed_at":null,"body":"The MetricsFilter is unsuitable for REST microservices that are backing a large number of entities.  In our case, it was trying to generate gauges and counters for /widget/1 to /widget/60000000.  It eventually soaks the heap and causes the server to slow to a crawl as it spends most of its CPU cycles in GC.  There should be a big red \"caveat\" bubble in the documentation that details this scenario.  \r\n\r\nIdeally, a Spring MVC controller metrics controller should be implemented that works similar to the DropWizard Jersey 2 implementation (plus some RequestMapping introspection), then the MetricsFilter could be disabled by default."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-boot/issues/comments/219965451","html_url":"https://github.com/spring-projects/spring-boot/issues/5875#issuecomment-219965451","issue_url":"https://api.github.com/repos/spring-projects/spring-boot/issues/5875","id":219965451,"user":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars.githubusercontent.com/u/914682?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"created_at":"2016-05-18T08:53:33Z","updated_at":"2016-05-18T08:53:33Z","body":"@beckje01 No, I don't think so. It's something similar to [this](https://github.com/spring-projects/spring-boot/blob/master/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/MetricsFilter.java#L147-L148) that we need to do for JAX-RS."}}