{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/client_golang/issues/366","repository_url":"https://api.github.com/repos/prometheus/client_golang","labels_url":"https://api.github.com/repos/prometheus/client_golang/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/client_golang/issues/366/comments","events_url":"https://api.github.com/repos/prometheus/client_golang/issues/366/events","html_url":"https://github.com/prometheus/client_golang/issues/366","id":289286902,"node_id":"MDU6SXNzdWUyODkyODY5MDI=","number":366,"title":"Consider using https://github.com/NYTimes/gziphandler for compression","user":{"login":"tinytub","id":1871460,"node_id":"MDQ6VXNlcjE4NzE0NjA=","avatar_url":"https://avatars2.githubusercontent.com/u/1871460?v=4","gravatar_id":"","url":"https://api.github.com/users/tinytub","html_url":"https://github.com/tinytub","followers_url":"https://api.github.com/users/tinytub/followers","following_url":"https://api.github.com/users/tinytub/following{/other_user}","gists_url":"https://api.github.com/users/tinytub/gists{/gist_id}","starred_url":"https://api.github.com/users/tinytub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tinytub/subscriptions","organizations_url":"https://api.github.com/users/tinytub/orgs","repos_url":"https://api.github.com/users/tinytub/repos","events_url":"https://api.github.com/users/tinytub/events{/privacy}","received_events_url":"https://api.github.com/users/tinytub/received_events","type":"User","site_admin":false},"labels":[{"id":26142396,"node_id":"MDU6TGFiZWwyNjE0MjM5Ng==","url":"https://api.github.com/repos/prometheus/client_golang/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":766552562,"node_id":"MDU6TGFiZWw3NjY1NTI1NjI=","url":"https://api.github.com/repos/prometheus/client_golang/labels/help%20wanted","name":"help wanted","color":"8df759","default":true}],"state":"open","locked":false,"assignee":{"login":"beorn7","id":5609886,"node_id":"MDQ6VXNlcjU2MDk4ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5609886?v=4","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"assignees":[{"login":"beorn7","id":5609886,"node_id":"MDQ6VXNlcjU2MDk4ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5609886?v=4","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-01-17T14:34:02Z","updated_at":"2018-10-06T22:55:24Z","closed_at":null,"author_association":"NONE","body":"I have use client_golang to implement a subservice like pushgateway.\r\nEvery 30s scrape 500k - 700k line metrics from one subservice.\r\nAnd it seems gzip cause very high cpu usage.\r\n![image](https://user-images.githubusercontent.com/1871460/35047362-a954c596-fbd4-11e7-9047-6851010fd5ae.png)\r\n\r\n\r\nWith this large data, gzip didn't make the request much more quick\r\n\r\ncurl -w %{time_connect}:%{time_starttransfer}:%{time_total} -I -H 'Accept-Encoding: gzip' http://k4637v:6060/metrics\r\nHTTP/1.1 200 OK\r\nContent-Encoding: gzip\r\nContent-Length: 4935721\r\nContent-Type: text/plain; version=0.0.4\r\nDate: Wed, 17 Jan 2018 14:25:26 GMT\r\n\r\n0.002:8.412:8.413                                                                                                               \r\n\r\ncurl -w %{time_connect}:%{time_starttransfer}:%{time_total} -I  http://k4637v:6060/metrics\r\nHTTP/1.1 200 OK\r\nContent-Length: 70412653\r\nContent-Type: text/plain; version=0.0.4\r\nDate: Wed, 17 Jan 2018 14:25:52 GMT\r\n\r\n0.002:10.068:10.068"},"comment":{"url":"https://api.github.com/repos/prometheus/client_golang/issues/comments/427611989","html_url":"https://github.com/prometheus/client_golang/issues/366#issuecomment-427611989","issue_url":"https://api.github.com/repos/prometheus/client_golang/issues/366","id":427611989,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzYxMTk4OQ==","user":{"login":"beorn7","id":5609886,"node_id":"MDQ6VXNlcjU2MDk4ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5609886?v=4","gravatar_id":"","url":"https://api.github.com/users/beorn7","html_url":"https://github.com/beorn7","followers_url":"https://api.github.com/users/beorn7/followers","following_url":"https://api.github.com/users/beorn7/following{/other_user}","gists_url":"https://api.github.com/users/beorn7/gists{/gist_id}","starred_url":"https://api.github.com/users/beorn7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beorn7/subscriptions","organizations_url":"https://api.github.com/users/beorn7/orgs","repos_url":"https://api.github.com/users/beorn7/repos","events_url":"https://api.github.com/users/beorn7/events{/privacy}","received_events_url":"https://api.github.com/users/beorn7/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T22:55:24Z","updated_at":"2018-10-06T22:55:24Z","author_association":"MEMBER","body":"@dswarbrick Thanks for sharing your concerns."}}
{"actor":{"display_login":"beorn7"}}