Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): refactor source and sink docs #3031

Merged
merged 40 commits into from
Aug 8, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0b2f343
Begin reorg
kevinhu Jul 27, 2021
0916b75
Add links
kevinhu Jul 27, 2021
2bb1d79
Fix link
kevinhu Jul 27, 2021
487a2b6
Fix glue link
kevinhu Jul 27, 2021
a24dc59
Add module installs to each page
kevinhu Jul 27, 2021
5c6a19a
Consistency
kevinhu Jul 27, 2021
2382c30
Standardize sqlalchemy pattern
kevinhu Jul 27, 2021
34fbccf
Add missing sql options
kevinhu Jul 27, 2021
9808735
More consistent recipes
kevinhu Jul 27, 2021
9af3cab
Finish consistency checks for recipes
kevinhu Jul 27, 2021
9dc365f
As above
kevinhu Jul 28, 2021
9afa393
Typo fixes
kevinhu Jul 28, 2021
c6388cb
More typo fixes
kevinhu Jul 28, 2021
8588cb9
More consistency fixes
kevinhu Jul 28, 2021
63691dd
Fix broken links
kevinhu Jul 28, 2021
f186b49
Merge branch 'master' of github.com:kevinhu/datahub into reorganize-docs
kevinhu Jul 28, 2021
410b9b8
Merge
kevinhu Aug 2, 2021
59623e4
Merge
kevinhu Aug 2, 2021
eef2a62
Note on allow/deny
kevinhu Aug 2, 2021
bee872f
Add questions section
kevinhu Aug 2, 2021
124c0a3
Merge branch 'master' of github.com:kevinhu/datahub into reorganize-docs
kevinhu Aug 2, 2021
6ffd8a1
Fix inconsistencies
kevinhu Aug 3, 2021
ba3cb36
Merge branch 'master' of github.com:kevinhu/datahub into reorganize-docs
kevinhu Aug 3, 2021
8a4de6d
Begin separation of quickstart and config details
kevinhu Aug 3, 2021
8bf27a5
Write generic sqlalchemy options
kevinhu Aug 3, 2021
3dbb736
Up to looker
kevinhu Aug 3, 2021
186235f
Add all config vars
kevinhu Aug 4, 2021
35ecc45
Add source config docs
kevinhu Aug 4, 2021
73a42fd
Clean up quickstart configs
kevinhu Aug 4, 2021
b1bf7e7
Update usage docs
kevinhu Aug 4, 2021
5933f1f
Formatting
kevinhu Aug 4, 2021
bbbe612
Revise capabilities
kevinhu Aug 4, 2021
30f9e6f
Merge branch 'master' of github.com:kevinhu/datahub into reorganize-docs
kevinhu Aug 4, 2021
9cf1acb
Merge
kevinhu Aug 6, 2021
aa608b6
PR fixes
kevinhu Aug 6, 2021
f429324
Add link back to main readme
kevinhu Aug 6, 2021
5fbac7b
Add link back to recipe section
kevinhu Aug 6, 2021
387137f
Add sink config placeholder
kevinhu Aug 6, 2021
34d6c57
Categories
kevinhu Aug 6, 2021
625baa0
Remove sink compatibility
kevinhu Aug 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update usage docs
  • Loading branch information
