|
1 | 1 | # Restructure Kafka connector output files
|
2 | 2 |
|
| 3 | +<!-- TOC --> |
| 4 | +* [Restructure Kafka connector output files](#restructure-kafka-connector-output-files) |
| 5 | + * [Upgrade instructions](#upgrade-instructions) |
| 6 | + * [Docker usage](#docker-usage) |
| 7 | + * [Command line usage](#command-line-usage) |
| 8 | + * [File Format](#file-format) |
| 9 | + * [Compression](#compression) |
| 10 | + * [Redis](#redis) |
| 11 | + * [Source and target](#source-and-target) |
| 12 | + * [Path format](#path-format) |
| 13 | + * [Cleaner](#cleaner) |
| 14 | + * [Service](#service) |
| 15 | + * [Sentry monitoring](#sentry-monitoring) |
| 16 | + * [Local build](#local-build) |
| 17 | + * [Extending the connector](#extending-the-connector) |
| 18 | +<!-- TOC --> |
| 19 | + |
3 | 20 | Data streamed by a Kafka Connector will be converted to a RADAR-base oriented output directory, by organizing it by project, user and collection date.
|
4 | 21 | It supports data written by [RADAR S3 sink connector](https://github.com/RADAR-base/RADAR-S3-Connector) is streamed to files based on topic name only. This package transforms that output to a local directory structure as follows: `projectId/userId/topic/date_hour.csv`. The date and hour are extracted from the `time` field of each record, and is formatted in UTC time.
|
5 | 22 |
|
@@ -225,6 +242,23 @@ The cleaner can also be enabled with the `--cleaner` command-line flag. To run t
|
225 | 242 |
|
226 | 243 | To run the output generator as a service that will regularly poll the source directory, add the `--service` flag and optionally the `--interval` flag to adjust the polling interval or use the corresponding configuration file parameters.
|
227 | 244 |
|
| 245 | +## Sentry monitoring |
| 246 | + |
| 247 | +To enable Sentry monitoring: |
| 248 | + |
| 249 | +1. Set a `SENTRY_DSN` environment variable that points to the desired Sentry DSN. |
| 250 | +2. (Optional) Set the `SENTRY_LOG_LEVEL` environment variable to control the minimum log level of events sent to Sentry. |
| 251 | + The default log level for Sentry is `ERROR`. Possible values are `TRACE`, `DEBUG`, `INFO`, `WARN`, and `ERROR`. |
| 252 | + |
| 253 | +For further configuration of Sentry via environmental variables see [here](https://docs.sentry.io/platforms/java/configuration/#configuration-via-the-runtime-environment). For instance: |
| 254 | + |
| 255 | +``` |
| 256 | +SENTRY_LOG_LEVEL: 'ERROR' |
| 257 | +SENTRY_DSN: 'https://000000000000.ingest.de.sentry.io/000000000000' |
| 258 | +SENTRY_ATTACHSTACKTRACE: true |
| 259 | +SENTRY_STACKTRACE_APP_PACKAGES: io.confluent.connect,org.radarbase.connect.rest |
| 260 | +``` |
| 261 | +
|
228 | 262 | ## Local build
|
229 | 263 |
|
230 | 264 | This package requires at least Java JDK 8. Build the distribution with
|
|
0 commit comments