From d76a1360c84d7d89b134e5735d0c04ce99fef73f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 4 Nov 2024 20:28:11 -0600 Subject: [PATCH] v-m/alerts: Ignore Paperless consume_file task Paperless-ngx uses a Celery task to process uploaded files, converting them to PDF, running OCR, etc. This task can be marked as "failed" for various reasons, most of which are more about the document itself than the health of the application. The GUI displays the results of failed tasks when they occur. It doesn't really make sense to have an alert about this scenario, especially since there's nothing to do to directly clear the alert anyway. --- victoria-metrics/alerts.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/victoria-metrics/alerts.yml b/victoria-metrics/alerts.yml index 0eb721a..ae21f58 100644 --- a/victoria-metrics/alerts.yml +++ b/victoria-metrics/alerts.yml @@ -225,7 +225,11 @@ groups: expr: >- max_over_time( increase( - flower_events_total{job="paperless-ngx", type="task-failed"} + flower_events_total{ + job="paperless-ngx", + type="task-failed", + task!="documents.tasks.consume_file", + } )[24h] ) > 0 annotations: