/
config.local.reference.hocon
53 lines (49 loc) · 1.74 KB
/
config.local.reference.hocon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"input": {
# Enable the local event source
"type": "Local"
# Path for event source. It can be directory or file.
# If it is directory, all the files under given directory will be read recursively.
# Also, given path can be both absolute path or relative path w.r.t. executable.
"path": "./tmp/example"
}
"output" : {
# Events that pass validation are written to Postgres.
"good": {
"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"
# Maximum number of connections database pool is allowed to reach
# Default is 10
"maxConnections": 10
# Size of the thread pool for blocking database operations
# Default is value of "maxConnections"
"threadPoolSize": 10
}
# Events that fail validation are written to specified stream.
# If this section is removed from config, bad row output will be disabled.
"bad": {
# Enable the local sink as bad row sink
"type": "Local"
# Path for bad row sink.
"path": "./tmp/bad"
# Only used when "type" is "Noop" or missing. How often to log number of bad rows discarded.
"reportPeriod": 10 seconds
}
}
# Kind of data stored in this instance. Either ENRICHED_EVENTS or JSON
"purpose": "ENRICHED_EVENTS"
}