statsd: add a chance to set hostname and port in hydra.conf
Co-authored-by: Graham Christensen <graham@grahamc.com>
This commit is contained in:
committed by
Graham Christensen
parent
1f4183e05f
commit
a551fba346
@ -33,6 +33,10 @@ my $plugins = [Hydra::Plugin->instantiate(db => $db, config => $config)];
|
||||
|
||||
my $dryRun = defined $ENV{'HYDRA_DRY_RUN'};
|
||||
|
||||
my $statsdConfig = Hydra::Helper::Nix::getStatsdConfig($config);
|
||||
$Net::Statsd::HOST = $statsdConfig->{'host'};
|
||||
$Net::Statsd::PORT = $statsdConfig->{'port'};
|
||||
|
||||
alarm 3600; # FIXME: make configurable
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user