2022-05-02 00:18:15 -07:00
Metabase databases will be mapped to a DataHub platform based on the engine listed in the
[api/database ](https://www.metabase.com/docs/latest/api-documentation.html#database ) response. This mapping can be
customized by using the `engine_platform_map` config option. For example, to map databases using the `athena` engine to
the underlying datasets in the `glue` platform, the following snippet can be used:
2025-04-16 16:55:51 -07:00
2022-05-02 00:18:15 -07:00
```yml
2025-04-16 16:55:51 -07:00
engine_platform_map:
athena: glue
2022-05-02 00:18:15 -07:00
```
2025-04-16 16:55:51 -07:00
2022-05-02 00:18:15 -07:00
DataHub will try to determine database name from Metabase [api/database ](https://www.metabase.com/docs/latest/api-documentation.html#database )
payload. However, the name can be overridden from `database_alias_map` for a given database connected to Metabase.
2023-08-02 07:23:48 +03:00
If several platform instances with the same platform (e.g. from several distinct clickhouse clusters) are present in DataHub,
the mapping between database id in Metabase and platform instance in DataHub may be configured with the following map:
2025-04-16 16:55:51 -07:00
2023-08-02 07:23:48 +03:00
```yml
2025-04-16 16:55:51 -07:00
database_id_to_instance_map:
"42": platform_instance_in_datahub
2023-08-02 07:23:48 +03:00
```
2025-04-16 16:55:51 -07:00
The key in this map must be string, not integer although Metabase API provides `id` as number.
2023-08-02 07:23:48 +03:00
If `database_id_to_instance_map` is not specified, `platform_instance_map` is used for platform instance mapping. If none of the above are specified, platform instance is not used when constructing `urn` when searching for dataset relations.
2024-04-19 21:53:17 +02:00
If needed it is possible to exclude collections from other users by setting the following configuration:
2025-04-16 16:55:51 -07:00
2024-04-19 21:53:17 +02:00
```yaml
exclude_other_user_collections: true
```
2025-04-16 16:55:51 -07:00
2022-05-02 00:18:15 -07:00
## Compatibility
2024-01-26 02:51:41 +01:00
Metabase version [v0.48.3 ](https://www.metabase.com/start/oss/ )