From de2282bcf42742a810406100210bb97f2f88426e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 Aug 2021 15:30:35 -0400 Subject: [PATCH] hydra-notify: print out log lines indicating it is or is not launching the exporter --- src/script/hydra-notify | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/script/hydra-notify b/src/script/hydra-notify index b0bfcdc9..fbadf7ee 100755 --- a/src/script/hydra-notify +++ b/src/script/hydra-notify @@ -67,6 +67,7 @@ $prom->declare( my $promCfg = Hydra::Helper::Nix::getHydraNotifyPrometheusConfig($config); if (defined($promCfg)) { + print STDERR "Starting the Prometheus exporter, listening on http://${\$promCfg->{'listen_address'}}:${\$promCfg->{'port'}}/metrics.\n"; my $fork_manager = Parallel::ForkManager->new(1); $fork_manager->start_child("metrics_exporter", sub { my $server = HTTP::Server::PSGI->new( @@ -77,6 +78,8 @@ if (defined($promCfg)) { $server->run($prom->psgi); }); +} else { + print STDERR "Not starting the hydra-notify Prometheus exporter.\n"; } my $queued_only;