Overview
Use the following configuration settings to specify how the MongoDB Kafka sink connector should sink data to a MongoDB time series collection.
For a list of sink connector configuration settings organized by category, see the guide on Sink Connector Configuration Properties.
Settings
Name | Description | |
|---|---|---|
timeseries.timefield | Type: string | |
timeseries.timefield.auto.convert.date.format | Type: string Accepted Values: A valid | |
timeseries.timefield.auto.convert | Type: boolean If the connector fails to convert the value, it sends the
original value to the time series collection. | |
timeseries.timefield.auto.convert.locale.language.tag | Type: string | |
timeseries.metafield | Type: string | |
timeseries.expire.after.seconds | Type: int | |
timeseries.granularity | Type: string |
For an example on how to convert an existing collection to a time series collection, see the tutorial on how to Migrate an Existing Collection to a Time Series Collection.