{"action":"created","issue":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/174","labels_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/174/comments","events_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/174/events","html_url":"https://github.com/aws/amazon-ecs-agent/issues/174","id":102491064,"number":174,"title":"Unable to start metrics, ecs-agent reporting error","user":{"login":"djenriquez","id":4636740,"avatar_url":"https://avatars.githubusercontent.com/u/4636740?v=3","gravatar_id":"","url":"https://api.github.com/users/djenriquez","html_url":"https://github.com/djenriquez","followers_url":"https://api.github.com/users/djenriquez/followers","following_url":"https://api.github.com/users/djenriquez/following{/other_user}","gists_url":"https://api.github.com/users/djenriquez/gists{/gist_id}","starred_url":"https://api.github.com/users/djenriquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djenriquez/subscriptions","organizations_url":"https://api.github.com/users/djenriquez/orgs","repos_url":"https://api.github.com/users/djenriquez/repos","events_url":"https://api.github.com/users/djenriquez/events{/privacy}","received_events_url":"https://api.github.com/users/djenriquez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-22T00:53:06Z","updated_at":"2015-08-24T15:45:07Z","closed_at":null,"body":"Hello,\r\n\r\nWe are looking to enable metrics in ECS. I have verified ECS-Agents to be running 1.4 and also verified \"ecs:StartTelemetrySession\" permission for our IAM role as specified in this document: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/cloudwatch-metrics.html\r\n\r\nAfter enabling the permissions, I restarted ecs-agent and noticed metrics did not start showing up on cloudwatch or ECS Metrics tab in the cluster view.\r\n\r\nI ssh'd into an instance node and checked the logs of ecs-agent which reported the following:\r\n\r\n```\r\n2015-08-22T00:22:12Z [WARN] Error getting cpu stats module=\"stats\" err=\"No data in the queue\" container=\"&{DockerID:56346a72228b8deddbcef2525ff916ff1b622c12f3c7a5e79b2f129b7ceeea61}\"\r\n2015-08-22T00:22:12Z [WARN] Error getting cpu stats module=\"stats\" err=\"No data in the queue\" container=\"&{DockerID:558995da5f061a7dd2cf1ba4a99c07fd51c0ff10367dbf5386bd5e76af3102d7}\"\r\n2015-08-22T00:22:12Z [WARN] Error getting cpu stats module=\"stats\" err=\"No data in the queue\" container=\"&{DockerID:49291ae9e71ba950e69d0f63483d9a0c258a37ee09ed79877f32ae4fa928a829}\"\r\n2015-08-22T00:22:12Z [WARN] Error getting cpu stats module=\"stats\" err=\"No data in the queue\" container=\"&{DockerID:88e29e9fb260970c967d79c1a76d80d18639294039f1b3c81e3f21e5e8b6490e}\"\r\n2015-08-22T00:22:12Z [WARN] Error getting instance metrics module=\"tcs client\" err=\"No task metrics to report\"\r\n```\r\nAny idea whats going on or what we may be missing?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/comments/134256426","html_url":"https://github.com/aws/amazon-ecs-agent/issues/174#issuecomment-134256426","issue_url":"https://api.github.com/repos/aws/amazon-ecs-agent/issues/174","id":134256426,"user":{"login":"aaithal","id":1183359,"avatar_url":"https://avatars.githubusercontent.com/u/1183359?v=3","gravatar_id":"","url":"https://api.github.com/users/aaithal","html_url":"https://github.com/aaithal","followers_url":"https://api.github.com/users/aaithal/followers","following_url":"https://api.github.com/users/aaithal/following{/other_user}","gists_url":"https://api.github.com/users/aaithal/gists{/gist_id}","starred_url":"https://api.github.com/users/aaithal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaithal/subscriptions","organizations_url":"https://api.github.com/users/aaithal/orgs","repos_url":"https://api.github.com/users/aaithal/repos","events_url":"https://api.github.com/users/aaithal/events{/privacy}","received_events_url":"https://api.github.com/users/aaithal/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T15:45:07Z","updated_at":"2015-08-24T15:45:07Z","body":"Hi,\r\n\r\nThanks a lot a reporting this issue. If the issue is with the amazon-ecs-agent on CoreOS, you would need to supply additional data volume paths to the agent. The ecs-init rpm handles this for amazon-ecs-agent on Amazon Linux. The following commit should give you an idea of the changes needed: https://github.com/aws/amazon-ecs-init/commit/8f21c8bf071dc625e08470d59931e286c9b3bac9. \r\n\r\nThe parametters specified by @seiffert's comment should work.\r\n\r\nThanks,\r\nAnirudh"}}