From 1e97b12e5c8432a6405e211c756abe4f35fe2864 Mon Sep 17 00:00:00 2001 From: Clint Byrum Date: Wed, 11 Nov 2015 15:28:31 -0800 Subject: [PATCH] Add __meta__ to output --- os_performance_tools/collect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/os_performance_tools/collect.py b/os_performance_tools/collect.py index 070aaad..a5803bd 100644 --- a/os_performance_tools/collect.py +++ b/os_performance_tools/collect.py @@ -15,6 +15,7 @@ import json import logging import sys import threading +import time from os_performance_tools.collectors import _delta from os_performance_tools.collectors import mysql @@ -66,7 +67,10 @@ def main(argv=None, stdout=None): getqueues.join() log.debug('threads all returned') + meta = {'unixtime': time.time()} + collected = { + '__meta__': meta, 'mysql': mysql_data, 'queues': queues_data, }