Grafana
You can visualize your time series data and create alerts using Grafana. To help you get
started with data visualization, we have created a sample dashboard in Grafana that visualizes
data sent to Timestream from a Python application and a video tutorial
Sample application
-
Create a database and a table in Timestream following the instructions described in Create a database for more information.
Note
The default database name and table name for the Grafana dashboard are set to grafanaDB and grafanaTable respectively. Use these names to minimize setup.
-
Install Python 3.7
or higher -
Clone the GitHub repository for the multi-thread Python application
continuously ingesting data into Timestream following the instructions from GitHub -
Run the application for continuously ingesting data into Timestream following the instructions in the README
-
Complete Getting started with Amazon Managed Grafana or complete Install Grafana
. -
If installing Grafana instead of using Amazon Managed Grafana, complete Install the Timestream plugin for Grafana
. -
Open the Grafana dashboard using a browser of your choice. If you've locally installed Grafana, you can follow the instructions described in the Grafana documentation to log in
-
After launching Grafana, go to Datasources, click on Add Datasource, search for Timestream, and select the Timestream datasource
-
Configure the Auth Provider and the region and click Save and Test
-
Set the default macros
-
Set $__database to the name of your Timestream database (e.g. grafanaDB)
-
Set $__table to the name of your Timestream table (e.g. grafanaTable)
-
Set $__measure to the most commonly used measure from the tabl
-
-
Click Save and Test
-
Click on the Dashboards tab
-
Click on Import to import the dashboard
-
Double click the Sample Application Dashboard
-
Click on the dashboard settings
-
Select Variables
-
Change dbName and tableName to match the names of the Timestream database and table
-
Click Save
-
Refresh the dashboard
-
To create alerts, follow the instructions described in the Grafana documentation to Create a Grafana managed alerting rule
-
To troubleshoot alerts, follow the instructions described in the Grafana documentation for Troubleshooting
-
For additional information, see the Grafana documentation
Video tutorial
This video