From 7c458f5b704ebac94f56b8a8fec032442b9c41a4 Mon Sep 17 00:00:00 2001 From: geekpi Date: Mon, 29 Apr 2019 08:45:52 +0800 Subject: [PATCH] translated --- ...422 Tracking the weather with Python and Prometheus.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/translated/tech/20190422 Tracking the weather with Python and Prometheus.md b/translated/tech/20190422 Tracking the weather with Python and Prometheus.md index 8e906250cc..0acfb240ef 100644 --- a/translated/tech/20190422 Tracking the weather with Python and Prometheus.md +++ b/translated/tech/20190422 Tracking the weather with Python and Prometheus.md @@ -67,10 +67,10 @@ app = config.make_wsgi_app() import time from prometheus_client import push_to_gateway def push_temperature(url): -while True: -registry = prometheus_temperature(get_temperature()) -push_to_gateway(url, "temperature collector", registry) -time.sleep(60*60) + while True: + registry = prometheus_temperature(get_temperature()) + push_to_gateway(url, "temperature collector", registry) + time.sleep(60*60) ``` URL 是推送网关的 URL。它通常以 **:9091** 结尾。