mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
qualify annotators config in main
This commit is contained in:
parent
0d422b5a5f
commit
37f1d010fe
@ -147,8 +147,11 @@ public class NBCLI {
|
|||||||
|
|
||||||
if (metricsAddr != null) {
|
if (metricsAddr != null) {
|
||||||
reportGraphiteTo = metricsAddr + ":9109";
|
reportGraphiteTo = metricsAddr + ":9109";
|
||||||
annotatorsConfig = "[{type:'log'},{type:'grafana',baseurl:'http://" + metricsAddr + ":3000/'," +
|
annotatorsConfig = "[{type:'log',level:'info'},{type:'grafana',baseurl:'http://" + metricsAddr + ":3000" +
|
||||||
|
"/'," +
|
||||||
"tags:'appname:nosqlbench',timeoutms:5000,onerror:'warn'}]";
|
"tags:'appname:nosqlbench',timeoutms:5000,onerror:'warn'}]";
|
||||||
|
} else {
|
||||||
|
annotatorsConfig = "[{type:'log',level:'info'}]";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.length > 0 && args[0].toLowerCase().equals("virtdata")) {
|
if (args.length > 0 && args[0].toLowerCase().equals("virtdata")) {
|
||||||
@ -333,7 +336,8 @@ public class NBCLI {
|
|||||||
options.getProgressSpec(),
|
options.getProgressSpec(),
|
||||||
options.wantsGraaljsCompatMode(),
|
options.wantsGraaljsCompatMode(),
|
||||||
options.wantsStackTraces(),
|
options.wantsStackTraces(),
|
||||||
options.wantsCompileScript()
|
options.wantsCompileScript(),
|
||||||
|
String.join("\n", args)
|
||||||
);
|
);
|
||||||
ScriptBuffer buffer = new BasicScriptBuffer()
|
ScriptBuffer buffer = new BasicScriptBuffer()
|
||||||
.add(options.getCommands().toArray(new Cmd[0]));
|
.add(options.getCommands().toArray(new Cmd[0]));
|
||||||
@ -381,7 +385,7 @@ public class NBCLI {
|
|||||||
scenariosResults.reportToLog();
|
scenariosResults.reportToLog();
|
||||||
ShutdownManager.shutdown();
|
ShutdownManager.shutdown();
|
||||||
|
|
||||||
logger.info(scenariosResults.getExecutionSummary());
|
// logger.info(scenariosResults.getExecutionSummary());
|
||||||
|
|
||||||
if (scenariosResults.hasError()) {
|
if (scenariosResults.hasError()) {
|
||||||
Exception exception = scenariosResults.getOne().getException().get();
|
Exception exception = scenariosResults.getOne().getException().get();
|
||||||
|
Loading…
Reference in New Issue
Block a user