RHInception / jsonstats

system stats over rest in json (buzzzzwords here)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data returned needs a timestamp?

tbielawa opened this issue · comments

Might be valuable to have some kind of timestamp (optionally) returned, like a baked on $DATE sticker on perishables in the grocery store.

curl foo:8008/timestamp=1

Optionally, this could (should?) be implemented as a plugin and just returned by default.

Desired output

{
    "timestamp": "2013-12-12 18:22:27.316359", 
    "rpm": {
        "foo": 1, 
        "bar": 2
    }
   ...
}

Note: The timestamp value is the return data from str(datetime.datetime.now())

>>> import datetime
>>> print str(datetime.datetime.now())
2013-12-12 18:24:56.778965

I like the idea of everything being implemented as a plugin. It opens up the feed to be extremely customizable, and I think that's a god-send for any sysadmin looking to cut out noise of little use to them.