mirror of
https://github.com/FlipsideCrypto/analytics-workflow-templates.git
synced 2026-02-06 11:17:52 +00:00
update documents
This commit is contained in:
parent
5fd6f325e2
commit
9ba4e5da6d
23
.github/docs/README.md
vendored
23
.github/docs/README.md
vendored
@ -68,7 +68,28 @@ Go to `dbt_run_scheduled.yml` file and there are 2 things need to be updated
|
||||
- Here are some commands samples:
|
||||
- Run it in prod: `'["dbt run -m ./models/streamline/streamline__txs_history.sql --target prod"]'`
|
||||
- Run multiple commands (It is going to be in parallel to speed up): `'["dbt run -m ./models/streamline/streamline__txs_history.sql --target prod", "dbt run -m ./models/streamline/streamline__blocks_history.sql --target prod"]'`
|
||||
|
||||
- Including/excluding models and custom dbt run parameters: THe running command is exactly the same as in the dbt run, just find the corresponding DBT commands and wrapped them inside the `'[""]'` is fine, for example, the excluding command can be something like: `'["dbt run -m ./models/streamline/*.sql --exclude"]'`
|
||||
- **Run History**: The run history and log can be found in the action history page:
|
||||
- 
|
||||
### Run it as an ad-hoc job
|
||||
Go to the Action and click the dbt_run_adhoc and type in the command you want to run, please note here that the command you type cannot includ the `'` at beginning and end, it should look something like: `["dbt run -m ./models/streamline/streamline__txs_history.sql --target prod"]`
|
||||

|
||||
|
||||
|
||||
## Set up Datadog for testing alert
|
||||
We are using the Datadog to set up the connection for failed tests. Here is the reference documentation to the connection between datadog, github action and connection to slack channel: https://docs.datadoghq.com/integrations/slack/?tab=slackapplication.
|
||||
|
||||
### Create a Slack Channel for alert
|
||||
Go to Slack and create a channel, named it as `alerts-xxx(your project)-github-actions` and invite the people you want to invite
|
||||
|
||||
### Invite Datadog to the channel
|
||||
Type `/invite @Datadog` in the chat channel to invite datadog to the channel
|
||||
|
||||
### Datadog set up
|
||||
Go to Datadog and click the Monitor to set up the connection:
|
||||
- Step 1: Click the Monitors to add new Monitor, click New Monitor button at the top right
|
||||
- 
|
||||
- Step 2: Set up the configuration for under which conditions you want to send the alerts. by changing the filter type you can filter only to your project repo
|
||||
- 
|
||||
- Step 3: Don't forget to mention your slack channel and the correct people to handle that
|
||||
- 
|
||||
|
||||
BIN
.github/docs/images/datadog-monitor-config.png
vendored
Normal file
BIN
.github/docs/images/datadog-monitor-config.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
BIN
.github/docs/images/datadog-monitor-notify-team.png
vendored
Normal file
BIN
.github/docs/images/datadog-monitor-notify-team.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
.github/docs/images/datadog-monitor.png
vendored
Normal file
BIN
.github/docs/images/datadog-monitor.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
BIN
.github/docs/images/run-history.png
vendored
Normal file
BIN
.github/docs/images/run-history.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 120 KiB |
Loading…
Reference in New Issue
Block a user