adoptium / dash.adoptium.net

Download tracking dashboard
https://dash.adoptium.net/
8 stars 7 forks source link

Track download metrics for JFrog artifacts #579

Open jiekang opened 2 months ago

jiekang commented 2 months ago

JFrog collects download data per artifact that is visible in their web UI:

For example: https://packages.adoptium.net/ui/repos/tree/General/rpm/fedora/38/x86_64/Packages/temurin-11-jdk-11.0.20.1.0.1-1.x86_64.rpm

It would be nice to have this data collected and collated together as part of the Adoptium dashboard.

tellison commented 2 months ago

I will note that we have introduced a Fastly CDN in front of JFrog to take some of the load off, so we need to include stats from that too to be realistic.

I was looking at the Fastly API to see if we can gather package download numbers from there. The stats look quite generic and not oriented to the actual artefacts, which may be a function of the fact they just cache http responses without knowing much about the underlying files etc. So not sure what we could usefully use to gather a ‘daily download by JDK version etc’ statistic like we do for github and docker.

However, it may be that we present some other interesting trends, such as the number of requests and the number of bytes moved, which is a 'proxy' for the actual number of packages. Here's a screen grab for the CDN activity in March. As you can see it is shading 95% of calls from going through to JFrog.

Screenshot 2024-04-18 at 09 21 50
smlambert commented 1 month ago

https://jfrog.com/help/r/jfrog-rest-apis/get-the-open-metrics-for-artifactory