{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/2104","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2104/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2104/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2104/events","html_url":"https://github.com/DataDog/dd-agent/pull/2104","id":118969809,"number":2104,"title":"Gauge delta support","user":{"login":"alq666","id":19755,"avatar_url":"https://avatars.githubusercontent.com/u/19755?v=3","gravatar_id":"","url":"https://api.github.com/users/alq666","html_url":"https://github.com/alq666","followers_url":"https://api.github.com/users/alq666/followers","following_url":"https://api.github.com/users/alq666/following{/other_user}","gists_url":"https://api.github.com/users/alq666/gists{/gist_id}","starred_url":"https://api.github.com/users/alq666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alq666/subscriptions","organizations_url":"https://api.github.com/users/alq666/orgs","repos_url":"https://api.github.com/users/alq666/repos","events_url":"https://api.github.com/users/alq666/events{/privacy}","received_events_url":"https://api.github.com/users/alq666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T04:28:57Z","updated_at":"2015-11-26T04:29:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-agent/pulls/2104","html_url":"https://github.com/DataDog/dd-agent/pull/2104","diff_url":"https://github.com/DataDog/dd-agent/pull/2104.diff","patch_url":"https://github.com/DataDog/dd-agent/pull/2104.patch"},"body":"To fix #573.\r\n\r\nNote that we don't exactly follow the statsd implementation, which treats negative gauge values as gauge deltas (instead of using e.g. a new metric type). The canonical implementation for negative values then forces a reset of the value to 0 before the transmission of a negative delta.\r\n\r\nHere we take the opposite view. There are as many negative numbers as there are positive numbers so we treat them as first class citizens and limit gauge deltas to increasing numbers."},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/159801349","html_url":"https://github.com/DataDog/dd-agent/pull/2104#issuecomment-159801349","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2104","id":159801349,"user":{"login":"alq666","id":19755,"avatar_url":"https://avatars.githubusercontent.com/u/19755?v=3","gravatar_id":"","url":"https://api.github.com/users/alq666","html_url":"https://github.com/alq666","followers_url":"https://api.github.com/users/alq666/followers","following_url":"https://api.github.com/users/alq666/following{/other_user}","gists_url":"https://api.github.com/users/alq666/gists{/gist_id}","starred_url":"https://api.github.com/users/alq666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alq666/subscriptions","organizations_url":"https://api.github.com/users/alq666/orgs","repos_url":"https://api.github.com/users/alq666/repos","events_url":"https://api.github.com/users/alq666/events{/privacy}","received_events_url":"https://api.github.com/users/alq666/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T04:29:42Z","updated_at":"2015-11-26T04:29:42Z","body":"And yes, I miss writing code sometimes :high_brightness: :five:"}}