From 01010406348809649441fd8c5af3f16eefca5b66 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 1 Nov 2024 18:04:06 -0500 Subject: [PATCH] v-m/alerts: Add Paperless-ngx email task alert This alert should fire if the background task to fetch e-mail and import them into Paperless-ngx has not run for a while. --- victoria-metrics/alerts.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/victoria-metrics/alerts.yml b/victoria-metrics/alerts.yml index 807870b..aec2f3b 100644 --- a/victoria-metrics/alerts.yml +++ b/victoria-metrics/alerts.yml @@ -183,3 +183,17 @@ groups: Failing Celery tasks may indicate a problem with the Paperless-ngx deployment and can result in data loss. Check the Paperless-ngx logs for details about the task failures. + - alert: Paperless email task not running + expr: >- + absent( + flower_events_total{ + type="task-started", + task="paperless_mail.tasks.process_mail_accounts" + } + ) + annotations: + summary: Paperless task to process mail accounts has not run recently + description: >- + Paperless-ngx uses a scheduled Celery task to periodically poll email + mailboxes for new messages. If this task does not start, new email + messages will not be downloaded and imported into the document library.