mirror of
https://github.com/valitydev/riak_exporter.git
synced 2024-11-06 02:15:17 +00:00
updated metrics output for prometheus with a 'riak_' prefix and removed unnecessary colon'
This commit is contained in:
parent
e33d15cc68
commit
38b6d9d4a2
@ -67,7 +67,7 @@ class MetricsHandler(RequestHandler):
|
||||
for key, value in riak_stats_data.items():
|
||||
if isinstance(value, (int, float, bool)):
|
||||
prom_value = float(value)
|
||||
prom_str = "{}: {}".format(key, prom_value)
|
||||
prom_str = "riak_{} {}".format(key, prom_value)
|
||||
yield prom_str
|
||||
|
||||
@coroutine
|
||||
|
Loading…
Reference in New Issue
Block a user