{"action":"created","issue":{"url":"https://api.github.com/repos/docker-infra/container_exporter/issues/17","repository_url":"https://api.github.com/repos/docker-infra/container_exporter","labels_url":"https://api.github.com/repos/docker-infra/container_exporter/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/docker-infra/container_exporter/issues/17/comments","events_url":"https://api.github.com/repos/docker-infra/container_exporter/issues/17/events","html_url":"https://github.com/docker-infra/container_exporter/issues/17","id":128494195,"number":17,"title":"Memory issues","user":{"login":"olvesh","id":220643,"avatar_url":"https://avatars.githubusercontent.com/u/220643?v=3","gravatar_id":"","url":"https://api.github.com/users/olvesh","html_url":"https://github.com/olvesh","followers_url":"https://api.github.com/users/olvesh/followers","following_url":"https://api.github.com/users/olvesh/following{/other_user}","gists_url":"https://api.github.com/users/olvesh/gists{/gist_id}","starred_url":"https://api.github.com/users/olvesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olvesh/subscriptions","organizations_url":"https://api.github.com/users/olvesh/orgs","repos_url":"https://api.github.com/users/olvesh/repos","events_url":"https://api.github.com/users/olvesh/events{/privacy}","received_events_url":"https://api.github.com/users/olvesh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-25T09:23:26Z","updated_at":"2016-02-24T16:18:18Z","closed_at":null,"body":"It seems the container-exporter used in a docker-container (Docker 1.9.1) is using much more mem than its cousins.\r\n\r\n```\r\nQuery: avg(container_memory_usage_bytes{name=~\"prom.*\"}  / 1024 / 1024) by (name)\r\nElement\t\t\t\t\t\t\t\t\tValue\r\n{name=\"prometheus-consul-exporter\"}\t\t10.352864583333334\r\n{name=\"prometheus-haproxy-exporter\"}\t11.6328125\r\n{name=\"prometheus-container-exporter\"}\t325.6673828125\r\n{name=\"prometheus-node-exporter\"}\t\t13.4107421875\r\n{name=\"prometheus-statsd-exporter\"}\t\t10.933203125\r\n{name=\"prometheus\"}\t\t\t\t\t\t5294.07421875\r\n```\r\n\r\n```\r\nCONTAINER                       CPU %               MEM USAGE / LIMIT     MEM %               NET I/O               BLOCK I/O\r\nprometheus-container-exporter   0.00%               343.7 MB / 8.372 GB   4.11%               12.43 MB / 123.6 MB   4.1 MB / 0 B\r\nprometheus-node-exporter        0.00%               15.16 MB / 8.372 GB   0.18%               0 B / 0 B             4.305 MB / 0 B\r\nprometheus-statsd-exporter      0.18%               11.92 MB / 8.372 GB   0.14%               1.243 GB / 68.41 MB   5.325 MB / 0 B\r\n```\r\n\r\nUptime here is 10 days for all prometheus-containers, and scrape time of 60 sec.\r\n\r\nI will try using cAdvisor instead of the container-exporter, but logging here in case someone takes up the maintenance of this repo."},"comment":{"url":"https://api.github.com/repos/docker-infra/container_exporter/issues/comments/188329705","html_url":"https://github.com/docker-infra/container_exporter/issues/17#issuecomment-188329705","issue_url":"https://api.github.com/repos/docker-infra/container_exporter/issues/17","id":188329705,"user":{"login":"MrMMorris","id":1494248,"avatar_url":"https://avatars.githubusercontent.com/u/1494248?v=3","gravatar_id":"","url":"https://api.github.com/users/MrMMorris","html_url":"https://github.com/MrMMorris","followers_url":"https://api.github.com/users/MrMMorris/followers","following_url":"https://api.github.com/users/MrMMorris/following{/other_user}","gists_url":"https://api.github.com/users/MrMMorris/gists{/gist_id}","starred_url":"https://api.github.com/users/MrMMorris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrMMorris/subscriptions","organizations_url":"https://api.github.com/users/MrMMorris/orgs","repos_url":"https://api.github.com/users/MrMMorris/repos","events_url":"https://api.github.com/users/MrMMorris/events{/privacy}","received_events_url":"https://api.github.com/users/MrMMorris/received_events","type":"User","site_admin":false},"created_at":"2016-02-24T16:18:18Z","updated_at":"2016-02-24T16:18:18Z","body":"seeing this as well. Using **2.6GB** of memory on one of my hosts.\r\n\r\nI think this actually resulted in some downtime with my Consul cluster, so not good at all"}}