baryshev / look

Performance profiler based on nodetime
MIT License
449 stars 42 forks source link

How can I save the data? #14

Open vrodriguezf opened 9 years ago

vrodriguezf commented 9 years ago

Hi,

How can I save the nodetime metric samples in my local database? Where should I add my code?

Thanks!

trideepgogoi commented 9 years ago

You can log them to your own log files.

vrodriguezf commented 9 years ago

Hmnm... and should I redirect the nodetime logger, or should I manually log the samples taken by node

trideepgogoi commented 9 years ago

That might depend on how you want to look at your data. I prefer logs because you can quicky grep through them. In addition something spunk will help you look the data in a meaningful way. But of course you can write it anywhere. Using nodetime.com is not a bad choice either. They free service should keep you happy for a while.

vrodriguezf commented 9 years ago

My problem is that i don't know exactly how to read the sample objects that nodetime (or look) sends to the web server. Once i can read that objects (JSON I suppose) i will log them or save them in my mongodb database.

Thanks anyway!