{"action":"created","issue":{"url":"https://api.github.com/repos/brayniac/histogram/issues/15","repository_url":"https://api.github.com/repos/brayniac/histogram","labels_url":"https://api.github.com/repos/brayniac/histogram/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/brayniac/histogram/issues/15/comments","events_url":"https://api.github.com/repos/brayniac/histogram/issues/15/events","html_url":"https://github.com/brayniac/histogram/issues/15","id":157431435,"number":15,"title":"Help me out with this rust-metrics thing","user":{"login":"posix4e","id":806363,"avatar_url":"https://avatars.githubusercontent.com/u/806363?v=3","gravatar_id":"","url":"https://api.github.com/users/posix4e","html_url":"https://github.com/posix4e","followers_url":"https://api.github.com/users/posix4e/followers","following_url":"https://api.github.com/users/posix4e/following{/other_user}","gists_url":"https://api.github.com/users/posix4e/gists{/gist_id}","starred_url":"https://api.github.com/users/posix4e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posix4e/subscriptions","organizations_url":"https://api.github.com/users/posix4e/orgs","repos_url":"https://api.github.com/users/posix4e/repos","events_url":"https://api.github.com/users/posix4e/events{/privacy}","received_events_url":"https://api.github.com/users/posix4e/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brayniac/histogram/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-30T04:58:46Z","updated_at":"2016-05-31T00:47:33Z","closed_at":"2016-05-31T00:30:15Z","body":"I'm trying to write a metrics library http://github.com/posix4e/rust-metrics which uses this histogram package . I want to make a reporter for prometheus but I don't know how to convert your histogram to \r\n```\r\nmessage Quantile {\r\n  optional double quantile = 1;\r\n  optional double value    = 2;\r\n}\r\n\r\nmessage Summary {\r\n  optional uint64   sample_count = 1;\r\n  optional double   sample_sum   = 2;\r\n  repeated Quantile quantile     = 3;\r\n}\r\n\r\nmessage Untyped {\r\n  optional double value = 1;\r\n}\r\n\r\nmessage Histogram {\r\n  optional uint64 sample_count = 1;\r\n  optional double sample_sum   = 2;\r\n  repeated Bucket bucket       = 3; // Ordered in increasing order of upper_bound, +Inf bucket is optional.\r\n}\r\n\r\nmessage Bucket {\r\n  optional uint64 cumulative_count = 1; // Cumulative in increasing order.\r\n  optional double upper_bound = 2;      // Inclusive.\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/brayniac/histogram/issues/comments/222570536","html_url":"https://github.com/brayniac/histogram/issues/15#issuecomment-222570536","issue_url":"https://api.github.com/repos/brayniac/histogram/issues/15","id":222570536,"user":{"login":"posix4e","id":806363,"avatar_url":"https://avatars.githubusercontent.com/u/806363?v=3","gravatar_id":"","url":"https://api.github.com/users/posix4e","html_url":"https://github.com/posix4e","followers_url":"https://api.github.com/users/posix4e/followers","following_url":"https://api.github.com/users/posix4e/following{/other_user}","gists_url":"https://api.github.com/users/posix4e/gists{/gist_id}","starred_url":"https://api.github.com/users/posix4e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posix4e/subscriptions","organizations_url":"https://api.github.com/users/posix4e/orgs","repos_url":"https://api.github.com/users/posix4e/repos","events_url":"https://api.github.com/users/posix4e/events{/privacy}","received_events_url":"https://api.github.com/users/posix4e/received_events","type":"User","site_admin":false},"created_at":"2016-05-31T00:47:33Z","updated_at":"2016-05-31T00:47:33Z","body":"https://github.com/posix4e/rust-metrics/tree/prometheus/ <- is my wip"}}
{"actor":{"display_login":"posix4e"}}