prom-client
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -92,5 +92,6 @@ /** | ||
return percentiles.map(function (percentile) { | ||
var percentileValue = summaryOfLabels.td.percentile(percentile); | ||
return { | ||
labels: extend({ quantile: percentile}, summaryOfLabels.labels), | ||
value: summaryOfLabels.td.percentile(percentile) | ||
labels: extend({ quantile: percentile }, summaryOfLabels.labels), | ||
value: percentileValue ? percentileValue : 0 | ||
}; | ||
@@ -97,0 +98,0 @@ }); |
{ | ||
"name": "prom-client", | ||
"version": "3.4.0", | ||
"version": "3.4.1", | ||
"description": "Client for prometheus", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -97,3 +97,3 @@ 'use strict'; | ||
expect(instance.get().values[0].labels.quantile).to.equal(0.5); | ||
expect(instance.get().values[0].value).to.equal(undefined); | ||
expect(instance.get().values[0].value).to.equal(0); | ||
@@ -100,0 +100,0 @@ expect(instance.get().values[1].metricName).to.equal('summary_test_sum'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64982
1517