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
Remove metrics computation #273
Conversation
(Wait for the metrics pipeline refactoring is complete to ship this) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such nettoyage
(Related to datagouv/data.gouv.fr#915) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
version: '3' | ||
services: | ||
piwik: | ||
image: udata/piwik-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want to keep a piwik/matomo image for testing and dev purposes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opted for total removal because this image is quite a complex hack that was done specifically to debug metric computations (I should know, I did it ;-)). I don't think it's necessary anymore but YMMV.
Yeah! 🚀 ⏲️ |
This is to prepare for the release of a new
udata-metrics
that handles metrics computation from log files, instead of from Matomo.--
Up until this version, metrics were tentatively computed from Matomo for pretty much every object of a udata instance. We found this method to be pretty inaccurate, since Matomo limits the number of records stored to roughly the most visited 1000 for a given "namespace". There's a way around that by using the data from the Live module of Matomo but it's not enabled on our instance for privacy reasons. We also needed to count hits that Matomo could not know of: resources (files) downloads made directly on our server.
Thus, this module now only does three things:
Metrics computation is now handled by https://github.com/opendatateam/udata-metrics and does not use Matomo as a source.
piwik-update-metrics
piwik-current-metrics
piwik-yesterday-metrics