This is an automated email from the ASF dual-hosted git repository. hanahmily pushed a commit to branch prom-histogram-label in repository https://gitbox.apache.org/repos/asf/skywalking.git
commit c66669275619628e9f00fe78d30c15e11b70a8e2 Author: Gao Hongtao <hanahm...@gmail.com> AuthorDate: Sun Jul 26 08:41:58 2020 +0800 Fix histogram labels are absent --- .../skywalking/oap/server/library/util/prometheus/parser/Context.java | 1 + 1 file changed, 1 insertion(+) diff --git a/oap-server/server-library/library-util/src/main/java/org/apache/skywalking/oap/server/library/util/prometheus/parser/Context.java b/oap-server/server-library/library-util/src/main/java/org/apache/skywalking/oap/server/library/util/prometheus/parser/Context.java index ef4c4b5..d0482fe 100644 --- a/oap-server/server-library/library-util/src/main/java/org/apache/skywalking/oap/server/library/util/prometheus/parser/Context.java +++ b/oap-server/server-library/library-util/src/main/java/org/apache/skywalking/oap/server/library/util/prometheus/parser/Context.java @@ -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")) {