From 298e99449b69bd055efb303ead56b999af0940d8 Mon Sep 17 00:00:00 2001 From: AmineChikhaoui Date: Tue, 12 Jun 2018 13:00:39 +0100 Subject: [PATCH] add metrics for hydra notifications. --- src/script/hydra-send-stats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/script/hydra-send-stats b/src/script/hydra-send-stats index 2b8c550b..50872c1a 100755 --- a/src/script/hydra-send-stats +++ b/src/script/hydra-send-stats @@ -56,6 +56,12 @@ sub sendQueueRunnerStats { gauge("hydra.queue.machines.total", scalar(grep { $_->{enabled} } (values %{$json->{machines}}))); gauge("hydra.queue.machines.in_use", scalar(grep { $_->{currentJobs} > 0 } (values %{$json->{machines}}))); + gauge("hydra.queue.notification.time_avg_ms", $json->{nrNotificationTimeAvgMs}); + gauge("hydra.queue.notification.time_ms", $json->{nrNotificationTimeMs}); + gauge("hydra.queue.notification.done", $json->{nrNotificationsDone}); + gauge("hydra.queue.notification.failed", $json->{nrNotificationsFailed}); + gauge("hydra.queue.notification.in_progress", $json->{nrNotificationsInProgress}); + gauge("hydra.queue.notification.pending", $json->{nrNotificationsPending}); } while (1) {