Prometheus histograms are cumalative

This commit is contained in:
Erik Johnston 2019-06-14 14:07:32 +01:00
parent d0530382ee
commit 3ed595e327
3 changed files with 12 additions and 12 deletions

View file

@ -224,7 +224,6 @@ class BucketCollector(object):
for i, bound in enumerate(self.buckets):
if x <= bound:
buckets[bound] = buckets.get(bound, 0) + data[x]
break
for i in self.buckets:
res.append([str(i), buckets.get(i, 0)])