kevinhu committed Aug 4, 2021
commit b1bf7e707d0cb79f4d79bb5ce007c6142c303335
39 changes: 14 additions & 25 deletions metadata-ingestion/source_docs/bigquery.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,44 +81,33 @@ Check out the following recipe to get started with ingestion! See [below](#confi
source:
type: bigquery-usage
config:
projects: # optional - can autodetect a single project from the environment
projects:
- project_id_1
- project_id_2
options:
# See https://googleapis.dev/python/logging/latest/client.html for details.
credentials: ~ # optional - see docs

# Common usage stats options
bucket_duration: "DAY"
kevinhu marked this conversation as resolved.
Show resolved Hide resolved
start_time: ~ # defaults to the last full day in UTC (or hour)
end_time: ~ # defaults to the last full day in UTC (or hour)

top_n_queries: 10 # number of queries to save for each table
top_n_queries: 10

env: PROD

# Additional options to pass to google.cloud.logging_v2.client.Client
extra_client_options:

# To account for the possibility that the query event arrives after
# the read event in the audit logs, we wait for at least `query_log_delay`
# additional events to be processed before attempting to resolve BigQuery
# job information from the logs. If `query_log_delay` is None, it gets treated
# as an unlimited delay, which prioritizes correctness at the expense of memory usage.
query_log_delay:

# Correction to pad start_time and end_time with.
# For handling the case where the read happens within our time range but the query
# completion event is delayed and happens after the configured end time.
max_query_duration:
```

## Config details

Note that a `.` is used to denote nested fields in the YAML recipe.

| Field | Required | Default | Description |
| ----- | -------- | ------- | ----------- |
| Field | Required | Default | Description |
| ---------------------- | -------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `projects` | | | |
| `extra_client_options` | | | |
| `env` | | `"PROD"` | Environment to use in namespace when constructing URNs. |
| `bucket_duration` | | `"DAY"` | Duration to bucket usage events by. Can be `"DAY"` or `"HOUR"`. |
| `start_time` | | Last full day in UTC (or hour, depending on `bucket_duration`) | Earliest date of usage logs to consider. |
| `end_time` | | Last full day in UTC (or hour, depending on `bucket_duration`) | Latest date of usage logs to consider. |
| `top_n_queries` | | `10` | Number of top queries to save to each table. |
| `extra_client_options` | | | Additional options to pass to `google.cloud.logging_v2.client.Client`. |
| `query_log_deplay` | | | To account for the possibility that the query event arrives after the read event in the audit logs, we wait for at least `query_log_delay` additional events to be processed before attempting to resolve BigQuery job information from the logs. If `query_log_delay` is `None`, it gets treated as an unlimited delay, which prioritizes correctness at the expense of memory usage. |
| `max_query_duration` | | `15` | Correction to pad `start_time` and `end_time` with. For handling the case where the read happens within our time range but the query completion event is delayed and happens after the configured end time. |

## Questions

Expand Down
23 changes: 16 additions & 7 deletions metadata-ingestion/source_docs/snowflake.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,31 @@ source:
username: user
password: pass
host_port: account_name
role: ACCOUNTADMIN
env: PROD

warehouse: "COMPUTE_WH"
role: "sysadmin"

bucket_duration: "DAY"
start_time: ~ # defaults to the last full day in UTC (or hour)
end_time: ~ # defaults to the last full day in UTC (or hour)

top_n_queries: 10 # number of queries to save for each table
top_n_queries: 10
```

## Config details

Note that a `.` is used to denote nested fields in the YAML recipe.

| Field | Required | Default | Description |
| ----- | -------- | ------- | ----------- |
| Field | Required | Default | Description |
| ----------------- | -------- | -------------------------------------------------------------- | --------------------------------------------------------------- |
| `username` | | | Snowflake username. |
| `password` | | | Snowflake password. |
| `host_port` | ✅ | | Snowflake host URL. |
| `warehouse` | | | Snowflake warehouse. |
| `role` | | | Snowflake role. |
| `env` | | `"PROD"` | Environment to use in namespace when constructing URNs. |
| `bucket_duration` | | `"DAY"` | Duration to bucket usage events by. Can be `"DAY"` or `"HOUR"`. |
| `start_time` | | Last full day in UTC (or hour, depending on `bucket_duration`) | Earliest date of usage logs to consider. |
| `end_time` | | Last full day in UTC (or hour, depending on `bucket_duration`) | Latest date of usage logs to consider. |
| `top_n_queries` | | `10` | Number of top queries to save to each table. |

## Questions

Expand Down