AN-5978/add slack alert (#443)

* add slack alert monitor

* fix external points realtime slack target

* external rt

* tx res

* txs
This commit is contained in:
Jack Forgash 2025-05-14 10:35:29 -06:00 committed by GitHub
parent ccd18beaf3
commit 171d95ebb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 141 additions and 18 deletions

View File

@ -73,3 +73,10 @@ jobs:
- name: push changes to docs
run: |
git push -f --set-upstream origin docs
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -24,7 +24,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -51,3 +51,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -70,3 +70,10 @@ jobs:
with:
name: dbt-logs
path: logs
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -24,7 +24,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -51,3 +51,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -37,7 +37,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -69,4 +69,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -24,7 +24,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -54,3 +54,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -28,7 +28,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -57,3 +57,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [dbt]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -47,4 +47,11 @@ jobs:
- name: Kick off decoded logs history, if there are new ABIs from users
run: |
dbt run-operation run_decoded_logs_history
dbt run-operation run_decoded_logs_history
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}

View File

@ -24,7 +24,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -53,4 +53,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -44,4 +44,10 @@ jobs:
- name: Update scores
run: |
dbt run -m "flow_models,tag:scores"
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -25,7 +25,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -61,3 +61,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -46,3 +46,10 @@ jobs:
- name: Run DBT Realtime
run: |
dbt run -s 1+streamline__get_blocks_realtime --vars '{"STREAMLINE_INVOKE_STREAMS": True, "STREAMLINE_RUN_HISTORY": False}'
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -46,3 +46,10 @@ jobs:
- name: Run DBT Realtime
run: |
dbt run -s 1+streamline__get_collections_realtime --vars '{"STREAMLINE_INVOKE_STREAMS": True, "STREAMLINE_RUN_HISTORY": False}'
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -47,4 +47,11 @@ jobs:
- name: Decode historical logs
run: |
dbt run-operation decoded_logs_history --vars '{"STREAMLINE_INVOKE_STREAMS":True}'
dbt run-operation decoded_logs_history --vars '{"STREAMLINE_INVOKE_STREAMS":True}'
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}

View File

@ -50,4 +50,4 @@ jobs:
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}

View File

@ -50,4 +50,4 @@ jobs:
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}

View File

@ -50,4 +50,4 @@ jobs:
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}

View File

@ -30,7 +30,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -57,3 +57,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -29,7 +29,7 @@ concurrency:
group: ${{ github.workflow }}
jobs:
dbt:
run_dbt_jobs:
runs-on: ubuntu-latest
environment:
name: workflow_prod
@ -56,3 +56,10 @@ jobs:
path: |
logs
target
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -46,3 +46,10 @@ jobs:
- name: Run DBT Realtime
run: |
dbt run -s 1+streamline__get_transaction_results_realtime --vars '{"STREAMLINE_INVOKE_STREAMS": True, "STREAMLINE_RUN_HISTORY": False, "producer_batch_size": 60000, "worker_batch_size": 2000}'
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -46,3 +46,10 @@ jobs:
- name: Run DBT Realtime
run: |
dbt run -s 1+streamline__get_transactions_realtime --vars '{"STREAMLINE_INVOKE_STREAMS": True, "STREAMLINE_RUN_HISTORY": False}'
notify-failure:
needs: [run_dbt_jobs]
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@ -54,4 +54,4 @@ jobs:
if: failure()
uses: ./.github/workflows/slack_notify.yml
secrets:
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}
EVM_SLACK_WEBHOOK_URL: ${{ secrets.EVM_SLACK_WEBHOOK_URL }}