mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
OpenMetrics: add trailing EOF marker
This commit is contained in:
parent
ca865e60db
commit
4674bccde7
@ -1572,6 +1572,9 @@ class Statistics(MultiFormatResource):
|
|||||||
ret += u"tahoe_counters_%s %s\n" % (mangle_name(k), mangle_value(v))
|
ret += u"tahoe_counters_%s %s\n" % (mangle_name(k), mangle_value(v))
|
||||||
for (k, v) in sorted(stats['stats'].items()):
|
for (k, v) in sorted(stats['stats'].items()):
|
||||||
ret += u"tahoe_stats_%s %s\n" % (mangle_name(k), mangle_value(v))
|
ret += u"tahoe_stats_%s %s\n" % (mangle_name(k), mangle_value(v))
|
||||||
|
|
||||||
|
ret += u"# EOF\n"
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
class StatisticsElement(Element):
|
class StatisticsElement(Element):
|
||||||
|
Loading…
Reference in New Issue
Block a user