minor updates

This commit is contained in:
Jonathan Shook 2023-10-16 22:55:10 -05:00
parent e44b5a21b7
commit b8c9af6e71
2 changed files with 3 additions and 11 deletions

View File

@ -192,14 +192,6 @@ public class NBCLIScenarioParser {
// TODO: simplify this
String alias = buildingCmd.get("alias");
for (String token : new String[]{"STEP"}) {
if (!alias.contains(token)) {
logger.warn("Your alias template '" + alias + "' does not contain " + token + ", which will " +
"cause your metrics to be combined under the same name. It is strongly advised that you " +
"include them in a template like " + WORKLOAD_SCENARIO_STEP + ".");
}
}
String workloadToken = workloadContent.asPath().getFileName().toString();
alias = alias.replaceAll("WORKLOAD", sanitize(workloadToken));

View File

@ -71,9 +71,9 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
this.clientMetricChecker = new ClientSystemMetricChecker(this, NBLabels.forKV(),10);
registerLoadAvgMetrics();
registerMemInfoMetrics();
registerDiskStatsMetrics();
// registerDiskStatsMetrics();
registerNetworkInterfaceMetrics();
registerStatMetrics();
registerCpuStatMetrics();
clientMetricChecker.start();
}
@ -239,7 +239,7 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
}
}
private void registerStatMetrics() {
private void registerCpuStatMetrics() {
StatReader reader = new StatReader();
if (!reader.fileExists())
return;