forked from lix-project/hydra
hydra-send-stats: fix imports
This commit is contained in:
parent
6f662a606a
commit
6bb180a0f2
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use utf8;
|
use utf8;
|
||||||
|
use Hydra::Helper::Nix;
|
||||||
use Net::Statsd;
|
use Net::Statsd;
|
||||||
use File::Slurp;
|
use File::Slurp;
|
||||||
use JSON;
|
use JSON;
|
||||||
|
@ -10,7 +11,7 @@ STDERR->autoflush(1);
|
||||||
binmode STDERR, ":encoding(utf8)";
|
binmode STDERR, ":encoding(utf8)";
|
||||||
|
|
||||||
my $config = getHydraConfig();
|
my $config = getHydraConfig();
|
||||||
my $statsdConfig = Hydra::Helper::Nix::getStatsdConfig($config);
|
my $statsdConfig = getStatsdConfig($config);
|
||||||
$Net::Statsd::HOST = $statsdConfig->{'host'};
|
$Net::Statsd::HOST = $statsdConfig->{'host'};
|
||||||
$Net::Statsd::PORT = $statsdConfig->{'port'};
|
$Net::Statsd::PORT = $statsdConfig->{'port'};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue