{"action":"created","issue":{"url":"https://api.github.com/repos/Nordstrom/vmstats/issues/18","labels_url":"https://api.github.com/repos/Nordstrom/vmstats/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Nordstrom/vmstats/issues/18/comments","events_url":"https://api.github.com/repos/Nordstrom/vmstats/issues/18/events","html_url":"https://github.com/Nordstrom/vmstats/issues/18","id":60313709,"number":18,"title":"Feature Request: change metric name scheme . INSTANCE_BEFORE_METRIC  and SEPARATE_ROLLUP","user":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-09T08:49:02Z","updated_at":"2015-03-12T23:41:16Z","closed_at":null,"body":"Hi all.\r\n\r\nI've been working for some years with graphite and some different metric collector. I'm surprised with the metric scheme used in vmstats.\r\n\r\nI'm used to see metric name always under instance name, something like that.\r\n\r\n```\r\n<metric_prefix>.<hostname>.<metric_type>.<instance>.<metric_name>\r\n\r\nby example:\r\n\r\nproduction.bbdds.hostdb01.cpu.0.idle\r\nproduction.bbdds.hostdb01.cpu.0.wait \r\n```\r\n\r\nIn vmstats it seems like this scheme is used.\r\n\r\n```\r\n<metric_prefix>.<hostname>.<metric_type>.<metric_name>.<instance>\r\n\r\nby example\r\n\r\nvmstats.vcs_tag.cluster1.ESX.hostdb01.cpu.idle.27.summation\r\n\r\n```\r\nwith this scheme it is difficult to see all information for each instance.\r\n\r\nTo improve this issue could be interesting to add a new configuration parameter like\r\n\r\nINSTANCE_BEFORE_METRIC = False ( by default -- for backward compatibility)\r\n\r\nif\r\n\r\nINSTANCE_BEFORE_METRIC = True\r\n\r\nThe metric name :\r\n\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.cpu.idle.__27__.summation\r\n\r\nwill transform to:\r\n\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.cpu.__27__.idle.summation\r\n \r\n\r\nAnother improvement could be done if \"rollup\" is concatenated  to the metric name , we can add a new configuration parameter like\r\n\r\nSEPARATE_ROLLUP = True ( by default .-- for backwards compatibility--)\r\n\r\nif\r\n\r\nSEPARATE_ROLLUP = False \r\n\r\nthe metric name:\r\n\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.cpu.27.__idle.summation__\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.mem.__active.average__\r\n\r\nwill transform to \r\n\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.cpu.27.__idle-summation__\r\n* vmstats.vcs_tag.cluster1.ESX.hostdb01.mem.__active-average__\r\n\r\n\r\nWe will avoid this gigantic tree ( see below)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5883405/6551988/df5ea9b2-c640-11e4-9358-7fa387b3fec1.png)\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Nordstrom/vmstats/issues/comments/78696866","html_url":"https://github.com/Nordstrom/vmstats/issues/18#issuecomment-78696866","issue_url":"https://api.github.com/repos/Nordstrom/vmstats/issues/18","id":78696866,"user":{"login":"lbasavap","id":8374464,"avatar_url":"https://avatars.githubusercontent.com/u/8374464?v=3","gravatar_id":"","url":"https://api.github.com/users/lbasavap","html_url":"https://github.com/lbasavap","followers_url":"https://api.github.com/users/lbasavap/followers","following_url":"https://api.github.com/users/lbasavap/following{/other_user}","gists_url":"https://api.github.com/users/lbasavap/gists{/gist_id}","starred_url":"https://api.github.com/users/lbasavap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbasavap/subscriptions","organizations_url":"https://api.github.com/users/lbasavap/orgs","repos_url":"https://api.github.com/users/lbasavap/repos","events_url":"https://api.github.com/users/lbasavap/events{/privacy}","received_events_url":"https://api.github.com/users/lbasavap/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T23:41:16Z","updated_at":"2015-03-12T23:41:16Z","body":"Dear VmStats Users,\r\nWe stopped working on VmStats but continued to use StatsFeeder GraphiteReceiver. Please take a look at the latest GraphiteReceiver. We welcome your comments.\r\n\r\nThanks\r\n\r\nLava"}}