Comments (6)
I haven't tested it yet, but it might be possible to add the _time
parameter to the event payload. Like this.
echo "{\"_type\": \"unicorn_seen\", \"_time\":1326834487}" | nc localhost 1337
It will be set to the current unix timestamp by default.
from clip.
Yeah, I had wondered about that... and still wondering if anyone has any experience / experiments with this kind of historical data?
from clip.
Yes, as bernd pointed out you can either just set the _time field, or use the included importer:
If you usually run your fnordmetric app like this:
ruby my_fnordmetric_app.rb run
you can also invoke the "import" task like this:
ruby my_fnordmetric_app.rb import DUMP_FILE=/path/to/newline_seperated_events.json
If you use "progressive/persistent gauges" (any of your gauges has the :progressive => true option) the events in the dump_file need to be in chronological order (first line should be the oldest and last line should be the most recent).
Btw, there is a third task called "log" which you can use to create these log/dumpfiles:
ruby my_fnordmetric_app.rb log DUMP_FILE=/path/to/events_19.01.12.json
I'll add a readme section about this in the evening.
from clip.
This is super helpful, thanks! What would also help is a bit more docs on how best to convert different kinds of data into graphs. :)
On Jan 19, 2012, at 7:48, Paul [email protected] wrote:
Yes, as bernd pointed out you can either just set the _time field, or use the included importer:
If you usually run your fnordmetric app like this:
ruby my_fnordmetric_app.rb run
you can also invoke the "import" task like this:
ruby my_fnordmetric_app.rb import DUMP_FILE=/path/to/newline_seperated_events.json
If you use "progressive/persistent gauges" (any of your gauges has the :progressive => true option) the events in the dump_file need to be in chronological order (first line should be the oldest and last line should be the most recent).
Btw, there is a third task called "log" which you can use to create these log/dumpfiles:
ruby my_fnordmetric_app.rb import DUMP_FILE=/path/to/events_19.01.12.json
I'll add a readme section about this in the evening.
Reply to this email directly or view it on GitHub:
#43 (comment)
from clip.
I just posted a gist showing how I'm doing this currently (obv fake data): https://gist.github.com/1845317 /cc @imajes @bernd @paulasmuth
from clip.
Is there a reason why this issue has been left open? Looks like it's sorted right?
from clip.
Related Issues (20)
- Binaries? HOT 9
- mysql_real_connect() failed: Access denied for user 'root'@'HOST HOT 2
- Support for views
- d
- SValues from mysql backend always created as strings
- Cannot import postgresql table
- Broken pipe? anything wrong?
- Fail to compile install chartsql on centos6.7 x64 HOT 2
- Fail to make and install in Centos 7
- Crashed when trying to start Fnordmetric Server
- Building with `make -j` can cause system crashes HOT 1
- Versioned Releases HOT 1
- Ubuntu - Installation process fails - cmake . HOT 2
- Build Failure with Apple Clang 10 HOT 3
- CLI syntax in getting started guide is wrong HOT 1
- Reason for "original Microsoft Arial" and workaround ?
- A SEGV fault was discovered in clip
- A SEGV fault was discovered in clip
- A SEGV fault was discovered in function clip
- CLIP-LANG.ORG is no longer available
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clip.