Fix histogram labels are absent (#5173)
This commit is contained in:
parent
3a00d84766
commit
2a031dae77
|
|
@ -116,6 +116,7 @@ public class Context {
|
|||
Histogram.HistogramBuilder hBuilder = Histogram.builder();
|
||||
hBuilder.name(name).timestamp(now);
|
||||
samples.forEach(textSample -> {
|
||||
hBuilder.labels(textSample.getLabels());
|
||||
if (textSample.getName().endsWith("_count")) {
|
||||
hBuilder.sampleCount((long) convertStringToDouble(textSample.getValue()));
|
||||
} else if (textSample.getName().endsWith("_sum")) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue