Exports Moodle Application Metrics:
- moodle_live_users
- moodle_expected_upcoming_partipicants
- moodle_bytes_assign_submission (Labels: course ID)
- moodle_bytes_backup (Labels: course ID)
- moodle_bytes_backup_auto (Labels: course ID)
- moodle_bytes_total
Common Labels:
- moodle - Moodle's instance short name
Exposes metrics on port 2345 by default.
Currently configured by standard PostgreSQL environment variables:
- PGHOST
- PGUSER
- PGPASSWORD
Will scan all databases containing moodle installation
Note: .pgpass file can be used instead of PGPASSWORD
Automated build available: ghcr.io/sysbind/moodle_exporter:0.9 (see latest release under Releases)
Add the DEBUG=1 enviromnet variable, moodle_exporter will sleep 1 Hour on database error before exiting, Allowing you to exec into the container to test, examine vars, etc. (Or to attach ephemeral debuggin container)
go build
export PGHOST=.. PGUSER=.. PGPASSWORD=..
./moodle_exporter
kind create cluster --name moodleexportertilt up