Imaging Request Agent dead letter rate is high

Description

This alert is triggered when the Imaging Request Agent dead-letters more than 1 message in 5 minutes, whatever the outcome. A dead-lettered message is an imaging request that could not be processed, and a burst of them usually means that imaging requests are failing repeatedly.

Resolution Guidance

Impact When Active

  • Imaging requests are failing repeatedly. The affected imaging jobs can fail or stay in progress.

How To Resolve

The alert clears by itself when the last 5 minutes hold one dead letter or none. No step clears it earlier. Use the steps below to find the cause of the failures.

You can also try..
  • Log into Relativity and go to the Errors tab. Look for entries that mention a message was deadlettered, and note the imaging jobs that they refer to.
  • Open the Imaging Errors & Warnings dashboard in Kibana and check the Agent Exceptions by Type and Agent Error Logs panels for errors of the Imaging Request Agent from around the time of the alert.
  • Search the log of the Imaging Request Agent for "A message was deadlettered" and read the errors that came before it. The [Relativity] Imaging Logs saved search in Kibana Discover shows the warning and error logs of the imaging agents.
  • Check that SQL Server, Service Bus, Invariant, and the Imaging Request Agent are available.
  • For the imaging jobs that failed, fix the cause and submit the imaging job or the Imaging Set again.
  • If the dead letters continue, disable the Imaging Request Agent and then enable it again after the underlying error is fixed.

Alert Details

The Imaging Request Agent counts every dead-lettered message, whether or not it could clean up the imaging job afterwards. The alert is active when more than one dead letter was counted in the last 5 minutes. The rule checks every minute over a sliding 5-minute window, so two dead letters that are close together raise the alert. A single dead letter does not.

A dead letter whose clean-up failed is also counted by the alert "Imaging Request Agent failed to submit a job".

Alert Condition Details

Name Value Description
Rule Type Elastic Query
Data View metrics-*
Filter Query relsvr.imaging.deadletter_count : * AND labels.HandlerName : "Imaging Request Handler" All outcomes are counted
Group Sum of relsvr.imaging.deadletter_count The rule adds up the counter values; it does not count documents
Threshold > 1 A single dead letter does not raise the alert
Time Window 5 minutes
Frequency 1 minute

Alert Metric Details

Metric Name: relsvr.imaging.deadletter_count

Metric Description: A counter that the Imaging Request Agent increases by 1 for every dead-lettered message it receives. The outcome attribute says how the agent dealt with the message. This alert counts every outcome.

Metric Attributes:

Attribute Name Description
labels.HandlerName The handler that received the dead-lettered message: Imaging Request Handler
labels.outcome How the agent dealt with the message: handled or cleanup_failed
host.name The host that runs the agent
Feedback