Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
droberts195 committed Dec 8, 2023
1 parent 7af7be6 commit f968010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ public static class Builder {
public Builder(String jobId) {
this.jobId = jobId;
memoryStatus = MemoryStatus.OK;
assignmentMemoryBasis = AssignmentMemoryBasis.MODEL_MEMORY_LIMIT;
categorizationStatus = CategorizationStatus.OK;
logTime = new Date();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,23 +178,23 @@ private void registerMasterNodeMetrics(MeterRegistry meterRegistry) {
);
metrics.add(
meterRegistry.registerLongGauge(
"es.ml.anomaly_detectors.starting.count",
"es.ml.datafeeds.starting.count",
"Count of datafeeds in the starting state cluster-wide.",
"datafeeds",
() -> new LongWithAttributes(mlTaskStatusCounts.datafeedStartingCount, isMasterMap)
)
);
metrics.add(
meterRegistry.registerLongGauge(
"es.ml.anomaly_detectors.started.count",
"es.ml.datafeeds.started.count",
"Count of datafeeds in the started state cluster-wide.",
"datafeeds",
() -> new LongWithAttributes(mlTaskStatusCounts.datafeedStartedCount, isMasterMap)
)
);
metrics.add(
meterRegistry.registerLongGauge(
"es.ml.anomaly_detectors.stopping.count",
"es.ml.datafeeds.stopping.count",
"Count of datafeeds in the stopping state cluster-wide.",
"datafeeds",
() -> new LongWithAttributes(mlTaskStatusCounts.datafeedStoppingCount, isMasterMap)
Expand Down

0 comments on commit f968010

Please sign in to comment.