Skip to content

Commit 36165f2

Browse files
author
childish-sambino
authored
chore: drop the metrics reporting weekly and Google sheet integration (#159)
Metrics should now only be going to Datadog on a daily basis.
1 parent bb4404a commit 36165f2

7 files changed

+15
-254
lines changed

.github/workflows/metrics_daily_sendgrid.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
name: sendgrid metrics daily
22

3-
# Controls when the action will run.
43
on:
54
# Triggers the workflow every business day at 8AM PT
65
schedule:
76
- cron: '0 15 * * 1-5'
87
# Allows you to run this workflow manually from the Actions tab
98
workflow_dispatch:
109

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210
jobs:
13-
# This workflow contains a single job called "actionItems"
1411
metrics:
15-
# The type of runner that the job will run on
1612
runs-on: ubuntu-latest
1713

18-
# Steps represent a sequence of tasks that will be executed as part of the job
1914
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2115
- uses: actions/checkout@v2
2216
- name: Setup Python
2317
id: setup_python
@@ -31,15 +25,14 @@ jobs:
3125
id: metrics_daily_sendgrid
3226
env:
3327
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
GOOGLE_API_CREDS: ${{ secrets.GOOGLE_API_CREDS }}
3528
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
3629
run: |
37-
source venv/bin/activate && python examples/metrics.py --period daily --org sendgrid
30+
source venv/bin/activate && python examples/metrics.py --org sendgrid
3831
3932
notify-on-failure:
4033
name: Slack notify on failure
4134
if: ${{ failure() }}
42-
needs: [metrics]
35+
needs: [ metrics ]
4336
runs-on: ubuntu-latest
4437
steps:
4538
- uses: rtCamp/action-slack-notify@v2

.github/workflows/metrics_daily_twilio.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
11
name: twilio metrics daily
22

3-
# Controls when the action will run.
43
on:
54
# Triggers the workflow every business day at 9AM PT
65
schedule:
76
- cron: '0 16 * * 1-5'
87
# Allows you to run this workflow manually from the Actions tab
98
workflow_dispatch:
109

11-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210
jobs:
13-
# This workflow contains a single job called "actionItems"
1411
metrics:
15-
# The type of runner that the job will run on
1612
runs-on: ubuntu-latest
1713

18-
# Steps represent a sequence of tasks that will be executed as part of the job
1914
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2115
- uses: actions/checkout@v2
2216
- name: Setup Python
2317
uses: actions/setup-python@v2
@@ -29,15 +23,14 @@ jobs:
2923
id: metrics_daily_twilio
3024
env:
3125
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
GOOGLE_API_CREDS: ${{ secrets.GOOGLE_API_CREDS }}
3326
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
3427
run: |
35-
source venv/bin/activate && python examples/metrics.py --period daily --org twilio
28+
source venv/bin/activate && python examples/metrics.py --org twilio
3629
3730
notify-on-failure:
3831
name: Slack notify on failure
3932
if: ${{ failure() }}
40-
needs: [metrics]
33+
needs: [ metrics ]
4134
runs-on: ubuntu-latest
4235
steps:
4336
- uses: rtCamp/action-slack-notify@v2

.github/workflows/metrics_weekly_sendgrid.yml

-53
This file was deleted.

.github/workflows/metrics_weekly_twilio.yml

-56
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ source venv/bin/activate
2929

3030
```bash
3131
python ./examples/action_items.py
32-
python ./examples/metrics.py daily
33-
python ./examples/metrics.py weekly
32+
python ./examples/metrics.py
33+
python ./examples/metrics.py --org twilio
3434
```
3535
## Usage - Updating DataDog Monitors through Terraform
3636
1. Open a PR that includes any relevant changes to `datadog_monitors.tf` located in the `terraform` directory

examples/common/google_api.py

-59
This file was deleted.

0 commit comments

Comments
 (0)