fix prometheus rendering error

This commit is contained in:
Amber H. Brown 2019-06-14 21:09:33 +10:00
parent b59a4eba64
commit a10c8dae85
2 changed files with 24 additions and 39 deletions

View file

@ -227,7 +227,7 @@ class BucketCollector(object):
break
for i in self.buckets:
res.append([i, buckets.get(i, 0)])
res.append([str(i), buckets.get(i, 0)])
res.append(["+Inf", sum(data.values())])