diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-12-12 11:29:33 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-12-15 09:45:30 +0100 |
| commit | ad74ce8412eea2c554b048e379b9ca145d9694c6 (patch) | |
| tree | 2f988b93929741d6c77207596a5747945a769b06 /statsd/main.cpp | |
| parent | 7568c9073143edfb3bc6c0bf4263be704cb96cb5 (diff) | |
| download | cmix-ad74ce8412eea2c554b048e379b9ca145d9694c6.tar.gz cmix-ad74ce8412eea2c554b048e379b9ca145d9694c6.tar.bz2 cmix-ad74ce8412eea2c554b048e379b9ca145d9694c6.zip | |
Adds the StatsDaemon to the run script and made it output to file.
Diffstat (limited to 'statsd/main.cpp')
| -rw-r--r-- | statsd/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/statsd/main.cpp b/statsd/main.cpp index 436e8ad..d20abc3 100644 --- a/statsd/main.cpp +++ b/statsd/main.cpp @@ -15,11 +15,12 @@ int main(int argc, char* argv[]) { po::options_description desc("Allowed options"); desc.add_options() ("help,h", "produce help message.") - ("port,p", po::value<uint16_t>()->default_value(9200), "Set listening port.") + ("port,p", po::value<uint16_t>()->default_value(9199), "Set listening port.") ("enable_v4", po::value<bool>()->default_value(true), "Enable/disable ipv4 accept support.") ("interface4,4", po::value<std::string>()->default_value("0.0.0.0"), "Set the ipv4 address to listen on.") ("enable_v6", po::value<bool>()->default_value(true), "Enable/disable ipv6 accept support.") ("interface6,6", po::value<std::string>()->default_value("::"), "Set the ipv6 address to listen on.") + ("output,o", po::value<std::string>()->default_value("output.csv"), "Output file name") ; po::variables_map vm; @@ -42,4 +43,6 @@ int main(int argc, char* argv[]) { stats.run(); + stats.output(vm["output"].as<std::string>()); + } |
