{"action":"closed","issue":{"url":"https://api.github.com/repos/cargomedia/bipbip/issues/92","labels_url":"https://api.github.com/repos/cargomedia/bipbip/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/cargomedia/bipbip/issues/92/comments","events_url":"https://api.github.com/repos/cargomedia/bipbip/issues/92/events","html_url":"https://github.com/cargomedia/bipbip/issues/92","id":54431612,"number":92,"title":"Mongo: collect slow query metrics","user":{"login":"kris-lab","id":1843523,"avatar_url":"https://avatars.githubusercontent.com/u/1843523?v=3","gravatar_id":"","url":"https://api.github.com/users/kris-lab","html_url":"https://github.com/kris-lab","followers_url":"https://api.github.com/users/kris-lab/followers","following_url":"https://api.github.com/users/kris-lab/following{/other_user}","gists_url":"https://api.github.com/users/kris-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/kris-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kris-lab/subscriptions","organizations_url":"https://api.github.com/users/kris-lab/orgs","repos_url":"https://api.github.com/users/kris-lab/repos","events_url":"https://api.github.com/users/kris-lab/events{/privacy}","received_events_url":"https://api.github.com/users/kris-lab/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"njam","id":360800,"avatar_url":"https://avatars.githubusercontent.com/u/360800?v=3","gravatar_id":"","url":"https://api.github.com/users/njam","html_url":"https://github.com/njam","followers_url":"https://api.github.com/users/njam/followers","following_url":"https://api.github.com/users/njam/following{/other_user}","gists_url":"https://api.github.com/users/njam/gists{/gist_id}","starred_url":"https://api.github.com/users/njam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njam/subscriptions","organizations_url":"https://api.github.com/users/njam/orgs","repos_url":"https://api.github.com/users/njam/repos","events_url":"https://api.github.com/users/njam/events{/privacy}","received_events_url":"https://api.github.com/users/njam/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-01-15T10:07:51Z","updated_at":"2015-01-16T18:22:16Z","closed_at":"2015-01-16T18:22:15Z","body":"The idea is to track slow queries for each db instance. See [docu](http://docs.mongodb.org/manual/reference/command/profile/?_ga=1.53773996.500742327.1415094953)\r\n\r\nSomething like:\r\n```\r\ndb.system.profile.find({$where: ts > [last-check]}).count()\r\n```\r\n\r\nMake sure to set \"slaveOk\"!"}}