You use Timescale Console to create and manage Ops
for your Timescale Cloud services, and securely manage
Data
in your services.
Each service is a single 100% PostgreSQL database with usage-based storage.
Timescale Cloud offers the following PostgreSQL optimized database services:
- Time-series and Analytics: a Timescale DB instance optimized for your time-series and analytics workloads.
- Dynamic PostgreSQL: for all other workloads. A PostgreSQL instance with a dynamic compute range aligned to your business needs.
This section shows you how to create a service, then connect to it using either a secure Cloud SQL editor in Timescale Console, or command line tools.
To set up Timescale:
Sign up for a 30 day free trial.
You receive a confirmation email in your inbox.
In the confirmation email, click the link supplied and sign in to Timescale Console.
Answer the requirements questions, they help us optimize the Timescale service for your use case. You can now create a Timescale service.
Now that you have an active Timescale account, you create and manage your services in Timescale Console:
In the service creation page, choose Time Series and Analytics.
In Create a service, configure your service, then click Create service.
Your service is constructed immediately and is ready to use.
Click Download the config and store the configuration information you need to connect to this service in a secure location.
This file contains the passwords and configuration information you need to connect to your service using the Timescale Console Cloud SQL editors, from the command line, or using third party database administration tools.
Follow the service creation wizard.
If you choose to go directly to the service overview, Check your service and connect to it shows you how to connect.
To connect to a service:
Check your service is running correctly
In Timescale Console, check that your service is marked as
Running
.Connect to your service
Use either:
Data in Timescale Console:
In
Data
in Timescale Console, select a service and enter your password, then clickConnect
.You find your password in the config file you just downloaded.
Select a query to edit:
SQL editor in Timescale Console:
In
Ops
in Timescale Console, select a service, then clickSQL editor
.psql on the command line:
Connect to your service with the value of
Service URL
from the config file you just saved:psql "postgres://tsdbadmin:<PASSWORD>@<HOST>:<PORT>/tsdb?sslmode=require"
You can now run queries for this service.
Quick recap. You:
- Manage your services in the
Ops
in Timescale Console - Manage your data in
Data
in Timescale Console - Store configuration and security information in your config file.
Hypertables are PostgreSQL tables that automatically partition your data by time. You interact with hypertables in the same way as regular PostgreSQL tables, but with extra features that makes managing your time-series data much easier.
To create a hypertable:
Connect to your service
In Timescale Console, click
Data
, then select a service.Create a PostgreSQL table
Copy the following into your query, then click
Run
:CREATE TABLE stocks_real_time (time TIMESTAMPTZ NOT NULL,symbol TEXT NOT NULL,price DOUBLE PRECISION NULL,day_volume INT NULL);You see the result immediately:
Make a hypertable
Copy the following into your SQL editor, then run your query:
SELECT create_hypertable('stocks_real_time', by_range('time'));In
Data
, you see the result immediately:
And that is it, you are up and running. Enjoy developing with Timescale.
Found an issue on this page?Report an issue or Edit this page in GitHub.