commit
08c0667c47
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ def _render_current(data):
|
||||||
current_condition = data["current_condition"][0]
|
current_condition = data["current_condition"][0]
|
||||||
for field in EXPORTED_FIELDS:
|
for field in EXPORTED_FIELDS:
|
||||||
try:
|
try:
|
||||||
output.append("%s(forecast=\"0h\") %s" % (field, current_condition[field]))
|
output.append("%s{forecast=\"0h\"} %s" % (field, current_condition[field]))
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ def _render_current(data):
|
||||||
def render_prometheus(data):
|
def render_prometheus(data):
|
||||||
"""
|
"""
|
||||||
Convert `data` into Prometheus format
|
Convert `data` into Prometheus format
|
||||||
and return it as sting.
|
and return it as string.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return _render_current(data)
|
return _render_current(data)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue