|Max Mehl e904462ac7||1 week ago|
|LICENSES||10 months ago|
|.drone.yml||10 months ago|
|.gitignore||10 months ago|
|Dockerfile-mariadb||1 week ago|
|Dockerfile-matomo||10 months ago|
|README.md||10 months ago|
|clean-matomo-tables.sh||10 months ago|
|cron.txt||6 months ago|
|cron.txt.license||10 months ago|
|docker-compose.yml||10 months ago|
|get_logs.sh||1 month ago|
|host_options.ini||10 months ago|
|id_rsa.pub||11 months ago|
|id_rsa.pub.license||10 months ago|
|rp_hosts.csv||10 months ago|
This service serves as the single point inside the FSFE to gather web statistics for different domains and evaluate them.
We use the standard Docker image for Matomo but with a few modifications, mostly concerning the automated log import.
The normal mode in
get_logs.sh connects via SSH to download the most
recently rotated Apache log.
The docker mode instead reads the logs of the reverse proxy which is in
front of all our Docker containers that run publicly facing web
services. For all containers defined in
rp_hosts.csv, it scrapes the
logs and imports them.
You can run
get_logs.sh -h to read more about the script’s usage.
Because logs for some sites need special treatment before to be more
useful or require certain import options, there is the file
host_options.ini in which you can define per page a) one shell
command to run over the log, and b) options for Matomo’s
cron.txt file is appended to
/etc/crontab in the matomo
container and controls when imports are scheduled for which pages.
In the matomo-mariadb container, you can run
to clean the stats for one or all sites. This is useful if the
recording went mad during your tests. But remember that this is a
Docker-compose wants to have the following environment variables:
The other variables are rather standard for the FSFE’s usual setup.
All custom scripts and files in this repo are licensed under GPL-3.0-or-later.