forked from z3z1ma/alto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alto.example.yaml
378 lines (368 loc) · 12.1 KB
/
alto.example.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# The "default" key is the base configuration for all environments
# You will see environment-specific configs below this section
default:
# The name of your project
project_name: jaffle_shop
# Bucket to use if you're using a remote backend
bucket: jaffle_shop_staging
# A remote backend
filesystem: gcs
filesystem_kwargs:
project: your-gcp-project
# 👇 This is how you can use environment variables (see dynaconf docs)
token: "@format {env[GOOGLE_APPLICATION_CREDENTIALS]}"
# Evidence.dev (see built in extensions in the repo)
# you can also use your own custom extensions via file path
extensions:
- evidence
# Taps!
taps:
# ASANA (SINGER)
tap-asana:
pip_url: git+https://github.com/z3z1ma/tap-asana.git#egg=tap-asana
load_path: asana
capabilities: [catalog, state, about]
config:
client_id: "..."
redirect_uri: "urn:ietf:wg:oauth:2.0:oob"
refresh_token: "..."
start_date: "2021-01-01T00:00:00Z"
# 👇 Accents let you override target config for a specific tap:target combo
target-bigquery:
denormalized: true
# CONFLUENCE (SINGER)
tap-confluence:
pip_url: git+https://github.com/z3z1ma/tap-confluence.git#egg=tap-confluence
load_path: confluence
capabilities: [catalog, state, about, test]
config:
base_url: https://something.atlassian.net/wiki/rest/api
email: [email protected]
user_agent: "Alto/0.1.0 Singer.io Tap for Confluence"
# GONG (SINGER)
tap-gong:
pip_url: git+https://github.com/z3z1ma/tap-gong.git#egg=tap-gong
load_path: gong
capabilities: [catalog, state, about, test]
config:
access_key: "..."
start_date: "2020-01-01T00:00:00Z"
end_date: "2025-01-01T00:00:00Z"
# MARKETO (SINGER)
tap-marketo:
pip_url: git+https://github.com/z3z1ma/tap-marketo.git#egg=tap-marketo
load_path: marketo
capabilities: [catalog, state, about]
select:
- "!leads.*"
config:
endpoint: https://123-123-123.mktorest.com/rest
client_id: "..."
identity: https://123-123-123.mktorest.com/identity
start_date: "2020-01-01T00:00:00Z"
target-bigquery:
denormalized: true
# SHOWPAD (SINGER)
tap-showpad:
pip_url: git+https://github.com/z3z1ma/tap-showpad.git#egg=tap-showpad
load_path: showpad
capabilities: [catalog, state, about, test]
config:
subdomain: yourdomain
# 👇 A more complex accent
target-bigquery:
batch_size: 500
method: "storage_write_api"
denormalized: true
overwrite: true
# SALESFORCE (SINGER)
tap-salesforce:
pip_url: git+https://github.com/z3z1ma/tap-salesforce.git#egg=tap-salesforce
load_path: salesforce
capabilities: [catalog, state]
select:
- Opportunity.*
- OpportunityLineItem.*
- OpportunityContactRole.*
- OpportunityTeamMember.*
- Account.*
- Contact.*
- Business_Value_Assessment__c.*
- Lead.*
- Campaign.*
- User.*
- UserRole.*
- Harness_Splits__c.*
- Renewal__c.*
- CampaignMember.*
- Module_Experience__c.*
- Product2.*
- Pricebook2.*
- PricebookEntry.*
- Services_Partner__c.*
- Task.*
- Event.*
- skilljar__Course__c.*
- skilljar__Course_Progress__c.*
- skilljar__Student__c.*
- Qualified_Lead__c.*
- "!Opportunity.CoolThing__Status_Info__c"
- "!Account.CoolThing__Status_Info__c"
- "!Contact.CoolThing__Status_Info__c"
- "!Lead.CoolThing__Status_Info__c"
config:
client_id: "..."
start_date: "2005-01-01T00:00:00Z"
quota_percent_total: 95
api_type: BULK
select_fields_by_default: true
target-bigquery:
denormalized: true
# QUALIFIED (SINGER)
tap-qualified:
pip_url: git+https://github.com/z3z1ma/tap-qualified.git#egg=tap-qualified
load_path: qualified
capabilities: [catalog, state, about, test]
# 👇 A more complex accent
target-bigquery:
batch_size: 500
method: "streaming_insert"
generate_view: true
overwrite: true
# GITHUB (AIRBYTE)
tap-github:
pip_url: git+https://github.com/MeltanoLabs/tap-airbyte-wrapper.git#egg=tap_airbyte
executable: tap-airbyte
load_path: github
capabilities: [catalog, state, about, test]
select:
- "*.*"
- "!*.*_url"
- "!collaborators.*"
- "!*comment*.*"
- "!deployments.performed_via_github_app"
metadata:
"*": { replication-method: "INCREMENTAL" }
# 👇 Airbyte connectors work too
config:
airbyte_spec:
image: "airbyte/source-github"
tag: "0.3.9"
airbyte_config:
repository: z3z1ma/alto dbt-labs/dbt-core meltano/meltano
start_date: "2020-01-01T00:00:00Z"
page_size_for_large_streams: 20
# JIRA (AIRBYTE)
tap-jira:
pip_url: git+https://github.com/MeltanoLabs/tap-airbyte-wrapper.git#egg=tap_airbyte
executable: tap-airbyte
load_path: jira
capabilities: [catalog, state, about, test]
select:
- issues.*
- projects.*
- project_types.*
- project_categories.*
- dashboards.*
- pull_requests.*
metadata:
"*": { replication-method: "INCREMENTAL" }
config:
airbyte_spec:
image: "airbyte/source-jira"
tag: "0.3.3"
airbyte_config:
domain: something.atlassian.net
email: [email protected]
start_date: "2021-01-01T00:00:00Z"
enable_experimental_streams: true
# SLACK (AIRBYTE)
tap-slack:
pip_url: git+https://github.com/MeltanoLabs/tap-airbyte-wrapper.git#egg=tap_airbyte
executable: tap-airbyte
load_path: slack
capabilities: [catalog, state, about, test]
metadata:
"*": { replication-method: "INCREMENTAL" }
config:
airbyte_spec:
image: "airbyte/source-slack"
tag: "0.1.19"
airbyte_config:
start_date: "2017-01-01T00:00:00Z"
lookback_window: 7
join_channels: true
channel_filter: []
credentials:
option_title: "API Token Credentials"
# Targets!
targets:
# MAIN TARGET
target-bigquery:
pip_url: z3-target-bigquery==0.6.2
entrypoint: "target_bigquery.target:TargetBigQuery.cli"
config:
method: batch_job
project: segment-warehouse-236622
batch_size: 250000
# 👇 This is how you can use environment variables
credentials_path: "@format {env[GOOGLE_APPLICATION_CREDENTIALS]}"
denormalized: false
generate_view: false
# TEST TARGET
target-jsonl:
pip_url: target-jsonl==0.1.4
# Utilities!
utilities:
dbt-junitxml:
pip_url: dbt-junitxml==0.1.5
datahub:
pip_url: "acryl-datahub[datahub-rest,mongodb,dbt]==0.9.2.4"
config:
sources:
dbt:
manifest_path: "transform/target/manifest.json"
catalog_path: "transform/target/catalog.json"
test_results_path: "transform/target/run_results.json"
target_platform: bigquery
sinks:
datahub-rest:
server: "some_server:8080"
token: dummy
# Dev Environment (these are merged into the "defaults" above) if ALTO_ENV=dev
# 👇 Use submodules in dev mode overwriting the default pip_url with the local path
dev:
load_path: testing
taps:
# Use submodules in dev mode
tap-asana:
pip_url: ./integrations/tap-asana
tap-confluence:
pip_url: ./integrations/tap-confluence
tap-gong:
pip_url: ./integrations/tap-gong
tap-marketo:
pip_url: ./integrations/tap-marketo
tap-showpad:
pip_url: ./integrations/tap-showpad
tap-salesforce:
pip_url: ./integrations/tap-salesforce
tap-qualified:
pip_url: ./integrations/tap-qualified
tap-github:
pip_url: ./integrations/tap-airbyte-wrapper
tap-jira:
pip_url: ./integrations/tap-airbyte-wrapper
tap-slack:
pip_url: ./integrations/tap-airbyte-wrapper
targets:
target-bigquery:
pip_url: ./integrations/target-bigquery
config:
dataset: raw_testing
target-jsonl:
config:
destination_path: "@format output/dev/{this.load_path}"
# CI Environment (these are merged into the "defaults" above) if ALTO_ENV=ci
# (note you can have as many envs as you want named whatever you want)
ci:
load_path: ci
targets:
target-bigquery:
config:
dataset: "@format {env[CI_DATASET]}"
target-jsonl:
config:
# 👇 This is how you can use the current load_path
# this is very important since the load_path is dynamic
# based on the tap and almost always correlates to a delineatation
# in the destination such as a schema in a db or key in a bucket
destination_path: "@format output/ci/{this.load_path}"
# Prod Environment (these are merged into the "defaults" above) if ALTO_ENV=prod
prod:
load_path: prod
taps:
# MONGODB (SINGER) [BASE]
tap-mongodb:
pip_url: z3-tap-mongodb==0.4.3
load_path: mongodb
capabilities: [catalog, state, about, test]
config:
optional_replication_key: true
database_excludes: [admin, config, local, test]
user: some-mongo-user
infer_schema: false
infer_schema_max_docs: 10000
mongo:
retryWrites: true
readPreference: secondary
readPreferenceTags: nodeType:ANALYTICS
w: majority
# MONGODB (SINGER) [PROD1]
tap-mongodb--prod1:
# 👇 This shows inheritance, which is very useful
# it basically means that this tap will inherit all the config from tap-mongodb
inherit_from: tap-mongodb
select:
- yourdb_pipelines.*
- yourdb_environmentGroup.*
- yourdb_deploymentSummary.*
- yourdb_instanceDeploymentInfo.*
- yourdb_services.*
- yourdb_moduleLicenses.*
- yourdb_entityActivity.*
- yourdb_stageExecutionInfo.*
- yourdb_userMembershipsV2.*
- yourdb_userMetadata.*
- yourdb_feedbackForms.*
metadata:
"*":
replication-key: lastModifiedAt
replication-method: INCREMENTAL
yourdb_feedbackForms:
replication-key: createdAt
replication-method: INCREMENTAL
yourdb_moduleLicenses:
replication-key: lastUpdatedAt
replication-method: INCREMENTAL
config:
stream_prefix: ""
# 👇 This shows how you can reference anything in this config using `this`
# "user" is configured in the inherited tap and "password" would be in the alto.secrets.yaml
mongo:
host: >-
@format
mongodb+srv://{this.taps.tap_mongodb.config.user}:{this.taps.tap_mongodb.config.password}@something.mongodb.net/yourdb
# MONGODB (SINGER) [PROD2]
tap-mongodb--prod2:
inherit_from: tap-mongodb
select:
- anotherdb_accounts.*
- anotherdb_users.*
- anotherdb_pipelines.*
- anotherdb_featureFlag.*
- anotherdb_deploymentSummary.*
- anotherdb_serviceInstance.*
- anotherdb_services.*
- anotherdb_licenses.*
metadata:
"*":
replication-key: lastUpdatedAt
replication-method: INCREMENTAL
config:
stream_prefix: ""
mongo:
host: >-
@format
mongodb+srv://{this.taps.tap_mongodb.config.user}:{this.taps.tap_mongodb.config.password}@something.gcp.mongodb.net/anotherdb
targets:
target-bigquery:
config:
# 👇 This is how you can use the current load_path
# notice we do it in prod for BigQuery but not in the other envs
# this is so non prod data is written to a different dataset
dataset: "@format {this.load_path}"
target-jsonl:
config:
# 👇 This is how you can use the current load_path
destination_path: "@format output/prod/{this.load_path}"