RHInception / jsonstats

system stats over rest in json (buzzzzwords here)
MIT License
22 stars 8 forks source link

Data returned needs a timestamp? #8

Closed tbielawa closed 10 years ago

tbielawa commented 10 years ago

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
tbielawa commented 10 years ago

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
kelcecil commented 10 years ago

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.