mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow to disable metrics logger
This commit is contained in:
@@ -418,7 +418,7 @@ public class NBCLI implements Function<String[], Integer>, NBLabeledElement {
|
||||
if (null != reportGraphiteTo) reporters.addGraphite(reportGraphiteTo, options.wantsMetricsPrefix());
|
||||
if (null != options.wantsReportCsvTo())
|
||||
reporters.addCSVReporter(options.wantsReportCsvTo(), options.wantsMetricsPrefix());
|
||||
reporters.addLogger();
|
||||
if (options.wantsLoggedMetrics()) { reporters.addLogger(); }
|
||||
reporters.start(10, options.getReportInterval());
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,8 @@ public class NBCLIOptions {
|
||||
private static final String REPORT_INTERVAL = "--report-interval";
|
||||
private static final String REPORT_GRAPHITE_TO = "--report-graphite-to";
|
||||
|
||||
private static final String ENABLE_LOGGED_METRICS = "--enable-logged-metrics";
|
||||
private static final String DISABLE_LOGGED_METRICS = "--disable-logged-metrics";
|
||||
private static final String REPORT_PROMPUSH_TO = "--report-prompush-to";
|
||||
private static final String GRAPHITE_LOG_LEVEL = "--graphite-log-level";
|
||||
private static final String REPORT_CSV_TO = "--report-csv-to";
|
||||
@@ -197,7 +199,9 @@ public class NBCLIOptions {
|
||||
private boolean wantsListCommands;
|
||||
private boolean wantsListApps;
|
||||
private boolean dedicatedVerificationLogger;
|
||||
private boolean wantsConsoleMetrics =true;
|
||||
|
||||
public boolean wantsLoggedMetrics() { return this.wantsConsoleMetrics; }
|
||||
public boolean isWantsListApps() {
|
||||
return this.wantsListApps;
|
||||
}
|
||||
@@ -485,6 +489,14 @@ public class NBCLIOptions {
|
||||
String addLabeldata = arglist.removeFirst();
|
||||
addLabels(addLabeldata);
|
||||
break;
|
||||
case NBCLIOptions.ENABLE_LOGGED_METRICS:
|
||||
arglist.removeFirst();
|
||||
this.wantsConsoleMetrics =true;
|
||||
break;
|
||||
case NBCLIOptions.DISABLE_LOGGED_METRICS:
|
||||
arglist.removeFirst();
|
||||
this.wantsConsoleMetrics =false;
|
||||
break;
|
||||
default:
|
||||
nonincludes.addLast(arglist.removeFirst());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user