Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-8950

Expose number of image downloads

XMLWordPrintable

    • Icon: Feature Feature
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • None
    • quay, quay.io
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected

      This enhancement request is to have the number of unique downloads based on the origination email address or IP address.
      At a minimum we need one aggregate download metric like how Dockerhub gives. Below is an example of how the DockerHub API for this can be leverage:
       
      for repository in repositories:
                      # Make the API request to get the repository information
              api_url = f'https://hub.docker.com/v2/repositories/{repository}/'
              response = requests.get(api_url)
       
              # Check if the request was successful (status code 200)
              if response.status_code == 200:
                  data = response.json()
                  pull_count = data['pull_count']
                  print(f"DH pulls for {repository}: {pull_count}")
                  writer.writerow([today, "DockerHub",f"\\{repository}", f"\\{pull_count}"])
                             
              else:
                  print(f"Failed to retrieve pull information for {repository}.")
       
      For such a metric to reflect customer downloads we need a way to filter out Dell's own dev/test and CI/CD pulls.

              DanielMesser Daniel Messer
              seanmerrow Sean Merrow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: