Capacity Trend & Forecast #47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Capacity Trend & Forecast | |
| on: | |
| schedule: | |
| - cron: "0 10 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| capacity-trend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y jq python3 | |
| - name: Run Rollup | |
| run: | | |
| bash cloud-automation/capacity-management/performance-analysis/capacity-reports/org-wide-capacity-rollup/multi-cloud-capacity-rollup.sh \ | |
| cloud-automation/capacity-management/performance-analysis/capacity-reports/outputs \ | |
| > rollup.json | |
| - name: Run Trend Analysis | |
| run: | | |
| ROLLUP_INPUT_DIR=cloud-automation/capacity-management/performance-analysis/capacity-reports/org-wide-capacity-rollup/history \ | |
| python3 cloud-automation/capacity-management/performance-analysis/capacity-reports/org-wide-capacity-rollup/capacity-trend-analysis.py \ | |
| > trend.json | |
| - name: Run Forecast | |
| run: | | |
| ROLLUP_INPUT_DIR=cloud-automation/capacity-management/performance-analysis/capacity-reports/org-wide-capacity-rollup/history \ | |
| FORECAST_INTERVALS=12 \ | |
| python3 cloud-automation/capacity-management/performance-analysis/capacity-reports/org-wide-capacity-rollup/capacity-trend-forecast.py \ | |
| > forecast.json | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: capacity-trend-results | |
| path: | | |
| rollup.json | |
| trend.json | |
| forecast.json |