From 633fc36d6a8af38499174b8cefee9cdef81ea2dc Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Mon, 20 Dec 2021 13:22:02 -0500 Subject: [PATCH] TaskDispatcher: pre-declare the notify_no_such_plugin metric --- src/lib/Hydra/TaskDispatcher.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/Hydra/TaskDispatcher.pm b/src/lib/Hydra/TaskDispatcher.pm index a45f88ab..f23cc814 100644 --- a/src/lib/Hydra/TaskDispatcher.pm +++ b/src/lib/Hydra/TaskDispatcher.pm @@ -112,6 +112,11 @@ sub new { type => "counter", help => "Number of tasks that have been requeued after a failure." ); + $prometheus->declare( + "notify_plugin_no_such_plugin", + type => "counter", + help => "Number of tasks that have not been processed because the plugin does not exist." + ); my %plugins_by_name = map { ref $_ => $_ } @{$plugins};