Tutorial - Amazon Timestream

Tutorial

This tutorial shows you how to create a database populated with sample data sets and run sample queries. The sample datasets used in this tutorial are frequently seen in IoT and DevOps scenarios. The IoT dataset contains time series data such as the speed, location, and load of a truck, to streamline fleet management and identify optimization opportunities. The DevOps dataset contains EC2 instance metrics such as CPU, network, and memory utilization to improve application performance and availability. Here’s a video tutorial for the instructions described in this section.

Follow these steps to create a database populated with the sample data sets and run sample queries using the AWS Console:

Using the console

Follow these steps to create a database populated with the sample data sets and run sample queries using the AWS Console:

  1. Open the AWS Console.

  2. In the navigation pane, choose Databases

  3. Click on Create database.

  4. On the create database page, enter the following:

    • Choose configuration – Select Sample database.

    • Name – Enter a database name of your choice.

    • Choose sample datasets – Select IoT and DevOps.

    • Click on Create database to create a database containing two tables – IoT and DevOps populated with sample data.

  5. In the navigation pane, choose Query editor

  6. Select Sample queries from the top menu.

  7. Click on one of the sample queries. This will take you back to the query editor with the editor populated with the sample query.

  8. Click Run to run the query and see query results.

Using the SDKs

Timestream provides a fully functional sample application that shows you how to create a database and table, populate the table with ~126K rows of sample data, and run sample queries. The sample application is available in GitHub for Java, Python, Node.js, Go, and Python.

  1. Clone the GitHub repository Timestream sample applications following the instructions from GitHub.

  2. Configure the AWS SDK to connect to Amazon Timestream following the instructions described in Using the AWS SDKs .

  3. Compile and run the sample application using the instructions below: