mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
refactor session safety metrics into auxiliary component
This commit is contained in:
@@ -64,7 +64,16 @@ public class NBSession extends NBBaseComponent implements Function<List<Cmd>, Ex
|
||||
labelContext.getLabels()
|
||||
.and("session", sessionName)
|
||||
);
|
||||
|
||||
new NBSessionSafetyMetrics(this);
|
||||
|
||||
create().gauge(
|
||||
"session_time",
|
||||
() -> (double)System.nanoTime(),
|
||||
MetricCategory.Core,
|
||||
"session time in nanoseconds"
|
||||
);
|
||||
|
||||
bufferOrphanedMetrics = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user