{"action":"opened","issue":{"url":"https://api.github.com/repos/graphite-ng/carbon-relay-ng/issues/207","repository_url":"https://api.github.com/repos/graphite-ng/carbon-relay-ng","labels_url":"https://api.github.com/repos/graphite-ng/carbon-relay-ng/issues/207/labels{/name}","comments_url":"https://api.github.com/repos/graphite-ng/carbon-relay-ng/issues/207/comments","events_url":"https://api.github.com/repos/graphite-ng/carbon-relay-ng/issues/207/events","html_url":"https://github.com/graphite-ng/carbon-relay-ng/issues/207","id":247082354,"number":207,"title":"New aggregator: rate calculation aggregation","user":{"login":"guillaumeautran","id":13353403,"avatar_url":"https://avatars2.githubusercontent.com/u/13353403?v=4","gravatar_id":"","url":"https://api.github.com/users/guillaumeautran","html_url":"https://github.com/guillaumeautran","followers_url":"https://api.github.com/users/guillaumeautran/followers","following_url":"https://api.github.com/users/guillaumeautran/following{/other_user}","gists_url":"https://api.github.com/users/guillaumeautran/gists{/gist_id}","starred_url":"https://api.github.com/users/guillaumeautran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guillaumeautran/subscriptions","organizations_url":"https://api.github.com/users/guillaumeautran/orgs","repos_url":"https://api.github.com/users/guillaumeautran/repos","events_url":"https://api.github.com/users/guillaumeautran/events{/privacy}","received_events_url":"https://api.github.com/users/guillaumeautran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-01T14:10:35Z","updated_at":"2017-08-01T14:10:35Z","closed_at":null,"body":"We need an aggregator which is able to calculate a rate of change on a monotonic increasing serie (such as a counter). The rate calculation would take the `first` and `last` number in the reporting window and compute the difference (`last` - `first`). This difference is then divided by the delta time between those two values. A simple rate calculation could be:\r\n\r\n![image](https://user-images.githubusercontent.com/13353403/28829121-cb87f58e-76a0-11e7-870c-729dc36790d6.png)\r\n\r\nIf considering counter wrap around, a better formula could be: \r\n\r\n![image](https://user-images.githubusercontent.com/13353403/28829209-04e7289a-76a1-11e7-9c4a-8ac38cbda4de.png)\r\n\r\n(Source: [Collectd Data Source](https://collectd.org/wiki/index.php/Data_source))"}}
{"actor":{"display_login":"guillaumeautran"}}