Skip to content
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

script to gather GitHub API metrics for Malcolm downloads #594

Closed
mmguero opened this issue Oct 11, 2024 · 1 comment
Closed

script to gather GitHub API metrics for Malcolm downloads #594

mmguero opened this issue Oct 11, 2024 · 1 comment
Assignees
Labels
code Issues for code cleanup/refactoring/technical debt release Related to creation/packaging of Malcolm releases
Milestone

Comments

@mmguero
Copy link
Collaborator

mmguero commented Oct 11, 2024

Create a script to gather GitHub API metrics for Malcolm downloads.

  • artifact downloads
  • container image pulls
  • ???
@mmguero mmguero added release Related to creation/packaging of Malcolm releases code Issues for code cleanup/refactoring/technical debt labels Oct 11, 2024
@mmguero mmguero added this to the v24.10.1 milestone Oct 11, 2024
@mmguero mmguero self-assigned this Oct 11, 2024
@mmguero
Copy link
Collaborator Author

mmguero commented Oct 14, 2024

The convenience script github-download-counts is now hosted on PyPi.

Installation:

  • python3 -m pip install -U github-download-counts

Usage (see readme).

Example:

$ github-download-counts -r idaholab/Malcolm cisagov/Malcolm -a '^\w+.+\.iso\.01$' '^malcolm_.*\.tar\.gz$' --release 'v24\.09\.0' --image '^malcolm/nginx-proxy$' --image-tag '^24\.09\.0' 
{
  "release_assets": {
    "idaholab/^\\w+.+\\.iso\\.01$": 106,
    "idaholab/^malcolm_.*\\.tar\\.gz$": 22,
    "cisagov/^\\w+.+\\.iso\\.01$": 68,
    "cisagov/^malcolm_.*\\.tar\\.gz$": 20,
    "total": 216
  },
  "image_pulls": {
    "idaholab/malcolm/nginx-proxy:24.09.0": 239,
    "idaholab/malcolm/nginx-proxy:24.09.0-arm64": 9,
    "total": 248
  }
}

@mmguero mmguero closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Issues for code cleanup/refactoring/technical debt release Related to creation/packaging of Malcolm releases
Projects
Status: Done
Development

No branches or pull requests

1 participant