From 83565c34830a64cb7887984396c8b9aeb9644bc1 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Tue, 17 Jul 2018 15:59:20 +0200 Subject: [PATCH] prometheus: Reset the time the data was captured This was forgotten during the previous patches. Signed-off-by: Boris Ranto --- src/pybind/mgr/prometheus/module.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/prometheus/module.py b/src/pybind/mgr/prometheus/module.py index 4aa8be6a697..f0982b17ec1 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 -- 2.39.5