Area: Ingestion
Sub-Area: BI Tools
Applies to: OSS + Cloud
Issue
When you ingest from Looker, some dashboards or charts do not appear in DataHub. Or Looker Views do not appear, or their lineage to warehouse tables is missing.
You Might Be Asking
- Why aren't all my Looker dashboards showing up?
- Why don't I see Looker Views or lineage to my warehouse tables?
- What permissions does DataHub need in Looker?
- How do I include or exclude Looker folders?
Cause
The usual causes are:
-
Filters in the recipe.
dashboard_patternmatches dashboard IDs.chart_patternmatches chart IDs.folder_path_patternmatches folder paths. A dashboard is ingested only if bothfolder_path_patternanddashboard_patternallow it. Putting folder paths indashboard_patternis a common mistake. -
Personal folders. With
skip_personal_folders: true, only dashboards in the Shared folder space are ingested. - Missing Looker permissions on the API user.
-
Only the
lookersource is running. Looker Views and their lineage to warehouse tables need the separatelookmlsource. Thelookersource alone does not show them.
Solution
1. Check the looker recipe
base_url is the full URL of your Looker instance, for example https://company.looker.com:19999 or https://looker.company.com.
source:
type: looker
config:
base_url: "https://looker.company.com"
client_id: "${LOOKER_CLIENT_ID}"
client_secret: "${LOOKER_CLIENT_SECRET}"
extract_owners: true
extract_usage_history: true
Do not add parse_table_names_from_sql or project_name here. They are settings of the lookml source.
2. Grant the API user the right permissions
Give the Looker API user these permissions:
- access_data
- explore
- manage_models
- see_datagroups
- see_lookml
- see_lookml_dashboards
- see_looks
- see_pdts
- see_queries
- see_schedules
- see_sql
- see_system_activity
- see_user_dashboards
- see_users
Then generate an API key (client ID and secret) for that user. extract_usage_history (default true) queries Looker system activity explores to fetch historical dashboard usage.
3. Filter folders with folder_path_pattern
Build the folder path by joining the folder names in the Looker UI with slashes, for example Shared/Customer Reports/Sales.
source:
type: looker
config:
# ... connection settings as above
folder_path_pattern:
allow:
- "Shared/Customer Reports/Sales"
Use dashboard_pattern only with dashboard IDs and chart_pattern only with chart IDs. To skip personal folders, set skip_personal_folders: true. To ingest dashboards from personal folders, leave it at its default (false).
4. Run the lookml source for Views and lineage
Run a lookml source in addition to the looker source. These settings belong to the lookml source: git_info, base_folder, connection_to_platform_map, model_pattern, view_pattern, parse_table_names_from_sql and project_name.
In connection_to_platform_map, the key is the Looker connection name. Looker connections are defined in Looker, not in your recipe. Each value is an object:
-
platform(required) -
default_db(required) -
default_schema(optional) -
platform_instance(optional) -
platform_env(optional)
source:
type: lookml
config:
# ... other lookml settings such as git_info and base_folder
connection_to_platform_map:
production_snowflake:
platform: snowflake
default_db: ANALYTICS
default_schema: PUBLIC
A bare string value is still accepted and converted. If it has no .db part, the run logs a warning that a missing database name may break resolution. Use the object form.
5. Check the run
Open the run in the ingestion run history and read the report and logs. See UI ingestion if you run on DataHub Cloud.