I got more indepth data today. I had AWS log set at info. But its good information below. If i try debug, I won’t be able to correlate with AWS until a few days (or maybe a month)
@fryguy, it took a little while when I first looked at it. So the last column is aggregated units of “ListTopics” in the hour of 15:00 to 16:00 - In this line there were 29,576 requests according to AWS. So if we totaled it across the 5 days its actually much higher that 1.5 million - more like 4.4 million (again according to AWS billing).
AmazonSNS ListTopics USW1-Requests-Tier1 07/09/15 15:00:00 07/09/15 16:00:00 29576
Now trying to corelate with ManageIQ logs, I see this log repeatedly (which I think is due to Amazon AWS Config not setup)
[----] W, [2015-07-10T03:16:00.020176 #29382:3d59e4c] WARN -- : MIQ(AmazonEventMonitor#find_or_create_queue) Unable to find the AWS Config Topic. Cannot collect Amazon events for AWS Access Key ID AYYYYYYYYYYYYYYYYYYYY
[----] W, [2015-07-10T03:16:00.020214 #29382:3d59e4c] WARN -- : MIQ(AmazonEventMonitor#find_or_create_queue) Contact Amazon to create the AWS Config service and topic for Amazon events.
I checked for two hour windows 7/10/2015 16:00 to 18:00. There were 2,560 log entries so roughly (2560 lines/2 lines per request )/2 hours = 640 requests per hour or 10 per minute.
Trying to matching this with Amazon’s billing:
AmazonSNS ListTopics USW1-Requests-Tier1 7/10/2015 16:00 7/10/2015 17:00 37780
AmazonSNS ListTopics USW1-Requests-Tier1 7/10/2015 17:00 7/10/2015 18:00 37821
This is about 75,601 API requests. So there’s clear more API requests from manage IQ side.
For little more insight, i turned on debug in AWS side just to see:
aws.log
[----] W, [2015-08-05T11:31:13.118641 #2052:3f224a4] WARN -- : MIQ(AmazonEventMonitor#find_or_create_queue) Contact Amazon to create the AWS Config service and topic for Amazon events.
[----] D, [2015-08-05T11:31:13.118754 #2052:3f224a4] DEBUG -- : MIQ(AmazonEventMonitor#find_or_create_queue) Looking for Amazon SQS Queue manageiq-awsconfig-queue-90ba7a22-264c-11e5-8b49-525400fa21a1 ...
[----] D, [2015-08-05T11:31:18.289550 #2052:3f224a4] DEBUG -- : [AWS SQS 400 5.169702 0 retries] get_queue_url(:queue_name=>"manageiq-awsconfig-queue-1111111-1111-1111-1111-11111111111") AWS::SQS::Errors::NonExistentQueue The specified queue does not exist for this wsdl version.
[----] D, [2015-08-05T11:31:23.378971 #2052:3f224a4] DEBUG -- : [AWS SNS 200 5.088042 0 retries] list_topics()
[----] W, [2015-08-05T11:31:23.379261 #2052:3f224a4] WARN -- : MIQ(AmazonEventMonitor#find_or_create_queue) Unable to find the AWS Config Topic. Cannot collect Amazon events for AWS Access Key ID AYYYYYYYYYYYYYYYYYYYY
evm.log around the above time:
[----] W, [2015-08-05T11:31:23.379306 #2052:3f224a4] WARN -- : <AWS> MIQ(AmazonEventMonitor#find_or_create_queue) Contact Amazon to create the AWS Config service and topic for Amazon events.
[----] I, [2015-08-05T11:31:24.593391 #2089:77fe98] INFO -- : MIQ(ScheduleWorker.do_work) Number of scheduled items to be processed: 2.
[----] I, [2015-08-05T11:31:24.617448 #2089:77fe98] INFO -- : MIQ(MiqQueue.put) Message id: [103260], id: [], Zone: [default], Role: [ems_metrics_coordinator], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [Metric::Capture.perf_capture_timer], Timeout: [600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: []
[----] I, [2015-08-05T11:31:24.624027 #2089:77fe98] INFO -- : MIQ(MiqQueue.put) Message id: [103261], id: [], Zone: [default], Role: [smartstate], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [job_dispatcher], Command: [JobProxyDispatcher.dispatch], Timeout: [600], Priority: [20], State: [ready], Deliver On: [], Data: [], Args: []
[----] I, [2015-08-05T11:31:28.170581 #1758:853e8c] INFO -- : MIQ(MiqServer.populate_queue_messages) Fetched 2 miq_queue rows for queue_name=generic, wcount=4, priority=200
[----] I, [2015-08-05T11:31:28.721798 #2075:86fe98] INFO -- : MIQ(MiqQueue.get_via_drb) Message id: [103260], MiqWorker id: [386], Zone: [default], Role: [ems_metrics_coordinator], Server: [], Ident: [generic], Target id: [], Instance id: [], Task id: [], Command: [Metric::Capture.perf_capture_timer], Timeout: [600], Priority: [20], State: [dequeue], Deliver On: [], Data: [], Args: [], Dequeued in: [4.111119133] seconds
[----] I, [2015-08-05T11:31:28.722035 #2075:86fe98] INFO -- : MIQ(MiqQueue.deliver) Message id: [103260], Delivering...
@blomquisg, This server was setup as event monitor. Will check if this AWS SNS access gets disabled if I remove the event monitor role. The Poll time was set at 15 seconds. However, the logs show the check with AWS is roughly 10 requests per minute.
Does this look like a bug or atleast something to enhance in MIQ?