Configuration Reference
This page documents the top-level structure of a Bizon pipeline file. Source and destination keys are covered on their own pages.
Pipeline Configuration
Section titled “Pipeline Configuration”A complete pipeline configuration file:
name: hubspot-contactsid: hubspot-contacts
source: name: hubspot stream: contacts sync_mode: incremental authentication: type: api_key params: token: gsm://hubspot-api-token
transforms: - label: tag-source python: | data['source_system'] = 'hubspot'
destination: name: bigquery config: project_id: my-project dataset_id: raw_hubspot gcs_buffer_bucket: my-bizon-buffer
engine: backend: type: postgres config: host: db.internal port: 5432 database: bizon schema: public username: bizon password: env://PG_PASSWORD queue: type: python_queue config: max_nb_messages: 1000000 runner: type: thread log_level: INFO
monitoring: type: datadog config: datadog_agent_host: localhost
alerting: type: slack config: webhook_url: gsm://slack-alerts-webhook
secrets: gsm: project_id: my-projectTop-Level Keys
Section titled “Top-Level Keys”| Key | Required | Description |
|---|---|---|
name | Yes | Name of the pipeline |
id | No | Stable identity for the pipeline’s backend state. Defaults to name |
source | Yes | Source to read from |
destination | Yes | Destination to write to |
transforms | No | List of transforms applied to each record |
engine | No | Backend, queue and runner. Defaults to SQLite, python_queue and the thread runner |
monitoring | No | Monitoring (Datadog) |
alerting | No | Alerting (Slack) |
secrets | No | Provider defaults for secret references |
streams | No | Multi-table stream routing, for sync_mode: stream |
name and id
Section titled “name and id”The backend stores jobs, cursors and stream resets under id, or under name when id is not set. Changing that value starts the pipeline from scratch: incremental streams lose their watermark and in-flight jobs are not resumed.
Set id to keep that state independent of the display name. With id set, name can be renamed freely. To rename an existing pipeline without losing its state, first set id to its current name.
name: HubSpot contacts (marketing)id: hubspot-contactsid is limited to 100 characters.
Source
Section titled “Source”Source keys sit directly under source:. Connector-specific keys go at the same level as the common ones below.
source: name: notion stream: pages sync_mode: incremental database_ids: - 1a2b3c4d5e6f authentication: type: api_key params: token: gsm://notion-api-token| Key | Type | Default | Description |
|---|---|---|---|
name | string | Required | Source connector name (see bizon source list) |
stream | string | Required | Stream to sync (see bizon stream list <source>) |
sync_mode | enum | full_refresh | full_refresh, incremental or stream. See Sync Modes |
cursor_field | string | None | Field used for incremental filtering, passed to the source as source_state.cursor_field |
force_ignore_checkpoint | bool | false | Cancel the in-flight job and start a new one from iteration 0 |
max_iterations | int | None | Stop after this many iterations. None runs until the source is exhausted |
authentication | object | None | See Authentication |
http | object | Source default | Timeout and retry policy for the source’s HTTP session. See Custom Sources |
source_file_path | string | None | Path to a custom source file. Set by --custom-source |
reset | bool | false | Deprecated. Use bizon run --reset or bizon stream reset |
Keys that the source’s config class does not declare are ignored with a warning. Check each connector’s page in the sources catalog for its own keys.
Destination
Section titled “Destination”destination: name: bigquery config: project_id: my-project dataset_id: analytics dataset_location: EU gcs_buffer_bucket: my-bizon-buffer buffer_size: 50 buffer_flush_timeout: 600name is one of bigquery, bigquery_streaming, bigquery_streaming_v2, logger or file. Every destination accepts these keys under config:
| Key | Type | Default | Description |
|---|---|---|---|
buffer_size | int | 50 | Buffer size in MB before a flush. 0 writes every iteration directly |
buffer_flush_timeout | int | 600 | Seconds after which the buffer is flushed regardless of size. 0 disables the timeout |
max_concurrent_threads | int | 10 | Threads used to write to the destination |
unnest | bool | false | Write records as typed columns instead of a JSON payload. Requires record_schemas |
record_schemas | list | None | Per-destination-table schemas, used with unnest |
destination_id | string | None | Explicit destination identifier (for BigQuery, the table) |
See the BigQuery destination for its keys, and the destinations overview for the others. For local runs:
destination: name: logger config: {}Transforms
Section titled “Transforms”transforms: - label: rename-id python: | data['contact_id'] = data.pop('id')Each entry has a label and a python snippet. See Transforms.
Engine
Section titled “Engine”engine: backend: type: sqlite config: database: bizon schema: public queue: type: python_queue config: max_nb_messages: 1000000 runner: type: thread config: max_workers: 2 log_level: INFO| Key | Default | Description |
|---|---|---|
engine.backend | sqlite, database bizon | Where job state and cursors are stored: postgres, bigquery, sqlite or sqlite_in_memory |
engine.queue | python_queue, unbounded | In-memory queue between producer and consumer |
engine.runner | thread, 2 workers, INFO | How producer and consumer run |
The queue, backend and runner live only under engine:. See Engine Configuration for every key.
Monitoring
Section titled “Monitoring”Datadog is the only monitoring provider. It sends pipeline metrics through a DogStatsD agent.
monitoring: type: datadog config: datadog_agent_host: localhost datadog_agent_port: 8125 tags: team: data| Key | Default | Description |
|---|---|---|
type | Required | datadog |
config.datadog_agent_host | None | Agent hostname |
config.datadog_host_env_var | None | Name of an environment variable holding the agent hostname, e.g. DD_AGENT_HOST |
config.datadog_agent_port | 8125 | DogStatsD port |
config.tags | {} | Tags added to every metric |
enable_tracing | false | Enable tracing |
One of datadog_agent_host or datadog_host_env_var is required. Install the datadog extra: pip install 'bizon[datadog]'.
Alerting
Section titled “Alerting”Slack is the only alerting provider. Log lines at the listed levels are posted to the webhook.
alerting: type: slack log_levels: - ERROR - CRITICAL config: webhook_url: gsm://slack-alerts-webhook| Key | Default | Description |
|---|---|---|
type | Required | slack |
log_levels | [ERROR] | Levels that trigger an alert: DEBUG, INFO, WARNING, ERROR, CRITICAL |
config.webhook_url | Required | Slack incoming webhook URL |
Streams
Section titled “Streams”The streams: block routes several source streams to their own destination tables in one pipeline. It requires source.sync_mode: stream, and each table_id must be project.dataset.table.
streams: - name: orders source: topic: cdc.public.orders destination: table_id: my-project.raw.orders - name: customers source: topic: cdc.public.customers destination: table_id: my-project.raw.customersFor the Kafka source, topics are filled from streams when source.topics is empty. A stream’s destination.record_schema and clustering_keys feed the destination’s record_schemas. See the Kafka source.
Secrets and Environment Variables
Section titled “Secrets and Environment Variables”Any string value can be a reference resolved before the config is validated:
source: name: hubspot stream: contacts authentication: type: api_key params: token: gsm://hubspot-api-token
destination: name: bigquery config: project_id: ${env://GCP_PROJECT_ID} dataset_id: analytics gcs_buffer_bucket: ${env://GCP_PROJECT_ID}-bizon-buffergsm://<secret>reads Google Secret Manager.env://VARreads an environment variable.${gsm://...}and${env://...}work inline, several per value.- A whole value starting with
BIZON_ENV_is replaced by the environment variable of that name.
See Secrets for the full syntax, the secrets: block and bizon secrets check.