Repository navigation
Releases
tool_prometheus 0.6.0
- Large files:
moodle_files_large{component, size_band}(distinct contents,mod_page,mod_resourceand
mod_folderby default, bands 50-100MB and >100MB) andmoodle_files_large_scan_timestamp_seconds, computed
hourly by the newcompute_large_filestask. - Example alerts aligned with moodle_ops_exporter (shared contract, documented in Usage):
MoodleLargeFolderDownloadedByUrlrenamed toMoodleLargeFolderDirectDownload(summed bysite,for: 15m);
MoodleAdhocClassSlowgetsfor: 15m.
Installation
Download tool_prometheus-0.6.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.
tool_prometheus 0.5.0
- Forum discussions by number of posts:
moodle_forum_discussions{posts_band},moodle_forum_discussion_max_posts,
moodle_forum_discussions_largeandmoodle_forum_discussions_scan_timestamp_seconds, computed hourly by the new
compute_forum_sizestask. Band limits and the large discussion limit are settings. Names and labels are the
same as moodle_ops_exporter. - Example alert
MoodleForumDiscussionTooLarge.
Installation
Download tool_prometheus-0.5.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.
tool_prometheus 0.4.0
- Adhoc tasks by class:
moodle_adhoc_class_runs,moodle_adhoc_class_failuresand
moodle_adhoc_class_duration_seconds{stat="sum"|"max"}from the task log (window configurable, 1 hour by default,
top 10 classes by total duration, same as moodle_ops_exporter), andmoodle_adhoc_class_queuedand
moodle_adhoc_class_oldest_age_secondsfrom the queue (top 10, rest inother). Kept for one minute. - Example alerts
MoodleAdhocClassFailingandMoodleAdhocClassSlow.
Installation
Download tool_prometheus-0.4.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.
tool_prometheus 0.3.0
moodle_folder_downloads_total{size_band, download_enabled}: counter of folder downloads (ZIP of every file),
by size band and by the state of the "Download folder" button, from an observer of
\mod_folder\event\all_files_downloaded(no log query).download_enabled="0"shows ZIPs requested through
the URL of folders whose button is hidden.- New table
tool_prometheus_counterfor counters kept across cache purges. - Example alert
MoodleLargeFolderDownloadedByUrl.
Installation
Download tool_prometheus-0.3.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.
tool_prometheus 0.2.0
- Folder metrics (
mod_folder):moodle_folders{size_band, download_enabled},moodle_folder_max_bytes,
moodle_folders_large_download_enabledandmoodle_folders_scan_timestamp_seconds, computed hourly by the new
compute_folder_sizestask. Band limits and the download limit are settings. Names and labels are the same as
moodle_ops_exporter. - Example alert
MoodleLargeFolderDownloadEnabled.
Installation
Download tool_prometheus-0.2.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.
tool_prometheus 0.1.0
First release (alpha).
/admin/tool/prometheus/metrics.phpendpoint authenticated by a bearer token, with an optional IP allow list;
OpenMetrics or Prometheus text format by content negotiation.- Metrics: Moodle version, maintenance mode, last cron start, active users per window, registered users, open
sessions (any session handler), adhoc task queue (queued, due, running, failing, oldest age), failing scheduled
tasks, quiz attempts in progress, cache store readiness, moodledata disk usage per folder and collector health. - Scheduled task that computes the moodledata disk usage (read only).
collect_metricshook for metrics contributed by other plugins.- Example Prometheus scrape configuration, alert rules and Grafana dashboard.
Installation
Download tool_prometheus-0.1.0.zip (root folder prometheus) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade.