Redshift
Import usage events into Vayu from an Amazon Redshift table or view.
The Redshift integration lets Vayu read usage events straight from a table or view in your Amazon Redshift cluster or Serverless workgroup. Your usage data stays in Redshift. Vayu queries the table every hour for new rows and turns each row into a usage event for billing.
This page covers what you need before you start, how to prepare the table, how to let Vayu reach the cluster, and how to connect it in the app.
How It Works
- Vayu connects to Redshift with a username and password, over a secure connection.
- When auto-import is on, Vayu queries the table every hour for rows whose timestamp column is newer than the last row it imported. To give late writes time to land, each run stops 5 minutes before the current time.
- If the timestamp column is a DATE, Vayu only reads a day after that UTC day is complete. Explicit backfill ranges are not adjusted this way.
- Each row becomes one event. The required columns map to the event's fields, and every other column is stored in the event's
data. - The first run starts from the Import from date you choose. If you leave it empty, Vayu starts one day back.

Before You Start
Make sure you have:
- A Redshift provisioned cluster or Serverless workgroup, with public accessibility turned on.
- A table or view that holds one row per usage event and the required columns.
- A Redshift user with
SELECTon that table or view. - Permission to add an inbound rule on the cluster port for Vayu's address.
Required Table Columns
The table or view must have these columns. Vayu matches the names without regard to case:
| Column | Type | Maps to |
|---|---|---|
ref | character type | The event's unique reference. Use a stable ID so the same row is never billed twice. |
timestamp | TIMESTAMP, TIMESTAMPTZ, DATE or UTC text | When the event happened. You can point Vayu at a different column in the connection form. |
customerAlias | character type | The customer the event belongs to. It must match the customer's alias in Vayu. |
name | character type | The event name, for example api_call. |
Any other column, such as quantity or region, is copied into the event's data and can be used in your metering rules.
If the timestamp column is text, every sampled value must use one UTC format, for example 2026-10-14T09:30:00Z or 2026-10-14 09:30:00.
If your raw data uses different column names, create a view that renames them rather than changing the source table.
Let Vayu Reach the Cluster
Before you connect, Vayu has to be able to reach the cluster from the internet:
- Turn on public accessibility for the cluster or Serverless workgroup.
- Add an inbound rule on the cluster port (default 5439) for the Vayu address shown in the connect drawer. Use Copy the Vayu address to copy it.
The connect drawer also links to AWS guidance on connecting to Redshift from the internet.
Connect Redshift in Vayu
- Go to Integrations and select Redshift.
- Review the network-access steps and copy the Vayu address if you have not already allowed it.
- Fill in the connection:
- Host: the endpoint from the Redshift console, without the port or database, for example
cluster.abc123.us-east-1.redshift.amazonaws.com. - Port: defaults to
5439. - Database: for example
dev. - User: a user with
SELECTon the table or view, for examplevayu_reader. - Password: that user's password.
Vayu encrypts the Redshift password and stores it in secure storage.
- Host: the endpoint from the Redshift console, without the port or database, for example
- Fill in the source table:
- Schema: defaults to
public. - Table or view: for example
usage_events. - Timestamp column: the column Vayu uses to find new rows. It defaults to
timestamp, and it can be a TIMESTAMP, TIMESTAMPTZ, DATE or UTC text column.
- Schema: defaults to
- Set the import options:
- Import from: the date the first import starts from. It only applies before the first run. Leave it empty to start one day back.
- Auto-import events: keep this on to check the table every hour.
- Click Test connection, fix anything it reports, and then click Connect.

Test Connection Results
Test connection tries to reach the cluster, reads the table, and runs a small query. It reports what it finds:
| Result | What it means | How to fix it |
|---|---|---|
| The host name does not resolve | The host value is not a valid Redshift endpoint. | Copy the endpoint from the Redshift console, without the port or database. |
| Vayu could not reach the cluster | The cluster is not reachable from Vayu's address. | Turn on public accessibility, and allow inbound traffic on the port from the Vayu address in the drawer. |
| The secure connection failed | SSL could not be established. | Use the Redshift endpoint host name, not an IP address or a proxy. |
| Login failed | Redshift rejected the user name or password. | Check the user and password. |
| The database does not exist | The database name is not on this cluster. | Use a database that exists on the cluster. |
| No readable table or view | Vayu could not read the table for this user. | Check the schema and table name, and that the user has SELECT. |
| Missing required columns | One or more of ref, timestamp, customerAlias or name isn't in the table. | Add the columns, or point Vayu at a view that renames them. |
| Timestamp column type or format | The timestamp column is missing, isn't an accepted type, or text values are not in one UTC format. | Use a TIMESTAMP, TIMESTAMPTZ, DATE or UTC text column. |
| Query failed | Vayu could read the schema but couldn't query the table. | Check that the user can SELECT from the table. |
| Not the first sort key (warning) | The table works, but the timestamp column is not the first sort key, so every poll may scan the whole table. | You can still connect. Make the timestamp column the first sort key to keep scans smaller. |
| View (warning) | This is a view, so how much each poll scans depends on the sort key of the table underneath. | You can still connect. |
Change the Configuration
After connecting, click Manage on the Redshift card to open the configuration. You can change the source table and import options there.
The connection details sit behind Modify (restored if you click Keep). The stored password is never shown. To use a new password, click Replace. The Vayu address stays visible for reference.
How Syncing Works
- Scheduled imports. When auto-import is on, Vayu imports once an hour. Each run picks up where the last one stopped, up to 5 minutes before the run started.
- DATE columns. If you poll by a DATE column, a UTC day is imported only after that day is complete.
- Late rows. A row whose timestamp is older than the last imported row's isn't picked up by scheduled runs.
- Long runs. If a run has a lot of rows, it stops after about four minutes and the next run continues from where it stopped.
Check Your Events
Imported rows appear under Data metering → Events after the next run. Each event shows the ref, name and customerAlias from its row, with the extra columns under Data.
If events don't show up, check that:
- The rows' timestamp values are after the Import from date and more than 5 minutes old (and, for a DATE column, that the UTC day is complete).
- The required column names are present.
- Each
customerAliasmatches a customer in Vayu. - The user has
SELECTon the table or view, and the cluster still allows Vayu's address.
Pushing Events Instead
If you'd rather control when and how data leaves Redshift, you can skip this integration and send events from your own pipeline to the Vayu events API. See Sending events.

