prom-client
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -235,5 +235,7 @@ /** | ||
function createBucketValues(bucket, histogram) { | ||
var acc = 0; | ||
return function(upperBound) { | ||
acc += bucket.bucketValues[upperBound]; | ||
var lbls = extend({ le: upperBound }, bucket.labels); | ||
var valuePair = createValuePair(lbls, bucket.bucketValues[upperBound], histogram.name + '_bucket'); | ||
var valuePair = createValuePair(lbls, acc, histogram.name + '_bucket'); | ||
return valuePair; | ||
@@ -240,0 +242,0 @@ }; |
{ | ||
"name": "prom-client", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Client for prometheus", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -37,3 +37,3 @@ 'use strict'; | ||
expect(firstValuePair.value).to.equal(1); | ||
expect(secondValuePair.value).to.equal(1); | ||
expect(secondValuePair.value).to.equal(2); | ||
}); | ||
@@ -142,3 +142,2 @@ | ||
return values.reduce(function(acc, val) { | ||
console.log('val', val.labels[key]); | ||
if(val.labels && val.labels[key || 'le'] === label) { | ||
@@ -145,0 +144,0 @@ acc = val; |
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
948
32322