Repository navigation
feat: add GitHub collector for AI readiness metrics #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
80479ec
feat: add GitHub collector for AI readiness metrics
Fsero 73a7420
fixup! feat: add GitHub collector for AI readiness metrics
Fsero db585df
fixup! fixup! feat: add GitHub collector for AI readiness metrics
Fsero 1910f07
fixup! fixup! fixup! feat: add GitHub collector for AI readiness metrics
Fsero c0a4297
fixup! fixup! fixup! fixup! feat: add GitHub collector for AI readine…
Fsero 71667ac
fixup! fixup! fixup! fixup! fixup! feat: add GitHub collector for AI …
Fsero 886c42a
fixup! fixup! fixup! fixup! fixup! fixup! feat: add GitHub collector …
Fsero 992657d
fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: add GitHub col…
Fsero 5326503
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: add Git…
Fsero 2b6a26b
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! feat: …
Fsero 00f0cc3
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Fsero 8de3665
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup!…
Fsero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,62 @@ | ||
| # Configuration for AI Engineering Metrics pipeline | ||
| # This file follows the current schema where everything is organized into pipelines | ||
| # AI Engineering Metrics Collector Configuration Example | ||
| # This example shows how to collect Claude usage metrics and AI readiness metrics | ||
|
|
||
| pipelines: | ||
| - # Pipeline 1: Main AI metrics collection pipeline | ||
| # Pipeline 1: Claude Usage Metrics with User Filtering | ||
| - users: | ||
| type: getdx | ||
| config: | ||
| api_key: ${env.GETDX_WEB_API_KEY} | ||
| collectors: | ||
| - name: bedrock-s3 # of the tool as it appears in GetDX | ||
| - name: claude | ||
| type: bedrock | ||
| enabled: true | ||
| config: | ||
| bucket: my-bedrock-logs-bucket | ||
| prefix: bedrock-logs/ | ||
| # local_path: /tmp/bedrock-logs # Optional: local directory for temporary file storage | ||
| prefix: AWSLogs/123456789012/BedrockModelInvocationLogs/us-east-1/ | ||
| costs: | ||
| region: us-east-1 | ||
| discount: 0% | ||
| user_mapping: | ||
| type: regex | ||
| config: | ||
| regex: "arn:aws:sts::123456789012:assumed-role/MyRole/(.*@company.com)" | ||
| replacement: "$1" | ||
| publishers: | ||
| - type: getdx | ||
| config: | ||
| api_base_url: https://api.getdx.com | ||
| api_token: ${env.GETDX_API_KEY} | ||
| tools: | ||
| - claude | ||
|
|
||
| # Pipeline 2: AI Readiness Metrics (no user filtering needed) | ||
| - collectors: | ||
| - name: github-ai-readiness | ||
| type: github | ||
| enabled: true | ||
| config: | ||
| app_id: ${env.GITHUB_APP_ID} | ||
| private_key: ${env.GITHUB_PRIVATE_KEY} | ||
| scan_all_organizations: true | ||
| organization_filter: | ||
| - "my-org" | ||
| user_mapping: | ||
| type: passthrough | ||
| config: {} | ||
| # Alternative user mapping options: | ||
| # type: static | ||
| # config: | ||
| # session-123: user@example.com | ||
| # session-456: another@example.com | ||
| # type: regex | ||
| # config: | ||
| # regex: 'session-(.+)' | ||
| # replacement: 'user-$1@example.com' | ||
|
|
||
| publishers: | ||
| - name: getdx | ||
| type: getdx | ||
| enabled: true | ||
| - type: getdx-ai-enabled-repos | ||
| config: | ||
| api_url: https://api.getdx.com/v1/metrics | ||
| api_key: ${GETDX_API_KEY} | ||
| api_base_url: https://api.getdx.com | ||
| api_token: ${env.GETDX_API_KEY} | ||
| tools: | ||
| - claude | ||
|
|
||
| # User filtering configuration | ||
| users: | ||
| type: static | ||
| config: | ||
| user_ids: | ||
| - user@example.com # Include specific users | ||
| - admin@example.com | ||
| - service-account-123 | ||
| # Add more user IDs as needed | ||
| # Alternatively, use GetDX API to get the list of users | ||
| # type: getdx | ||
| # config: | ||
| # api_key: ${GETDX_WEB_API_KEY} | ||
| - ai-readiness | ||
| - ai-readiness-summary | ||
|
|
||
| # Alternative user filtering options for Pipeline 1: | ||
| # users: | ||
| # type: static | ||
| # config: | ||
| # user_ids: | ||
| # - user1@company.com | ||
| # - user2@company.com | ||
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe I'm wrong but I don't see ai_indicators