From: Dan Mick Date: Sat, 13 Apr 2019 00:04:34 +0000 (-0700) Subject: mgr/telemetry: add report_timestamp to sent reports X-Git-Tag: v14.2.1~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F27701%2Fhead;p=ceph.git mgr/telemetry: add report_timestamp to sent reports Received time may differ from report time, and correlating to local cluster state events might be useful. Signed-off-by: Dan Mick (cherry picked from commit a42c8e327c9f7d53b8c13cf51837c294bc4c643d) --- diff --git a/src/pybind/mgr/telemetry/module.py b/src/pybind/mgr/telemetry/module.py index 99313a9c01fd..034cc4031eeb 100644 --- a/src/pybind/mgr/telemetry/module.py +++ b/src/pybind/mgr/telemetry/module.py @@ -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: