Stream: troubleshooting

Topic: Metrics API files/monthly vs. number of files in UI


view this post on Zulip Laura Huis in 't Veld (Jan 21 2025 at 09:58):

Hello all,

I have a question about this API endpoint: /api/info/metrics/files/monthly
The Guide mentions for this API: 'monthly cumulative timeseries from first date of first entry to now' and 'eleased means only currently released dataset versions (not unpublished or DEACCESSIONED versions)'.

If i retrieve metrics from this endpoint for DataverseNL, I get as result a csv, with last entry:
2025-01 545,035

However, if I look up the total number of files in the UI, (by going to the root and using the facets to filter on published files only), I get a result of 220,553

How can this difference be explained?

Best wishes, Laura

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 16:46):

Wow, that's a big difference.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 16:46):

It reminds me of this issue: Count of all file downloads from metrics API doesn't always match what's in UI (on old homepage metrics bar)ย #4970

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 16:47):

But that was a while ago.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 16:47):

@Laura Huis in 't Veld would you mind asking at https://groups.google.com/g/dataverse-community ? I feel like Jim might know what's going on but he isn't here on Zulip.

view this post on Zulip Sherry Lake (Jan 21 2025 at 17:32):

There is a thread from early this month:
https://groups.google.com/g/dataverse-community/c/I_xLQ-s26DI/m/cna6kvwCBAAJ

Jim says UI is approximation.

And another from earlier last year:
https://groups.google.com/g/dataverse-community/c/CVj5nG3EIhA/m/WcWzX-YFBQAJ

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 18:37):

Thanks, Sherry, https://github.com/IQSS/dataverse/pull/8972 is the pull request from Jim that I was thinking of.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 21 2025 at 18:38):

The thing about Laura's numbers is that they are vastly different.

view this post on Zulip Laura Huis in 't Veld (Jan 23 2025 at 09:56):

Here is the link to the topic I started on the forum:
https://groups.google.com/g/dataverse-community/c/WpCwfh1X6sM/m/q_HNKEx4BAAJ

view this post on Zulip Philip Durbin ๐Ÿš€ (Jan 23 2025 at 13:20):

Thanks, Laura!


Last updated: Oct 30 2025 at 05:14 UTC