{"action":"created","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/455","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/455/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/455/events","html_url":"https://github.com/prometheus/prometheus/issues/455","id":55053656,"number":455,"title":"Implement strategies to limit memory usage.","user":{"login":"beorn7","id":5609886,"avatar_url":"https://avatars.githubusercontent.com/u/5609886?v=3","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},"labels":[{"url":"https://api.github.com/repos/prometheus/prometheus/labels/feature-request","name":"feature-request","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"beorn7","id":5609886,"avatar_url":"https://avatars.githubusercontent.com/u/5609886?v=3","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":29,"created_at":"2015-01-21T17:57:01Z","updated_at":"2015-09-17T08:02:38Z","closed_at":null,"body":"Currently, Prometheus simply limits the chunks in memory to a fixed number.\r\n\r\nHowever, this number doesn't directly imply the total memory usage as many other things take memory as well.\r\n\r\nPrometheus could measure its own memory consumption and (optionally) evict chunks early if it needs too much memory.\r\n\r\nIt's non-trivial to measure \"actual\" memory consumption in a platform independent way."},"comment":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/comments/140997803","html_url":"https://github.com/prometheus/prometheus/issues/455#issuecomment-140997803","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/455","id":140997803,"user":{"login":"juliusv","id":538008,"avatar_url":"https://avatars.githubusercontent.com/u/538008?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusv","html_url":"https://github.com/juliusv","followers_url":"https://api.github.com/users/juliusv/followers","following_url":"https://api.github.com/users/juliusv/following{/other_user}","gists_url":"https://api.github.com/users/juliusv/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusv/subscriptions","organizations_url":"https://api.github.com/users/juliusv/orgs","repos_url":"https://api.github.com/users/juliusv/repos","events_url":"https://api.github.com/users/juliusv/events{/privacy}","received_events_url":"https://api.github.com/users/juliusv/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T08:02:38Z","updated_at":"2015-09-17T08:02:38Z","body":"@pousa If the server is swapping, all bets are off. If it's just using a lot of memory and not swapping, it really depends on how many series the metric consists of, and what your exact query is (graph or tabular?). A single metric may still consist of tens of thousands of time series or more, in which case a very busy server might become too slow to even do a tabular query for all series matching that metric name (though tens of thousands normally still works fast and fine in the tabular view). Some more details about the query would be interesting..."}}