You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: metadata-ingestion/docs/sources/dbt/dbt-cloud_pre.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,36 @@ This source pulls dbt metadata directly from the dbt Cloud APIs.
5
5
Create a [service account token](https://docs.getdbt.com/docs/dbt-cloud-apis/service-tokens) with the "Metadata Only" permission.
6
6
This is a read-only permission.
7
7
8
-
You'll need to have a dbt Cloud job set up to run your dbt project, and "Generate docs on run" should be enabled.
8
+
#### Operating Modes
9
+
10
+
The dbt Cloud source supports two modes of operation:
11
+
12
+
##### 1. Explicit Mode (Default)
13
+
14
+
Specify a single dbt Cloud job to ingest metadata from. You'll need to have a dbt Cloud job set up to run your dbt project, and "Generate docs on run" should be enabled.
15
+
16
+
Note: As this is ingesting only one job, we expect it to process all/most of the models, or else multiple job ingestion might be required.
9
17
10
18
To get the required IDs, go to the job details page (this is the one with the "Run History" table), and look at the URL.
11
19
It should look something like this: https://cloud.getdbt.com/next/deploy/107298/projects/175705/jobs/148094.
12
20
In this example, the account ID is 107298, the project ID is 175705, and the job ID is 148094.
21
+
22
+
##### 2. Auto-Discovery Mode
23
+
24
+
Automatically discovers and ingests metadata from all eligible jobs in a dbt Cloud project. This mode:
25
+
26
+
- Discovers all jobs in the specified project's **production environment only**
27
+
- Filters to jobs with **"Generate docs on run" enabled** (`generate_docs=True`)
28
+
- Always uses the **latest run** for each job (ignores `run_id` configuration)
29
+
- Supports optional regex-based filtering to include/exclude specific job IDs
30
+
- Ingests metadata from multiple jobs in a single run
31
+
32
+
**When to use auto-discovery:**
33
+
34
+
- You have multiple dbt Cloud jobs in a project and want to ingest all of them
35
+
- You want to automatically pick up new jobs without updating configuration
0 commit comments