From 1857581ccefbc5c2ec40de112dc95a3a80ac214b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20R=C3=BCger?= Date: Wed, 10 Jun 2020 13:17:19 +0200 Subject: [PATCH] Fix prometheus output --- lib/view/prometheus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view/prometheus.py b/lib/view/prometheus.py index bee1fb5..23272c7 100644 --- a/lib/view/prometheus.py +++ b/lib/view/prometheus.py @@ -16,7 +16,7 @@ def _render_current(data): current_condition = data["current_condition"][0] for field in EXPORTED_FIELDS: try: - output.append("%s(forecast=\"0h\") %s" % (field, current_condition[field])) + output.append("%s{forecast=\"0h\"} %s" % (field, current_condition[field])) except IndexError: pass @@ -37,7 +37,7 @@ def _render_current(data): def render_prometheus(data): """ Convert `data` into Prometheus format - and return it as sting. + and return it as string. """ return _render_current(data)