Fix bugs in metrics tooling

This commit is contained in:
Raphael Michel
2017-03-25 21:16:07 +01:00
parent f03ad7c68f
commit c932892dbd
2 changed files with 4 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ class Metric(object):
else:
named_labels = []
for labelname in self.labelnames:
named_labels.append('{}="{}",'.format(labelname, labels[labelname]))
named_labels.append('{}="{}"'.format(labelname, labels[labelname]))
return metricname + "{" + ",".join(named_labels) + "}"