{"action":"created","issue":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/2001","labels_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2001/labels{/name}","comments_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2001/comments","events_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2001/events","html_url":"https://github.com/DataDog/dd-agent/pull/2001","id":113413069,"number":2001,"title":"[integration] [openstack] Add project limit collection and implement agent scoping","user":{"login":"talwai","id":3237580,"avatar_url":"https://avatars.githubusercontent.com/u/3237580?v=3","gravatar_id":"","url":"https://api.github.com/users/talwai","html_url":"https://github.com/talwai","followers_url":"https://api.github.com/users/talwai/followers","following_url":"https://api.github.com/users/talwai/following{/other_user}","gists_url":"https://api.github.com/users/talwai/gists{/gist_id}","starred_url":"https://api.github.com/users/talwai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talwai/subscriptions","organizations_url":"https://api.github.com/users/talwai/orgs","repos_url":"https://api.github.com/users/talwai/repos","events_url":"https://api.github.com/users/talwai/events{/privacy}","received_events_url":"https://api.github.com/users/talwai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-26T17:52:29Z","updated_at":"2015-10-27T22:29:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-agent/pulls/2001","html_url":"https://github.com/DataDog/dd-agent/pull/2001","diff_url":"https://github.com/DataDog/dd-agent/pull/2001.diff","patch_url":"https://github.com/DataDog/dd-agent/pull/2001.patch"},"body":"This PR is a rebased and updated version of @mtougeron's PR #1966 \r\nIt also incorporates a few other miscellaneous changes and fixes (apologies to reviewers for shoddy commits)\r\n\r\nIt adds the following:\r\n- Collection of project-level metrics related to limits and quotas, courtesy @mtougeron\r\n- Caching of host aggregates, which change infrequently, in between check runs. This allows us to query \r\nfor `os-aggregates` only every `CACHE_TTL` seconds, rather than at the standard interval of 15s\r\n- Proper failover of endpoints in the service catalog - we now correctly accept `internal` endpoints for \r\nNova and Neutron when `public` endpoints are not present\r\n- **IMPT - a new default** for the metric collection - local-only scoping. This is to handle the tricky case of ensuring that no two agents running in the same cluster accidentally duplicate the same metrics. This default ensures that the agent will collect metrics local to its `(physical_host, hypervisor, project)` along with guest servers contained in that scope. Any external servers / hypervisors / projects previously captured by the `check_all_*` directives will cease to be monitored. This is to ensure a manageable workload for the agent and allows it to run with fewer global permissions. The prior behavior can still be maintained by setting `local_only: false` in the `init_config` for this check.\r\n- Also ensures that metrics from local-only servers / hypervisors as collected in the default scenario, have host-level tags propagated to them to allow for better aggregation on the backend\r\n\r\ncc @mtougeron , let me know what you think!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DataDog/dd-agent/issues/comments/151664071","html_url":"https://github.com/DataDog/dd-agent/pull/2001#issuecomment-151664071","issue_url":"https://api.github.com/repos/DataDog/dd-agent/issues/2001","id":151664071,"user":{"login":"talwai","id":3237580,"avatar_url":"https://avatars.githubusercontent.com/u/3237580?v=3","gravatar_id":"","url":"https://api.github.com/users/talwai","html_url":"https://github.com/talwai","followers_url":"https://api.github.com/users/talwai/followers","following_url":"https://api.github.com/users/talwai/following{/other_user}","gists_url":"https://api.github.com/users/talwai/gists{/gist_id}","starred_url":"https://api.github.com/users/talwai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talwai/subscriptions","organizations_url":"https://api.github.com/users/talwai/orgs","repos_url":"https://api.github.com/users/talwai/repos","events_url":"https://api.github.com/users/talwai/events{/privacy}","received_events_url":"https://api.github.com/users/talwai/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T22:29:12Z","updated_at":"2015-10-27T22:29:12Z","body":"Thanks for your review and feedback @mtougeron! I've made some updates, and hope I've addressed your comments - either through changes to the code or through more detailed docs. I'm going to go ahead and merge this to the mainline branch, and continue development from there"}}