Skip to content

stats: migrate statistics to yearly indices - #2196

Merged
zzacharo merged 1 commit into
CERNDocumentServer:mainfrom
zzacharo:stats-monthly-to-yearly
Oct 26, 2026
Merged

zzacharo merged 1 commit into
CERNDocumentServer:mainfrom
zzacharo:stats-monthly-to-yearly

Conversation

@zzacharo

Copy link
Copy Markdown
Contributor

Switch usage statistics from monthly to yearly OpenSearch indices:

  • bump invenio-stats to 4.3.0 which adds support for a yearly aggregation index_interval
  • add params suffix "%Y" to all STATS_EVENTS (file-download, media-record-view, record-view) so events are written to yearly indices
  • set index_interval "year" on all STATS_AGGREGATIONS

Index templates and aliases are unchanged (their wildcard patterns already match the yearly indices).

Switch usage statistics from monthly to yearly OpenSearch indices:

- bump invenio-stats to 4.3.0 which adds support for a yearly aggregation
  index_interval
- add params suffix "%Y" to all STATS_EVENTS (file-download,
  media-record-view, record-view) so events are written to yearly indices
- set index_interval "year" on all STATS_AGGREGATIONS

Index templates and aliases are unchanged (their wildcard patterns already
match the yearly indices).
@zzacharo
zzacharo merged commit f757ebc into CERNDocumentServer:main Oct 26, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

1 participant