]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/telemetry: add report_timestamp to sent reports 27701/head
authorDan Mick <dan.mick@redhat.com>
Sat, 13 Apr 2019 00:04:34 +0000 (17:04 -0700)
committerSage Weil <sage@redhat.com>
Mon, 22 Apr 2019 02:26:24 +0000 (21:26 -0500)
Received time may differ from report time, and correlating
to local cluster state events might be useful.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit a42c8e327c9f7d53b8c13cf51837c294bc4c643d)

src/pybind/mgr/telemetry/module.py

index 99313a9c01fdc63129d8c803693a3e6b564a7216..034cc4031eeb79181ca9bebc31cb82ae293b2a06 100644 (file)
@@ -186,7 +186,8 @@ class Module(MgrModule):
     def compile_report(self):
         report = {
             'leaderboard': False,
-            'report_version': 1
+            'report_version': 1,
+            'report_timestamp': datetime.utcnow().isoformat()
         }
 
         if self.leaderboard: