Menu
Amazon Mobile Analytics
User Guide

Explanation of Infrastructure

The Mobile Analytics and Amazon Redshift combination includes the following components:

  • An Amazon Redshift cluster that holds all auto export events. It can start small and scale up to petabytes of information. For more information, see Amazon Redshift.

  • A VPC to isolate network resources to control access. There is no additional charge for using Amazon Virtual Private Cloud (Amazon VPC), aside from the standard Amazon EC2 usage charges. For more information, see Amazon VPC.

  • A t2.micro EC2 instance to facilitate the transfer of data from your S3 subscription bucket into Amazon Redshift. For more information, see Amazon EC2.

  • Amazon CloudWatch Logs and metrics for information about the health of the data transfer to Amazon Redshift.

  • Python scripts that run on your EC2 instance and allow you to interact with the Amazon Redshift cluster.

Amazon Redshift Cluster

Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse solution that makes it simple and cost-effective to efficiently analyze all of your data using your existing business intelligence tools. For more information, see Amazon Redshift.

Virtual Private Cloud

Amazon Virtual Private Cloud (Amazon VPC) lets you provision a logically isolated section of the AWS cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment, including selection of your own IP address range, creation of subnets, and configuration of route tables and network gateways. For more information, see Amazon Virtual Private Cloud.

EC2 Instance

When the EC2 instance is provisioned, it downloads the Mobile Analytics Python scripts. After the EC2 instance starts, these scripts connect to the Amazon Redshift cluster and set up the users and tables required to process Mobile Analytics events. The scripts are invoked every hour to load all new event data into your Amazon Redshift cluster.

You can connect to the console using SSH with the EC2 keyname specified in the advanced settings: ssh -i your-keyname.pem ec2-user@public-dns-of-instance

Note

Your pem file must be set to read-only permissions. Run the following command to ensure the file will be accepted: chmod 400 your-keyname.pem.

For more information about EC2 instances, see Amazon EC2.

CloudWatch Metrics and Logs

The EC2 instance records CloudWatch metrics and logs for debugging and monitoring of the EC2 instance. For more information, see Amazon CloudWatch Logs. To view metrics about the execution of the EC2 loadevents operation:

  1. Go to the CloudWatch console.

  2. In the left navigation pane, choose Custom Metrics.

  3. Choose the LoadEventsDuration metric.

To view logs about the invocation of the EC2 instance:

  1. Go to the CloudWatch console.

  2. Choose Logs.

  3. Choose the LogGroup for the EC2 instance.

  4. Choose the application log stream.