mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
Comparing Batch and Ad-hoc collectors there is no big difference, just we need scrape for longer duration to catch retries. Dashboard with comparison: https://neonprod.grafana.net/d/be3pjm7c9ne2oe/compare-ad-hoc-and-batch?orgId=1&from=1731345095814&to=1731946295814 I should anyway raise support case with Github relating to that, meanwhile that should be working solution and should save us some cost, so it worths to switch to Batch now. Ref: https://github.com/neondatabase/cloud/issues/17503
54 lines
1.6 KiB
YAML
54 lines
1.6 KiB
YAML
name: Report Workflow Stats Batch
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '*/15 * * * *'
|
|
- cron: '25 0 * * *'
|
|
- cron: '25 1 * * 6'
|
|
|
|
jobs:
|
|
gh-workflow-stats-batch-2h:
|
|
name: GitHub Workflow Stats Batch 2 hours
|
|
if: github.event.schedule == '*/15 * * * *'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Export Workflow Run for the past 2 hours
|
|
uses: neondatabase/gh-workflow-stats-action@v0.2.1
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '2h'
|
|
|
|
gh-workflow-stats-batch-48h:
|
|
name: GitHub Workflow Stats Batch 48 hours
|
|
if: github.event.schedule == '25 0 * * *'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Export Workflow Run for the past 48 hours
|
|
uses: neondatabase/gh-workflow-stats-action@v0.2.1
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '48h'
|
|
|
|
gh-workflow-stats-batch-30d:
|
|
name: GitHub Workflow Stats Batch 30 days
|
|
if: github.event.schedule == '25 1 * * 6'
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
actions: read
|
|
steps:
|
|
- name: Export Workflow Run for the past 30 days
|
|
uses: neondatabase/gh-workflow-stats-action@v0.2.1
|
|
with:
|
|
db_uri: ${{ secrets.GH_REPORT_STATS_DB_RW_CONNSTR }}
|
|
db_table: "gh_workflow_stats_neon"
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
duration: '720h'
|