label fix for relevance metrics

This commit is contained in:
Jonathan Shook 2023-09-08 17:53:44 -05:00
parent 340e5ac483
commit 5cf0fbcaec
4 changed files with 7 additions and 3 deletions

View File

@ -20,7 +20,7 @@ scenarios:
default:
schema: run tags='block:schema' labels='target:astra' threads===1
rampup: run tags='block:rampup' labels='target:astra' threads=100 cycles=TEMPLATE(trainsize)
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize)
search_and_index: run tags='block:search_and_index,optype=select' labels='target:astra' cycles=TEMPLATE(testsize) threads=2000 testsize=1000000 errors=count
# one activity or two? data leap-frog? or concurrency separate for both?
# await_index: run tags='block:await_index' # This would need to exit when a condition is met
# stop_search_and_index: stop search_and_index

View File

@ -245,4 +245,8 @@ public class MapLabels implements NBLabels {
}
@Override
public NBLabels getLabels() {
return this;
}
}

View File

@ -35,7 +35,7 @@ import java.util.function.Function;
* since these elements will be consulted frequently, such as when rendering metrics values.
* </P>
*/
public interface NBLabels {
public interface NBLabels extends NBLabeledElement {
/**
* Create a string representation of the label data, including only the values.

View File

@ -57,7 +57,7 @@ public class RelevancyMeasures implements NBLabeledElement {
public RelevancyMeasures addFunction(RelevancyFunction... f) {
for (RelevancyFunction function : f) {
this.functions.add(function);
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(function, function.getUniqueName());
DoubleSummaryGauge gauge = ActivityMetrics.summaryGauge(parent.getLabels().and(function.getLabels()), function.getUniqueName());
this.gauges.add(gauge);
}
return this;