Warning
Proof of Concept Only
- Clone the repository:
git clone https://github.com/Siddhant-K-code/gitpod-runner-analyzer
cd gitpod-runner-analyzer
- Install dependencies:
npm install
- Set up environment variables:
export GITPOD_PAT="your_personal_access_token"
export GITPOD_ORG_ID="your_organization_id"
- Run the analyzer:
npx ts-node resource-analyzer.ts
The tool generates a Markdown report (gitpod-resource-report.md
) containing:
- Runner inventory
- Environment distribution
- Basic cost estimation
- System details
- Usage recommendations
import { generateResourceReport } from './resource-analyzer';
async function main() {
const pat = process.env.GITPOD_PAT!;
const orgId = process.env.GITPOD_ORG_ID!;
await generateResourceReport(pat, orgId);
}
- Cost estimates are approximations
- Limited to current API capabilities
- May not capture all resource types
- No historical data analysis
Note
This tool is currently in experimental stage and is not officially supported by Gitpod. APIs and functionality may change without notice.