> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Data sources

## Data sources

This document explains what a data source is, which data-source connectors it can use, how synced and remote data sources give Zenskar access to data, and how the sync frequency and cursor columns keep a synced data source current.

> [accordion] Map of concepts
>
> | Concept | Details |
> | - | - |
> | [Data-source connector](#data-source-connectors-what-a-data-source-connects-to) | The data-source connector of a data source decides the access that the data source can have. |
> | [Synced data source](#source-access-synced-or-remote) | If Zenskar copies the data of a data source, the data source is a synced data source. |
> | [Remote data source](#source-access-synced-or-remote) | If Zenskar queries the data of a data source in place, the data source is a remote data source. |
> | [Sync frequency](#sync-frequency-how-current-the-synced-usage-data-is) | Each synced data source has one sync frequency. |
> | | [Cursor column](#cursor-columns): Each table of a synced data source can have one cursor column. |

> [accordion] Related modules
>
> The following modules use data sources:
>
> | Module | Details |
> | - | - |
> | [Billable metrics](https://zenskar.com/docs/20260301/product-modules/usage/concepts/billable-metrics.md) | A billable metric reads synced usage data, or queries a remote data source. |

## Data sources: usage that stays in your systems

A **data source** is a named connection from Zenskar to a system in your data infrastructure that holds [usage](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#usage).

Each data source uses one [data-source connector](#data-source-connectors-what-a-data-source-connects-to) and its connection settings.

A data source lets a [billable metric](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#billable-metric) read usage where it already is. The usage needs no [usage events](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#usage-event). A billable metric reads data from the tables of a data source.

The data-source connector and the connection settings of a data source cannot change after the data source is created. A different connection needs a new data source. A data source cannot be deleted.

> [card] [Add a data source](https://zenskar.com/docs/20260301/product-modules/usage/how-to-guides/data-sources.md#add-a-data-source)
>
> This guide shows how to add a data source with its data-source connector, connection settings, and access.

## Data-source connectors: what a data source connects to

A **data-source connector** is the software component that connects Zenskar to one kind of system in your data infrastructure that holds usage.

Zenskar has 16 data-source connectors, in three groups. Each data-source connector has its own connection settings. The document of each data-source connector explains them.

| Group | Data-source connectors |
| - | - |
| Databases and data warehouses | [Amazon Athena](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/amazon-athena.md), [Amazon Redshift](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/amazon-redshift.md), [BigQuery](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/bigquery.md), [ClickHouse](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/clickhouse.md), [CockroachDB](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/cockroachdb.md), [Databricks](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/databricks-lakehouse.md), [MongoDB](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/mongodb.md), [MySQL](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/mysql.md), [PostgreSQL](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/postgresql.md), [Snowflake](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/snowflake.md) |
| Analytics tools | [Looker](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/looker.md), [Metabase](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/metabase.md) |
| Business apps | [Auth0](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/auth0.md), [Google Sheets](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/google-sheets.md), [QuickBooks](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/quickbooks.md), [Shopify](https://zenskar.com/docs/20260301/third-party-integrations/data-sources/shopify.md) |

## Source access: synced or remote

A data source gives Zenskar access to its data in one of two ways.

A **synced data source** is a data source whose data Zenskar copies on a schedule.

A **remote data source** is a data source that Zenskar queries in place.

Zenskar copies each kind of record of the system into a table, with one column for each field. The tables and columns to copy are chosen after the data source is created. A billable metric can read only the synced usage data.

| | Synced data source | Remote data source |
| - | - | - |
| Where the data is read | Zenskar reads the synced usage data. | Zenskar queries the system directly. |
| Fresh data | Synced usage data is as fresh as the last sync. See [Sync frequency: how current the synced usage data is](#sync-frequency-how-current-the-synced-usage-data-is). | Each query reads the current data. |
| Billable metrics | A billable metric can read the synced usage data with the [visual builder](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#visual-builder) or the [SQL builder](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#sql-builder). | A billable metric reads the tables only with the SQL builder. |
| When it fits | It fits small to medium amounts of data that change on a regular cycle. | It fits large amounts of data and data that changes in real time. |

A remote data source is read-only. A billable metric query reads either [usage-event collections](https://zenskar.com/docs/20260301/product-modules/usage/glossary.md#usage-event-collection) and synced usage data, or one remote data source. It cannot read both.

The data-source connector decides which access is possible:

| Access | Data-source connectors |
| - | - |
| Synced data source or remote data source | Amazon Athena, Amazon Redshift, Databricks, MySQL, PostgreSQL, Snowflake |
| Remote data source only | BigQuery |
| Synced data source only | Auth0, ClickHouse, CockroachDB, Google Sheets, Looker, Metabase, MongoDB, QuickBooks, Shopify |

When both are possible, a remote data source is the default. The access is part of the connection settings. It cannot change after the data source is created.

## Sync frequency: how current the synced usage data is

The **sync frequency** is how often Zenskar copies the data of a synced data source.

The sync frequency is every 1, 2, 3, 4, 6, 12, or 24 hours. The default is every 12 hours. A sync can also run on demand, between scheduled syncs. Syncing can be paused and resumed. While syncing is paused, the synced usage data stays as it was at the last sync.

A billable metric reads the synced usage data. Usage that reaches the system after the last sync is not in the synced usage data until the next sync.

> [card] [Change the sync frequency](https://zenskar.com/docs/20260301/product-modules/usage/how-to-guides/data-sources.md#change-the-sync-frequency)
>
> This guide shows how to change how often a synced data source syncs.

> [card] [Sync now, pause, or resume syncing](https://zenskar.com/docs/20260301/product-modules/usage/how-to-guides/data-sources.md#sync-now-pause-or-resume-syncing)
>
> This guide shows how to start a sync right away, or pause and resume scheduled syncs.

### Cursor columns

A **cursor column** is a column of a synced table whose values tell Zenskar which rows are new since the last sync.

With a cursor column, each sync adds the new rows to the table in the synced usage data. Without a cursor column, each sync replaces the whole table in the synced usage data. A cursor column must be one of the chosen columns.

> [card] [Choose the tables and columns to sync](https://zenskar.com/docs/20260301/product-modules/usage/how-to-guides/data-sources.md#choose-the-tables-and-columns-to-sync)
>
> This guide shows how to choose the tables, columns, cursor column, and primary key of a synced data source.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.