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

Public nodejs.org download metrics outdated? #3972

Open
Lehoczky opened this issue Nov 27, 2024 · 1 comment
Open

Public nodejs.org download metrics outdated? #3972

Lehoczky opened this issue Nov 27, 2024 · 1 comment

Comments

@Lehoczky
Copy link

Lehoczky commented Nov 27, 2024

Hi there 👋

I'm coming from https://nodejs.org/metrics/, where navigating to the "current" metrics page seems to only show data until 2024-05-02. Is there a place where more up to data is available?

There is also a link to setup/www/tools/metrics at the end of the page for the scripts used to generate the data, which has been moved since, and I believe the correct URL would be https://github.com/nodejs/build/tree/main/ansible/www-standalone/tools/metrics, but I'm not 100% sure.

I've seen the following discussion, but the issue still seems to be present: nodejs/nodejs.org#6822

@richardlau
Copy link
Member

The data is up to date, but the index page isn't -- my suspicion is that the data the index generator gets is paginated and the generator doesn't account for it. https://github.com/mcollina/nodejs-download-stats/ (the source for https://nodedownloads.nodeland.dev/), for example, is showing up to date metrics by looping over https://storage.googleapis.com/access-logs-summaries-nodejs/ until the NextMarker field in the returned data is empty: https://github.com/mcollina/nodejs-download-stats/blob/c883fc08859dd95b9db380edb86ae02c49f9b290/routes/metrics.js#L46-L71

https://github.com/nodejs/build/tree/main/ansible/www-standalone/tools/metrics is outdated. The current metrics generated using the code in https://github.com/nodejs/build/tree/main/ansible/roles/metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants