From 7bb54e1e8e7aadb2a1a3cab6a1ac93058e2d5f3c Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Mon, 20 Sep 2021 09:48:06 +0200 Subject: [PATCH] add "Custom/number_incoming_email" in newrelic --- email_handler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/email_handler.py b/email_handler.py index ae531297..e1484620 100644 --- a/email_handler.py +++ b/email_handler.py @@ -1945,6 +1945,9 @@ class MailHandler: newrelic.agent.record_custom_metric( "Custom/email_handler_time", elapsed, newrelic_app ) + newrelic.agent.record_custom_metric( + "Custom/number_incoming_email", 1, newrelic_app + ) return ret