From: Boris Ranto Date: Tue, 17 Jul 2018 13:59:20 +0000 (+0200) Subject: prometheus: Reset the time the data was captured X-Git-Tag: v14.0.1~849^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=83565c34830a64cb7887984396c8b9aeb9644bc1;p=ceph.git prometheus: Reset the time the data was captured This was forgotten during the previous patches. Signed-off-by: Boris Ranto --- diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 4aa8be6a6979..f0982b17ec16 100644 --- a/src/pybind/mgr/prometheus/module.py +++ b/src/pybind/mgr/prometheus/module.py @@ -643,6 +643,8 @@ class Module(MgrModule): return instance.collect_cache if instance.have_mon_connection(): + instance.collect_cache = None + instance.collect_time = time.time() instance.collect_cache = instance.collect() cherrypy.response.headers['Content-Type'] = 'text/plain' return instance.collect_cache