fnordmetric 0.7.5 → 0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/V1.0-ROADMAP +97 -0
- data/doc/full_example.rb +95 -511
- data/doc/legacy_example.rb +640 -0
- data/doc/minimal_example.rb +26 -0
- data/doc/preview3.png +0 -0
- data/fnordmetric.gemspec +3 -2
- data/lib/fnordmetric/acceptors/acceptor.rb +29 -0
- data/lib/fnordmetric/{inbound_stream.rb → acceptors/tcp_acceptor.rb} +8 -5
- data/lib/fnordmetric/{inbound_datagram.rb → acceptors/udp_acceptor.rb} +9 -8
- data/lib/fnordmetric/api.rb +2 -2
- data/lib/fnordmetric/context.rb +37 -18
- data/lib/fnordmetric/defaults.rb +9 -0
- data/lib/fnordmetric/ext.rb +72 -0
- data/lib/fnordmetric/gauge.rb +37 -10
- data/lib/fnordmetric/gauge_calculations.rb +38 -16
- data/lib/fnordmetric/gauge_modifiers.rb +67 -0
- data/lib/fnordmetric/gauge_rendering.rb +40 -0
- data/lib/fnordmetric/gauge_validations.rb +15 -0
- data/lib/fnordmetric/gauges/distribution_gauge.rb +85 -0
- data/lib/fnordmetric/gauges/timeseries_gauge.rb +143 -0
- data/lib/fnordmetric/gauges/toplist_gauge.rb +44 -0
- data/lib/fnordmetric/histogram.rb +57 -0
- data/lib/fnordmetric/logger.rb +42 -36
- data/lib/fnordmetric/namespace.rb +47 -23
- data/lib/fnordmetric/session.rb +6 -6
- data/lib/fnordmetric/standalone.rb +15 -35
- data/lib/fnordmetric/timeseries.rb +79 -0
- data/lib/fnordmetric/toplist.rb +61 -0
- data/lib/fnordmetric/version.rb +1 -1
- data/lib/fnordmetric/web/app.rb +122 -0
- data/lib/fnordmetric/web/app_helpers.rb +42 -0
- data/lib/fnordmetric/{dashboard.rb → web/dashboard.rb} +4 -0
- data/lib/fnordmetric/{event.rb → web/event.rb} +7 -2
- data/lib/fnordmetric/web/reactor.rb +87 -0
- data/lib/fnordmetric/web/web.rb +53 -0
- data/lib/fnordmetric/web/websocket.rb +38 -0
- data/lib/fnordmetric/widgets/bars_widget.rb +44 -0
- data/lib/fnordmetric/{html_widget.rb → widgets/html_widget.rb} +0 -0
- data/lib/fnordmetric/widgets/numbers_widget.rb +56 -0
- data/lib/fnordmetric/{pie_widget.rb → widgets/pie_widget.rb} +0 -0
- data/lib/fnordmetric/widgets/timeseries_widget.rb +55 -0
- data/lib/fnordmetric/widgets/toplist_widget.rb +64 -0
- data/lib/fnordmetric/worker.rb +26 -25
- data/lib/fnordmetric.rb +85 -115
- data/readme.md +362 -0
- data/spec/gauge_like_shared.rb +54 -0
- data/spec/gauge_spec.rb +2 -36
- data/spec/namespace_spec.rb +25 -11
- data/spec/spec_helper.rb +4 -0
- data/spec/{inbound_stream_spec.rb → tcp_acceptor_spec.rb} +3 -3
- data/spec/timeseries_gauge_spec.rb +54 -0
- data/spec/{inbound_datagram_spec.rb → udp_acceptor_spec.rb} +3 -3
- data/web/fnordmetric.css +786 -0
- data/web/haml/app.haml +38 -0
- data/web/haml/distribution_gauge.haml +118 -0
- data/web/haml/timeseries_gauge.haml +80 -0
- data/web/haml/toplist_gauge.haml +194 -0
- data/web/img/head.png +0 -0
- data/web/img/list.png +0 -0
- data/web/img/list_active.png +0 -0
- data/web/img/list_hover.png +0 -0
- data/web/img/loader_white.gif +0 -0
- data/web/img/navbar.png +0 -0
- data/web/img/navbar_btn.png +0 -0
- data/web/img/picto_gauge.png +0 -0
- data/web/js/fnordmetric.bars_widget.js +178 -0
- data/web/js/fnordmetric.dashboard_view.js +99 -0
- data/web/js/fnordmetric.gauge_view.js +260 -0
- data/web/js/fnordmetric.html_widget.js +21 -0
- data/web/js/fnordmetric.js +255 -0
- data/web/js/fnordmetric.numbers_widget.js +121 -0
- data/web/js/fnordmetric.overview_view.js +35 -0
- data/web/js/fnordmetric.pie_widget.js +118 -0
- data/web/js/fnordmetric.realtime_timeline_widget.js +175 -0
- data/web/js/fnordmetric.session_view.js +343 -0
- data/web/js/fnordmetric.timeline_widget.js +333 -0
- data/web/js/fnordmetric.timeseries_widget.js +388 -0
- data/web/js/fnordmetric.toplist_widget.js +112 -0
- data/web/js/fnordmetric.ui.js +91 -0
- data/web/js/fnordmetric.util.js +244 -0
- data/{pub → web}/loader.gif +0 -0
- data/web/vendor/d3.v2.js +9382 -0
- data/web/vendor/font-awesome/css/font-awesome.css +239 -0
- data/web/vendor/font-awesome/font/fontawesome-webfont.eot +0 -0
- data/web/vendor/font-awesome/font/fontawesome-webfont.svg +175 -0
- data/web/vendor/font-awesome/font/fontawesome-webfont.svgz +0 -0
- data/web/vendor/font-awesome/font/fontawesome-webfont.ttf +0 -0
- data/web/vendor/font-awesome/font/fontawesome-webfont.woff +0 -0
- data/web/vendor/jquery-1.6.2.min.js +18 -0
- data/web/vendor/jquery-ui.min.js +413 -0
- data/web/vendor/jquery.maskedinput.js +252 -0
- data/web/vendor/rickshaw.css +286 -0
- data/web/vendor/rickshaw.fnordmetric.js +2676 -0
- metadata +129 -79
- data/Gemfile +0 -6
- data/README.md +0 -404
- data/Rakefile +0 -6
- data/doc/version +0 -1
- data/haml/app.haml +0 -79
- data/haml/widget.haml +0 -9
- data/lib/fnordmetric/app.rb +0 -163
- data/lib/fnordmetric/average_metric.rb +0 -7
- data/lib/fnordmetric/bars_widget.rb +0 -26
- data/lib/fnordmetric/combine_metric.rb +0 -7
- data/lib/fnordmetric/count_metric.rb +0 -13
- data/lib/fnordmetric/funnel_widget.rb +0 -2
- data/lib/fnordmetric/metric.rb +0 -80
- data/lib/fnordmetric/metric_api.rb +0 -37
- data/lib/fnordmetric/numbers_widget.rb +0 -26
- data/lib/fnordmetric/report.rb +0 -29
- data/lib/fnordmetric/sum_metric.rb +0 -13
- data/lib/fnordmetric/timeline_widget.rb +0 -30
- data/lib/fnordmetric/toplist_widget.rb +0 -25
- data/pub/fnordmetric.css +0 -145
- data/pub/fnordmetric.js +0 -1179
- data/pub/vendor/highcharts.js +0 -170
- data/pub/vendor/jquery-1.6.1.min.js +0 -18
data/doc/V1.0-ROADMAP
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
FnordMetric v1.0
|
2
|
+
================
|
3
|
+
|
4
|
+
|
5
|
+
TODO
|
6
|
+
----
|
7
|
+
|
8
|
+
- timeseries-widget: cardinal on/off should be skeuomorph
|
9
|
+
- proper cmdline output (status?)
|
10
|
+
- caching
|
11
|
+
- fix specs
|
12
|
+
- namespace picker in sidebar
|
13
|
+
- split up fnordmetric.namespace block into multiple files
|
14
|
+
- pie widget (+ fix for old first)
|
15
|
+
- distgauge: render std. deviation
|
16
|
+
- timeseries-gauge: overview series weights
|
17
|
+
- timeseries-gauge: punchcards
|
18
|
+
- incr_fraction: implement progressive
|
19
|
+
- timeseries gauge: restrict to max resolution
|
20
|
+
- formatter: num, time, currency, percent, time_of_day
|
21
|
+
- minimize/pack js + css
|
22
|
+
- put images into one sprite
|
23
|
+
- nice empty states
|
24
|
+
- favicon (F)
|
25
|
+
|
26
|
+
|
27
|
+
WIKI
|
28
|
+
----
|
29
|
+
|
30
|
+
> fnordmetric
|
31
|
+
> sending data
|
32
|
+
- _type, _time field mandatory
|
33
|
+
- tcp, udp, redis, http
|
34
|
+
- events containing user data (_session, _name)
|
35
|
+
- _namespace
|
36
|
+
> running fnordmetric
|
37
|
+
- standalone
|
38
|
+
- standalone w/ multiple workers
|
39
|
+
- configuration options
|
40
|
+
|
41
|
+
> event handlers
|
42
|
+
- data, time, session etc methods
|
43
|
+
- storing data in the session
|
44
|
+
- end-of-session callback
|
45
|
+
|
46
|
+
> gauges
|
47
|
+
> timeseries gauge
|
48
|
+
- calculate-option: count, sum, progressive_sum, avg
|
49
|
+
- incr / incr_counter / incr_denominator
|
50
|
+
> toplist gauge
|
51
|
+
> distribution gauge
|
52
|
+
|
53
|
+
> custom dashboards
|
54
|
+
- here be dragons
|
55
|
+
|
56
|
+
> examples
|
57
|
+
- full_example.rb
|
58
|
+
|
59
|
+
> hacking
|
60
|
+
- here be dragons
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
IDEAS
|
67
|
+
-----
|
68
|
+
|
69
|
+
> overview view: gauge list (a'la github graphs landing)
|
70
|
+
> overview view: num active users, system stats (realtime widget)
|
71
|
+
> special events (incr, observe etc)
|
72
|
+
> distgauge: histograms tab
|
73
|
+
> toplgauge: tabs: compare
|
74
|
+
> timeseries-gauge: cmp. w/yesterday option
|
75
|
+
> geo_distribution_gauge
|
76
|
+
> value correlation / scatter plot (2d) gauge
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
CHANGELOG
|
82
|
+
---------
|
83
|
+
|
84
|
+
> improved ui
|
85
|
+
> highcharts is dead, long live d3.js :)
|
86
|
+
> websockets instead of ajax
|
87
|
+
> new gauges are variable interval!
|
88
|
+
> new gauges: timeseries, toplist, distribution (anti-repetition!)
|
89
|
+
> timeseries gauge: fraction api
|
90
|
+
> new things: trends, punchards, stdeviation etc
|
91
|
+
> splitted up code into acceptor, web, worker etc.
|
92
|
+
> splitted up javascript code
|
93
|
+
> refactorings, no server-side rendering
|
94
|
+
> less ram usage / garbage collection / single tick
|
95
|
+
> fnordmetric:announce redis pusub event-data instead of event_id
|
96
|
+
> config in multiple files
|
97
|
+
|