TaskDispatcher: pre-declare the notify_no_such_plugin metric

This commit is contained in:
Graham Christensen 2021-12-20 13:22:02 -05:00
parent d195e545f5
commit 633fc36d6a

View file

@ -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};