Skip to content

Commit

Permalink
Have Snowplow Mini run the basic enrichments as standard (closes #64)
Browse files Browse the repository at this point in the history
  • Loading branch information
aldemirenes committed Jul 6, 2017
1 parent 3ba7406 commit 6dcec45
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 1 deletion.
20 changes: 20 additions & 0 deletions resources/configs/enrichments/campaign_attribution.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/campaign_attribution/jsonschema/1-0-1",

"data": {

"name": "campaign_attribution",
"vendor": "com.snowplowanalytics.snowplow",
"enabled": true,
"parameters": {
"mapping": "static",
"fields": {
"mktMedium": ["utm_medium"],
"mktSource": ["utm_source"],
"mktTerm": ["utm_term"],
"mktContent": ["utm_content"],
"mktCampaign": ["utm_campaign"]
}
}
}
}
14 changes: 14 additions & 0 deletions resources/configs/enrichments/event_fingerprint_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/event_fingerprint_config/jsonschema/1-0-0",

"data": {

"name": "event_fingerprint_config",
"vendor": "com.snowplowanalytics.snowplow",
"enabled": true,
"parameters": {
"excludeParameters": ["eid", "stm"],
"hashAlgorithm": "MD5"
}
}
}
16 changes: 16 additions & 0 deletions resources/configs/enrichments/ip_lookups.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/ip_lookups/jsonschema/1-0-0",

"data": {

"name": "ip_lookups",
"vendor": "com.snowplowanalytics.snowplow",
"enabled": true,
"parameters": {
"geo": {
"database": "GeoLiteCity.dat",
"uri": "http://snowplow-hosted-assets.s3.amazonaws.com/third-party/maxmind"
}
}
}
}
16 changes: 16 additions & 0 deletions resources/configs/enrichments/referer_parser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/referer_parser/jsonschema/1-0-0",

"data": {

"name": "referer_parser",
"vendor": "com.snowplowanalytics.snowplow",
"enabled": true,
"parameters": {
"internalDomains": [
"subdomain1.mysite.com",
"subdomain2.mysite.com"
]
}
}
}
9 changes: 9 additions & 0 deletions resources/configs/enrichments/ua_parser_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/ua_parser_config/jsonschema/1-0-0",
"data": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "ua_parser_config",
"enabled": true,
"parameters": {}
}
}
9 changes: 9 additions & 0 deletions resources/configs/enrichments/user_agent_utils_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"schema": "iglu:com.snowplowanalytics.snowplow/user_agent_utils_config/jsonschema/1-0-0",
"data": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "user_agent_utils_config",
"enabled": true,
"parameters": {}
}
}
2 changes: 1 addition & 1 deletion resources/init/snowplow_stream_enrich_0.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### END INIT INFO

dir="/home/ubuntu/snowplow/bin/"
cmd="./snowplow-stream-enrich-0.10.0 --config /home/ubuntu/snowplow/configs/snowplow-stream-enrich.hocon --resolver file:/home/ubuntu/snowplow/configs/iglu-resolver.json"
cmd="./snowplow-stream-enrich-0.10.0 --config /home/ubuntu/snowplow/configs/snowplow-stream-enrich.hocon --resolver file:/home/ubuntu/snowplow/configs/iglu-resolver.json --enrichments file:/home/ubuntu/snowplow/configs/enrichments"
user="ubuntu"

name="snowplow_stream_enrich_0.10.0"
Expand Down

0 comments on commit 6dcec45

Please sign in to comment.