-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix substreaming to per table level (#51)
* Fix streaming per table * Update documentation for compaction and streaming * Readme for pubsub * Change Table interface, configure empty streams for nodes nad log * Refactor so timeseries can be casted as storage streamer Co-authored-by: tiewkeehui <[email protected]>
- Loading branch information
Showing
21 changed files
with
173 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Azure Blob Storage | ||
|
||
This sink implements Azure Blob Storage protocol. It can can be enabled by adding the following configuration in the `storage` section: | ||
This sink implements Azure Blob Storage protocol. It can can be enabled by adding the following configuration in the `tables` section: | ||
|
||
```yaml | ||
storage: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
azure: # sink to use | ||
container: "container-id-1" # the container ID | ||
prefix: "" # (optional) prefix to add | ||
tables: | ||
eventlog: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
azure: # sink to use | ||
container: "container-id-1" # the container ID | ||
prefix: "" # (optional) prefix to add | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# Google Big Query | ||
|
||
This sink implements Google Big Query protocol. It can can be enabled by adding the following configuration in the `storage` section: | ||
This sink implements Google Big Query protocol. It can can be enabled by adding the following configuration in the `tables` section: | ||
|
||
```yaml | ||
storage: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
bigquery: # sink to use | ||
project: "project-id-1" # project ID | ||
dataset: "mydataset" # big query dataset ID | ||
table: "mytable" # big query table ID | ||
tables: | ||
eventlog: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
bigquery: # sink to use | ||
project: "project-id-1" # project ID | ||
dataset: "mydataset" # big query dataset ID | ||
table: "mytable" # big query table ID | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# Google Cloud Storage | ||
|
||
This sink supports writing to the local file system. It can can be enabled by adding the following configuration in the `storage` section: | ||
This sink supports writing to the local file system. It can can be enabled by adding the following configuration in the `tables` section: | ||
|
||
```yaml | ||
storage: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
file: # sink to use | ||
dir: "/output" # the output directory | ||
tables: | ||
eventlog: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
file: # sink to use | ||
dir: "/output" # the output directory | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
# Google Cloud Storage | ||
|
||
This sink implements Google Cloud Storage protocol. It can can be enabled by adding the following configuration in the `storage` section: | ||
This sink implements Google Cloud Storage protocol. It can can be enabled by adding the following configuration in the `tables` section: | ||
|
||
```yaml | ||
storage: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
gcs: # sink to use | ||
bucket: "bucket" # the bucket to use | ||
prefix: "dir1/" # (optional) prefix to add | ||
tables: | ||
eventlog: | ||
compact: # enable compaction | ||
interval: 60 # compact every 60 seconds | ||
nameFunc: "s3://bucket/namefunc.lua" # file name function | ||
gcs: # sink to use | ||
bucket: "bucket" # the bucket to use | ||
prefix: "dir1/" # (optional) prefix to add | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Google Pub/Sub sink | ||
|
||
This sink implements Google Pub/Sub protocol. It only works for streams, not for compaction like the other sinks. It can can be enabled by adding the following configuration in the `tables` section: | ||
|
||
```yaml | ||
tables: | ||
eventlog: | ||
streams: | ||
- pubsub: | ||
project: my-gcp-project | ||
topic: my-topic | ||
filter: "gcs://my-bucket/my-function.lua" | ||
encoder: json | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.