(cobra bots) remove bots which is not required now that we can use Python extensions
This commit is contained in:
28
ws/ws.cpp
28
ws/ws.cpp
@ -15,7 +15,6 @@
|
||||
#include <ixbots/IXCobraToSentryBot.h>
|
||||
#include <ixbots/IXCobraToStatsdBot.h>
|
||||
#include <ixbots/IXCobraToStdoutBot.h>
|
||||
#include <ixbots/IXCobraMetricsToStatsdBot.h>
|
||||
#include <ixbots/IXCobraMetricsToRedisBot.h>
|
||||
#include <ixredis/IXRedisClient.h>
|
||||
#include <ixcore/utils/IXCoreLogger.h>
|
||||
@ -364,16 +363,6 @@ int main(int argc, char** argv)
|
||||
addTLSOptions(cobra2python);
|
||||
addCobraBotConfig(cobra2python);
|
||||
|
||||
CLI::App* cobraMetrics2statsd = app.add_subcommand("cobra_metrics_to_statsd", "Cobra metrics to statsd");
|
||||
cobraMetrics2statsd->fallthrough();
|
||||
cobraMetrics2statsd->add_option("--host", hostname, "Statsd host");
|
||||
cobraMetrics2statsd->add_option("--port", statsdPort, "Statsd port");
|
||||
cobraMetrics2statsd->add_option("--prefix", prefix, "Statsd prefix");
|
||||
cobraMetrics2statsd->add_flag("-v", verbose, "Verbose");
|
||||
cobraMetrics2statsd->add_option("--pidfile", pidfile, "Pid file");
|
||||
addTLSOptions(cobraMetrics2statsd);
|
||||
addCobraBotConfig(cobraMetrics2statsd);
|
||||
|
||||
CLI::App* cobra2sentry = app.add_subcommand("cobra_to_sentry", "Cobra to sentry");
|
||||
cobra2sentry->fallthrough();
|
||||
cobra2sentry->add_option("--dsn", dsn, "Sentry DSN");
|
||||
@ -619,23 +608,6 @@ int main(int argc, char** argv)
|
||||
cobraBotConfig, statsdClient, scriptPath);
|
||||
}
|
||||
}
|
||||
else if (app.got_subcommand("cobra_metrics_to_statsd"))
|
||||
{
|
||||
ix::StatsdClient statsdClient(hostname, statsdPort, prefix, verbose);
|
||||
|
||||
std::string errMsg;
|
||||
bool initialized = statsdClient.init(errMsg);
|
||||
if (!initialized)
|
||||
{
|
||||
spdlog::error(errMsg);
|
||||
ret = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = (int) ix::cobra_metrics_to_statsd_bot(
|
||||
cobraBotConfig, statsdClient, verbose);
|
||||
}
|
||||
}
|
||||
else if (app.got_subcommand("cobra_to_sentry"))
|
||||
{
|
||||
ix::SentryClient sentryClient(dsn);
|
||||
|
Reference in New Issue
Block a user