{"action":"created","issue":{"url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/218","repository_url":"https://api.github.com/repos/grobian/carbon-c-relay","labels_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/218/comments","events_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/218/events","html_url":"https://github.com/grobian/carbon-c-relay/issues/218","id":182251277,"number":218,"title":"4 zeros inserted after some metrics","user":{"login":"matejzero","id":4689252,"avatar_url":"https://avatars.githubusercontent.com/u/4689252?v=3","gravatar_id":"","url":"https://api.github.com/users/matejzero","html_url":"https://github.com/matejzero","followers_url":"https://api.github.com/users/matejzero/followers","following_url":"https://api.github.com/users/matejzero/following{/other_user}","gists_url":"https://api.github.com/users/matejzero/gists{/gist_id}","starred_url":"https://api.github.com/users/matejzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matejzero/subscriptions","organizations_url":"https://api.github.com/users/matejzero/orgs","repos_url":"https://api.github.com/users/matejzero/repos","events_url":"https://api.github.com/users/matejzero/events{/privacy}","received_events_url":"https://api.github.com/users/matejzero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grobian/carbon-c-relay/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-10-11T12:31:00Z","updated_at":"2016-10-15T11:33:23Z","closed_at":null,"body":"Hello,\r\n\r\ntoday I have noticed that I'm not receiving some aggregated and renamed metrics. I took a look at the thing I found out that for some reason, carbon-c-relay adds 4 zeros at the end of some metrics\r\n\r\nConfig example:\r\n```\r\nrewrite ^servers\\.server_example_org\\.iscsisvrtop\\.gauge-(10.20.30.40)-(.+)\r\n  into servers.server_example_org.iscsisvrtop.organization_1.\\2\r\n  ;\r\naggregate\r\n        ^servers\\.server[0-9]_example_org\\.iscsisvrtop\\.gauge-(.+)-(.+)\r\n    every 10 seconds\r\n    expire after 15 seconds\r\n    timestamp at end of bucket\r\n    compute sum write to\r\n        servers.server_example_org.iscsisvrtop.gauge-\\1-\\2\r\n    ;\r\nmatch\r\n  ^collectd.localhost\r\n  ^servers\\. server[0-9]_example_org\\.iscsisvrtop\r\n  send to blackhole\r\n  stop\r\n  ;\r\n```\r\n\r\nIf I look at the output of carbon-c-relay with ngrep, I get metrics like:\r\n```\r\n1476188810.servers.server_example_org.iscsisvrtop.organization_1.writes 561.0 0000\r\n1476188810.servers.server_example_org.iscsisvrtop.organization_1.reads 281.0 0000 \r\n```\r\n\r\nThe leading ` 0000 ` are breaking the metrics format and graphite doesn't want to save them.\r\n\r\nI tried different versions of carbon-c-relay and it works OK on v2.0, but breaks on v2.1 and v2.2.\r\n\r\nIs there something wrong with my config or is it a bug?\r\n"},"comment":{"url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/comments/253978890","html_url":"https://github.com/grobian/carbon-c-relay/issues/218#issuecomment-253978890","issue_url":"https://api.github.com/repos/grobian/carbon-c-relay/issues/218","id":253978890,"user":{"login":"matejzero","id":4689252,"avatar_url":"https://avatars.githubusercontent.com/u/4689252?v=3","gravatar_id":"","url":"https://api.github.com/users/matejzero","html_url":"https://github.com/matejzero","followers_url":"https://api.github.com/users/matejzero/followers","following_url":"https://api.github.com/users/matejzero/following{/other_user}","gists_url":"https://api.github.com/users/matejzero/gists{/gist_id}","starred_url":"https://api.github.com/users/matejzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matejzero/subscriptions","organizations_url":"https://api.github.com/users/matejzero/orgs","repos_url":"https://api.github.com/users/matejzero/repos","events_url":"https://api.github.com/users/matejzero/events{/privacy}","received_events_url":"https://api.github.com/users/matejzero/received_events","type":"User","site_admin":false},"created_at":"2016-10-15T11:33:23Z","updated_at":"2016-10-15T11:33:23Z","body":"I'm glad I could be of help. I wish I could do more, but C ain't my thing:)"}}
{"actor":{"display_login":"matejzero"}}