1
0
mirror of synced 2026-01-04 00:04:25 -05:00
Files
airbyte/docs/integrations/sources/metabase.md
Denys Davydov 3b44baf37f Source metabase: allow using only https urls (#18607)
* #16519 source metabase: allow using only https urls

* source metabase: upd changelog

* #16519 fix url regexp

* auto-bump connector version

Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
2022-10-31 14:39:44 +02:00

75 lines
3.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Metabase
## Sync overview
This source can sync data for the [Metabase API](https://www.metabase.com/docs/latest/api-documentation.html). It supports only Full Refresh syncs.
### Output schema
This Source is capable of syncing the following Streams:
* [Activity](https://www.metabase.com/docs/latest/api/activity.html#get-apiactivity)
* [Card](https://www.metabase.com/docs/latest/api/card.html#get-apicard)
* [Collections](https://www.metabase.com/docs/latest/api/collection.html#get-apicollection)
* [Dashboard](https://www.metabase.com/docs/latest/api/dashboard.html#get-apidashboard)
* [User](https://www.metabase.com/docs/latest/api/user.html#get-apiuser)
### Data type mapping
| Integration Type | Airbyte Type | Notes |
|:--------------------|:-------------|:------|
| `string` | `string` | |
| `integer`, `number` | `number` | |
| `array` | `array` | |
| `object` | `object` | |
### Features
| Feature | Supported?\(Yes/No\) | Notes |
|:------------------|:---------------------|:------|
| Full Refresh Sync | Yes | |
| Incremental Sync | No | |
| SSL connection | Yes |
| Namespaces | No | |
## Getting started
### Requirements
* Credentials:
* `username` and `password` - Credential pairs to authenticate with Metabase instance. This may be used to generate a new `session_token` if necessary. An email from Metabase may be sent to the owner's account everytime this is being used to open a new session.
* `session_token` - Credential token to authenticate requests sent to Metabase API. Usually expires after 14 days.
* `instance_api_url` - URL to interact with metabase instance API
### Setup guide
You can find or create authentication tokens from [Metabase](https://www.metabase.com/learn/administration/metabase-api.html#authenticate-your-requests-with-a-session-token) by running the following command:`
```
curl -X POST \
-H "Content-Type: application/json" \
-d '{"username": "person@metabase.com", "password": "fakepassword"}' \
http://localhost:3000/api/session
```
If youre working with a remote server, youll need to replace localhost:3000 with your server address. This request will return a JSON object with a key called id and the token as the keys value, e.g.:
```
{"id":"38f4939c-ad7f-4cbe-ae54-30946daf8593"}
```
You can use this id value as your `session_token` when configuring the connector.
Note that these credentials tokens may expire after 14 days by default, and you might need to update your connector configuration with a new value when that happens (The connector should throw exceptions about Invalid and expired session tokens and return a 401 (Unauthorized) status code in that scenario).
If you are hosting your own metabase instance, you can configure this session duration on your metabase server by setting the environment variable MAX_SESSION_AGE (value is in minutes).
If the connector is supplied with only username and password, a session_token will be generated everytime an
authenticated query is running, which might trigger security alerts on the user's metabase account.
## Changelog
| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:---------------------------|
| 0.2.0 | 2022-10-28 | [18607](https://github.com/airbytehq/airbyte/pull/18607) | Disallow using `http` URLs |
| 0.1.0 | 2022-06-15 | [6975](https://github.com/airbytehq/airbyte/pull/13752) | Initial (alpha) release |