{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/14","labels_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/14/comments","events_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/14/events","html_url":"https://github.com/prometheus/snmp_exporter/issues/14","id":123792743,"number":14,"title":"System load when using snmp_exporter","user":{"login":"RichiH","id":754723,"avatar_url":"https://avatars.githubusercontent.com/u/754723?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiH","html_url":"https://github.com/RichiH","followers_url":"https://api.github.com/users/RichiH/followers","following_url":"https://api.github.com/users/RichiH/following{/other_user}","gists_url":"https://api.github.com/users/RichiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiH/subscriptions","organizations_url":"https://api.github.com/users/RichiH/orgs","repos_url":"https://api.github.com/users/RichiH/repos","events_url":"https://api.github.com/users/RichiH/events{/privacy}","received_events_url":"https://api.github.com/users/RichiH/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-12-24T11:15:07Z","updated_at":"2016-01-22T07:36:38Z","closed_at":null,"body":"On a self-contained prometheus machine scraping half a dozen node_exporters, and pinging ~150 hosts via blackbox_exporter, load is at 0.03 to 0.14.\r\n\r\nAdding 27 snmp targets via snmp_exporter running on the same machine which are scraped every minute increases load to 1.5. Querying the dataset every minute or so will increase load further to around 2.\r\n\r\nVM specs:\r\n* 6 cores of Intel(R) Xeon(R) CPU L5640  @ 2.27GHz\r\n* 6 GiB RAM\r\n* random, reasonably fast spindle disks\r\n\r\nWith four cores and 2 GiB of RAM, and with snmp_exporter being scraped, the system started swapping about 1.5 GiB and load went to ~8; quitting the main prometheus process via ctrl-c took about three minutes."},"comment":{"url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/comments/173834788","html_url":"https://github.com/prometheus/snmp_exporter/issues/14#issuecomment-173834788","issue_url":"https://api.github.com/repos/prometheus/snmp_exporter/issues/14","id":173834788,"user":{"login":"RichiH","id":754723,"avatar_url":"https://avatars.githubusercontent.com/u/754723?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiH","html_url":"https://github.com/RichiH","followers_url":"https://api.github.com/users/RichiH/followers","following_url":"https://api.github.com/users/RichiH/following{/other_user}","gists_url":"https://api.github.com/users/RichiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiH/subscriptions","organizations_url":"https://api.github.com/users/RichiH/orgs","repos_url":"https://api.github.com/users/RichiH/repos","events_url":"https://api.github.com/users/RichiH/events{/privacy}","received_events_url":"https://api.github.com/users/RichiH/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T07:36:38Z","updated_at":"2016-01-22T07:36:38Z","body":"To sync the current situation in here:\r\n\r\n* At ~190 targets polled every 60 seconds, the exporter is working as expected even though there's notable system load.\r\n* At 264 targets polled every 60 seconds, the exporter is dropping arbitrary scrapes thus losing data.\r\n\r\n@brian-brazil is aware and stated he will need to find some quality time to dig down. A potential rewrite of the export in Go depends on a rewrite of client_golang."}}