Take a sneak peak of our new documentation Read More
Last Updated: 2/16/2023, 9:16:51 AM

# Set Up the Data Warehouse

# Overview

To be able to receive events and the player actions log, you have to set up a data warehouse. The Cloud Game Telemetry service supports several different data warehouses by default, and AccelByte can work with you to integrate a data warehouse that we don’t yet support. Here we provide tutorials on how to connect the Game Telemetry service with a few common data warehouses: Redshift, S3, and Snowflake.

# Redshift

We’ll create a connector for you in Kafka Connect to pull event data from Kafka and write the data to Redshift. Nested data will be flattened in the Game Telemetry pipeline before getting pushed into Kafka. Each payload attached to the events will be converted into a Redshift column.

# Integration Requirements

AccelByte can integrate the Game Telemetry pipeline with Redshift for you. To do so, you’ll need to send us the following information:

  • Redshift credentials
  • Redshift database name

After we input that information into Kafka Connect, the connector will be created and the pipeline will automatically send Game Telemetry Data to Redshift.

# S3

# Setting Up AWS Account Permissions for Kafka Connect

First you need to set up your AWS Permission to get the AWS Credentials and create your new Bucket in the S3 platform. Follow this link to the tutorial to change your permission and get access to a Bucket S3 Change Permission in AWS (opens new window).

# Integration Requirements

AccelByte can integrate the Game Telemetry pipeline with S3 for you. To do so, you’ll need to send us the following information:

  • AWS Credentials
  • Bucket name

After we input that information into Kafka Connect, the pipeline will automatically send Game Telemetry data to your S3 bucket.

# Snowflake

If you use Snowflake as your data warehouse, you can set up a connection to Accelbyte Cloud in the Admin Portal by following the steps below.

IMPORTANT

To connect Snowflake to AccelByte Cloud, first complete the following prerequisites in the Snowflake application:

# Connect Snowflake to AccelByte Cloud

  1. In the publisher namespace of the Admin Portal, go to 3rd Party Integrations and open the Analytics & Data Monitoring menu.

    telemetry

  2. In the Analytics & Data Monitoring menu, click Configure Now.

    telemetry

  3. The Add Snowflake Configuration form will appear. Fill in the fields with the following information:

    telemetry

    • Enter the Snowflake username of the user that will be responsible for this data in the Snowflake Username field.

    • Enter your Snowflake account ID in the Snowflake Account ID field.

      NOTE

      The Snowflake Account ID is the prefix before snowflakecomputing.com in your Snowflake account url. Example: if your Snowflake URL is rsa42644.us-east-1.snowflakecomputing.com then the account ID is rsa42644.us-east-1.

      NOTE

      Please make sure to enter the correct Account ID format. See Snowflake’s Account Identifiers (opens new window) documentation for more information.

    • Enter the destination database’s name in the DB Name field.

    • Enter the schema of the database used for the integration in the Schema field.

    • Enter the pipeline you want as the source of the data in the Data Pipe Source field. You can enter more than one pipeline.

    • Choose how you want to store the data in the Model field. There are two model options:

      • Single: This model will store the data in one table for all AccelByte Cloud system events. If you use the Telemetry service, two tables will be created (one for Telemetry events and one for AccelByte Cloud system events).
      • Mapping: This model will store the data by mapping each event's topic name into a table. One table will be created for each topic name. Snowflake stages and pipes will also be created as tables.
  4. The Connect to Snowflake form will appear along with a Public Key. Copy the Public Key and paste it in your Snowflake Worksheet to set the connection.

    telemetry

    IMPORTANT

    This step must be completed before you can proceed to the following steps.

  5. Click the Integration Status toggle to switch it to Activate. You will be redirected to the Analytics & Data Monitoring page and your Connection Status will be changed to Connected. Your configuration may still be in progress. If so, you can refresh the page to update the status of your configuration.

    telemetry

  6. Once your configuration is successful, the Integration Status field will be changed to Active.

    telemetry

    If your configuration fails, the Integration Status field will change to Deactivated and the Connect button will appear in the Connection Status field. You can click the Connect button to try reconnecting, click the Edit button to edit the configuration, or click Remove to remove the configuration.

    NOTE

    If your configuration fails, make sure all the prerequisites on the Snowflake side have been satisfied. Check the IMPORTANT box in the top of Snowflake’s documentation to learn more.

# Backfill Snowflake Data

If your Snowpipe is missing data after you change your Snowflake Credentials or data has disappeared due to a connection issue, you can use the backfill feature to run past scheduled pipelines and fill in the missing data.

NOTE

Ensure you have activated the Snowflake warehouse (opens new window) before using the backfill feature.

  1. In the publisher namespace of the Admin Portal, go to 3rd Party Integrations and open the Analytics & Data Monitoring menu.

    telemetry

  2. In the Analytics & Data Monitoring menu, click the Backfill button.

    telemetry

  3. The Backfill form will appear. If you want to retrieve missing data from the entire range of your backfill data, choose All Time in the Time Range option. If you want to retrieve missing data for a specified time, choose Partial in the Time Range option and enter the Start Date and End Date for this time range.

    telemetry

    When you’re finished, click Submit.

  4. The backfilling process will run in the background. Refresh the page to see the latest configuration status. You can also cancel the backfilling process by clicking Cancel Backfilling Process.

    telemetry

    Once backfilling has been completed successfully, a confirmation will appear on the configuration page.

    TIP

    If the backfilling fails, check your connection and ensure that:

  5. Once the integration is successful, if you want to regularly update the RSA Key to ensure connection security, you can generate a new RSA Key by clicking Generate New RSA Key next to Connection Status on the configuration page.

    telemetry

  6. The Snowflake integration will be disconnected and you will need to reconnect Snowflake.

# Edit the Snowflake Configuration

  1. In the publisher namespace of the Admin Portal, go to 3rd Party Integrations and open the Analytics & Data Monitoring menu.

    telemetry

  2. In the Analytics & Data Monitoring menu, click the Edit Configuration button.

    telemetry

  3. Before editing the configuration, you must first disconnect Snowflake. The Disconnect Snowflake form will appear. Click Continue to disconnect the configuration and proceed to the editing form.

    telemetry

  4. The Edit Snowflake Configuration form will appear. Fill in the following information:

    • Enter the Snowflake username of the user that will be responsible for this data in the Snowflake Username field.

    • Enter your Snowflake account ID in the Snowflake Account ID field.

      NOTE

      The Snowflake Account ID is the prefix before snowflakecomputing.com in your Snowflake account url. Example: if your Snowflake URL is rsa42644.us-east-1.snowflakecomputing.com then the account ID is rsa42644.us-east-1.

    • Enter the destination database’s name in the DB Name field.

    • Enter the schema of the database used for the integration in the Schema field.

    • Enter the pipeline you want as the source of the data in the Data Pipe Source field. You can enter more than one pipeline.

    • Choose how you want to store the data in the Model field. Choose Single if you want to store all of the data in a single table or choose Mapping if you want to store the data in a different table for each topic.

    telemetry

    When you’re finished, click Continue.

  5. The Connect to Snowflake form will appear along with a Public Key. Copy the Public Key and paste it into your Snowflake configuration script to set up the connection.

    telemetry

    IMPORTANT

    This step must be completed before you can proceed with the next Telemetry guides.

  6. Click the Connect button. You will be redirected back to the Analytics & Data Monitoring page.