Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
315 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Example snowplow-postgres-loader configuration files | ||
|
||
These example hocon files can be provided with the `--config` command line argument. | ||
|
||
* [`config.kinesis.minimal.hocon`](./config.kinesis.minimal.hocon): A minimal config file containing | ||
only the required fields when streaming from AWS kinesis. | ||
* [`config.pubsub.minimal.hocon`](./config.pubsub.minimal.hocon): A minimal config file containing | ||
only the required fields when streaming from GCP PubSub. | ||
* [`config.kinesis.reference.hocon`](./config.kinesis.reference.hocon): A complete config file demonstrating | ||
all relevant fields when streaming from AWS kinesis | ||
* [`config.pubsub.reference.hocon`](./config.pubsub.reference.hocon): A complete config file demonstrating | ||
all relevant fields when streaming from GCP PubSub. | ||
|
||
#### Iglu resolver config | ||
|
||
[`resolver.json`](./resolver.json) is an example iglu resolver file, to be provided with the `--resolver` | ||
command line argument, required in addition to the main hocon file. | ||
|
||
All repositories listed in the resolver must be Iglu Servers version 0.6.0 or above. | ||
|
||
|
||
#### Links | ||
|
||
See [the lightbend config readme](https://github.com/lightbend/config/blob/main/README.md) for examples | ||
of how to provide config parameters using environment variable substitutions or system properties. | ||
|
||
See [the snowplow docs site](https://docs.snowplowanalytics.com/docs/pipeline-components-and-applications/loaders-storage-targets/snowplow-postgres-loader/postgres-loader-configuration-reference/) | ||
for the full snowplow-postgres-loader configuration reference. |
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,18 @@ | ||
# The minimum required config options for loading from kinesis | ||
{ | ||
"input": { | ||
"type": "Kinesis" | ||
"streamName": "enriched-events" | ||
"region": "eu-central-1" | ||
} | ||
|
||
"output" : { | ||
"type": "Postgres" | ||
"host": "localhost" | ||
"database": "snowplow" | ||
"username": "postgres" | ||
"password": ${POSTGRES_PASSWORD} | ||
"schema": "atomic" | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# The minimum required config options for loading from PubSub | ||
{ | ||
"input": { | ||
"type": "PubSub" | ||
"projectId": "my-project" | ||
"subscriptionId": "my-subscription" | ||
} | ||
|
||
"output" : { | ||
"type": "Postgres" | ||
"host": "localhost" | ||
"database": "snowplow" | ||
"username": "postgres" | ||
"password": ${POSTGRES_PASSWORD} | ||
"schema": "atomic" | ||
} | ||
} |
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,33 @@ | ||
{ | ||
"input": { | ||
# Enable the Pubsub source | ||
"type": "PubSub" | ||
# Your GCP project id | ||
"projectId": "my-project" | ||
# Your GCP PubSub subscription id | ||
"subscriptionId": "my-subscription" | ||
} | ||
|
||
"output" : { | ||
"type": "Postgres" | ||
# PostgreSQL host ('localhost' for enabled SSH Tunnel) | ||
"host": "localhost" | ||
# PostgreSQL database port | ||
"port": 5432 | ||
# PostgreSQL database name | ||
"database": "snowplow" | ||
# PostgreSQL user to load data | ||
"username": "postgres" | ||
# PostgreSQL password, either plain text or from an environment variable | ||
"password": "mysecretpassword" | ||
"password": ${?POSTGRES_PASSWORD} | ||
# PostgreSQL database schema | ||
"schema": "atomic" | ||
# JDBC ssl mode | ||
"sslMode": "REQUIRE" | ||
} | ||
|
||
# Kind of data stored in this instance. Either ENRICHED_EVENTS or JSON | ||
"purpose": "ENRICHED_EVENTS" | ||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/api/DB.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/api/SchemaState.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/api/State.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/api/TableState.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/config/DBConfig.scala
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
2 changes: 1 addition & 1 deletion
2
...mmon/src/main/scala/com/snowplowanalytics/snowplow/postgres/logging/Slf4jLogHandler.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/package.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/shredding/Entity.scala
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
2 changes: 1 addition & 1 deletion
2
...es/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/shredding/Shredded.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/shredding/Type.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/shredding/Value.scala
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
2 changes: 1 addition & 1 deletion
2
modules/common/src/main/scala/com/snowplowanalytics/snowplow/postgres/shredding/schema.scala
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
2 changes: 1 addition & 1 deletion
2
.../common/src/main/scala/com/snowplowanalytics/snowplow/postgres/storage/CommentIssue.scala
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
Oops, something went wrong.