Add __meta__ to output

This commit is contained in:
Clint Byrum 2015-11-11 15:28:31 -08:00
parent 3154a0f8a3
commit 1e97b12e5c
1 changed files with 4 additions and 0 deletions

View File

@ -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,
}