{"action":"created","issue":{"url":"https://api.github.com/repos/sjl/metrics-clojure/issues/105","repository_url":"https://api.github.com/repos/sjl/metrics-clojure","labels_url":"https://api.github.com/repos/sjl/metrics-clojure/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/sjl/metrics-clojure/issues/105/comments","events_url":"https://api.github.com/repos/sjl/metrics-clojure/issues/105/events","html_url":"https://github.com/sjl/metrics-clojure/issues/105","id":161092164,"number":105,"title":"Filtering metrics?","user":{"login":"danielcompton","id":811954,"avatar_url":"https://avatars.githubusercontent.com/u/811954?v=3","gravatar_id":"","url":"https://api.github.com/users/danielcompton","html_url":"https://github.com/danielcompton","followers_url":"https://api.github.com/users/danielcompton/followers","following_url":"https://api.github.com/users/danielcompton/following{/other_user}","gists_url":"https://api.github.com/users/danielcompton/gists{/gist_id}","starred_url":"https://api.github.com/users/danielcompton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielcompton/subscriptions","organizations_url":"https://api.github.com/users/danielcompton/orgs","repos_url":"https://api.github.com/users/danielcompton/repos","events_url":"https://api.github.com/users/danielcompton/events{/privacy}","received_events_url":"https://api.github.com/users/danielcompton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-19T21:00:56Z","updated_at":"2016-06-19T21:34:10Z","closed_at":"2016-06-19T21:34:10Z","body":"We're using Hosted Graphite (great service btw), and we are charged by our metric count. We have ring metrics, JVM metrics, and custom metrics and are going over our cap. I'd like to filter some of the ring metrics as we only need a few from here, but it's not clear if/how to do that? I read the docs on removing metrics, but it seemed like they would just be recreated later.\r\n\r\nWhat's the recommended way of filtering the metrics that get sent to a (graphite) reporter?"},"comment":{"url":"https://api.github.com/repos/sjl/metrics-clojure/issues/comments/227021632","html_url":"https://github.com/sjl/metrics-clojure/issues/105#issuecomment-227021632","issue_url":"https://api.github.com/repos/sjl/metrics-clojure/issues/105","id":227021632,"user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T21:34:10Z","updated_at":"2016-06-19T21:34:10Z","body":"You can either\r\n\r\n * Remove metrics *and not collect them* (so that they do not get recreated)\r\n * Develop a custom reporter (a Java interface implementation)\r\n\r\nI'm not aware of a way to filter out metrics in reporters other than duplicating the entire metric registry and removing some keys right before sending the data."}}
{"actor":{"display_login":"michaelklishin"}}