biigle / kpis
BIIGLE module to collect key performance indicators.
v1.3.0
2026-08-04 12:38 UTC
README
A BIIGLE module to collect key performance indicators.
Installation
- Run
composer require biigle/kpis. - Add the
KPIS_TOKENvariable to the.envfile. The value is an authentication token (e.g. generated withpwgen 30 1). - Add the
KPIS_SCORPION_TOKENvariable to the.envfile. The value is the authentication token for the Scorpion API to submit KPIs to. Optionally, setKPIS_SCORPION_SERVICEif the service name should differ from the defaultBIIGLE. - Copy the Bash script to your webserver, configure the authentication token (and maybe the base URL) inside the script and set up a daily cron job that executes the script with the gzipped webserver logfile of the previous day as argument. Example:
30 0 * * * /path/to/countRequests.sh /path/to/logfiles/$(/bin/date -Idate --date "1 day ago").sql.gz > /path/to/countRequests.log 2>&1 - Run the migrations.
Developing
Take a look at the development guide of the core repository to get started with the development setup.
Want to develop a new module? Head over to the biigle/module template repository.
Contributions and bug reports
Contributions to BIIGLE are always welcome. Check out the contribution guide to get started.