Find a data source
Prerequisites
- You need a role with the Can Read Data Source permission.
Steps
- Go to Usage > Data Sources. The list shows the data sources of your organization. Status shows Failed when Zenskar cannot connect to the system of a data source.
- Optional: To sort the list, click a column header. Click it again to sort in descending order, and a third time to remove the sorting.
- In Search Data Source, enter part of the name, and select the data source from the results. You can also click the data source in the list.
Add a data source
Prerequisites
- You need a role with the Can Create Data Source and Can Read Data Source permissions.
- You need the connection details of the system. The document of each data-source connector lists what its connection needs. See Data-source connectors: how Zenskar reads a data source.
Steps
You cannot delete a data source. You cannot change its data-source connector, connection settings, or access after you save it. Check the settings before you click SAVE SOURCE.
- Go to Usage > Data Sources.
- Click ADD DATA SOURCE. The Add New Data Source screen opens.
- Under Set Up Source, in Source Name, enter a name.
- In Source Type, select the data-source connector.
- Under Source Config, enter the connection settings. The fields depend on the data-source connector.
- Under Source Access, select Directly from Source for a remote data source, or Sync to Zenskar for a synced data source. When the data-source connector allows only one access, the dashboard selects it for you. When both are possible, Directly from Source is selected by default.
- Click SAVE SOURCE.
Choose the tables and columns to sync
Use the same steps to change the choice later.Prerequisites
- You need a role with the Can Update Data Source and Can Read Data Source permissions.
Steps
- Go to Usage > Data Sources, and click the synced data source. The Sync Required Tables & Columns screen lists the tables that Zenskar can copy. A billable metric can read only the tables and columns that you sync.
- Turn on the switch of each table to sync. To sync all tables, turn on the switch in the column header. Turning on a table syncs all its columns.
- Optional: To choose the columns of a table, click the add icon next to the name of the table. The Edit Table window lists the columns of the table, with Column Name and Data Type.
- In the Edit Table window, turn on the switch of each column to sync. To sync all columns, turn on the switch in the column header.
- Optional: Under Cursor, select the cursor column. It must be a column that you sync. Without a cursor column, each sync replaces the whole table in the synced usage data. See Cursor columns: which rows a sync adds.
- Under Primary Key, select one column.
- Click SAVE.
- Click FINISH SETUP.
Change the sync frequency
Prerequisites
- You need a role with the Can Update Data Source and Can Read Data Source permissions.
Steps
- Go to Usage > Data Sources, and click the synced data source.
- Under SYNC INFO, in Select Frequency, select how often to sync. Last Synced shows the time of the latest sync.
- Click FINISH SETUP.
Sync now, pause, or resume syncing
Prerequisites
- To sync now, you need a role with the Can Read Data Source permission.
- To pause or resume syncing, the role also needs the Can Update Data Source permission.
Steps
- Go to Usage > Data Sources, and click the synced data source.
-
Click one of the following:
- SYNC NOW, to start a sync right away, between the scheduled syncs.
- PAUSE SYNC, to stop the scheduled syncs.
- RESUME SYNC, to restart the scheduled syncs of a paused synced data source.
Refresh a data source
Refresh a synced data source when the system has new kinds of records or new fields.Prerequisites
- You need a role with the Can Read Data Source permission.
Steps
- Go to Usage > Data Sources, and click the synced data source.
- Click REFRESH SOURCE. Zenskar reads the system again. This can take a few minutes. Refreshing does not change the connection settings.