gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Charts for three-dimensional gauges don't seem to work #68

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by JangoSteve Monday Aug 19, 2013 at 15:45 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/162


Following the pageviews example from the Classic Full Example, the logging and everything seems to work, if I look directly in Redis, but none of the gauges work for the three-dimensional per-URL pageview gauge.

The server:

  gauge :pageviews_per_url_daily,
    :tick => 1.day.to_i,
    :title => "Daily Pageviews per URL",
    :three_dimensional => true

  widget "Events",
    title: "Pageviews per URL Daily",
    gauges: [:pageviews_per_url_daily],
    type: :timeline,
    include_current: true,
    order_by: :field,
    width: 50,
    autoupdate: 1

What's in Redis:

screen shot 2013-08-19 at 11 42 40 am

What the gauge looks like in the Dashboard:

screen shot 2013-08-19 at 11 43 26 am

What the HTML5 Fnordmetric UI gauge looks like:

screen shot 2013-08-19 at 11 44 03 am

I would expect the gauges to print out the different Values in the legend, similarly to the series in the new-DSL-style timeseries_gauge. But that doesn't happen.

bf4 commented 10 years ago

Comment by masone Wednesday Aug 21, 2013 at 18:01 GMT


Timeline widgets cannot display data from three dimensional gauges. Only bars and toplist can. See http://fnordmetric.io/documentation/classic_widgets/

bf4 commented 10 years ago

Comment by JangoSteve Wednesday Aug 21, 2013 at 18:16 GMT


So, I guess this becomes a feature request then, as it would seem it's impossible with the current functionality to have a timeline widget with multiple series.

bf4 commented 10 years ago

Comment by masone Wednesday Aug 21, 2013 at 18:23 GMT


The timeline widget already has a third dimension: The time. So the feature you are looking for is not available by design.

bf4 commented 10 years ago

Comment by JangoSteve Wednesday Aug 21, 2013 at 18:42 GMT


@masone Correct. It's just confusing because the timeline widget has a legend. If it's by design, then there shouldn't be a legend with a series color indicator, because the legend would simply be the title of the graph.

It was also surprising given that the a multiple-series timeseries gauge is available via the Classic Dashboard (and is in fact shown in the main screenshot on the Fnordmetric homepage, it's just not available or even possible via the UI library (I'm guessing because the UI library is still a work in progress).

bf4 commented 10 years ago

Comment by JangoSteve Wednesday Aug 21, 2013 at 18:49 GMT


By the way, I think the primary issue is that the new timeseries_gauge helper is great, there just seems to be no way to get that gauge/graph working using the Fnordmetric UI library, as it only seems to have counter and a very basic timeseries (with no support for series) widget types implemented. I.e. it's possible in the Fnordmetric dashboard, but not in the UI library.

bf4 commented 10 years ago

Comment by masone Wednesday Aug 21, 2013 at 19:00 GMT


Ah, what you're seeing in the main screenshot is a timeline widget that displays multiple gauges. This works well if you have a limited set of things you can create gauges for. This is not applicable to the dynamic pageviews you want to track. I have only been using the classic stuff so I can't really hep with UI. And also found that the helpers are cool but limited.

bf4 commented 10 years ago

Comment by JangoSteve Wednesday Aug 21, 2013 at 19:39 GMT


Yeah, I've come to understand that after going through all the source code for fnordmetric-core and fnordmetric-ui.

I think the part that was confusing was simply the fact that the timeline UI widget has a legend, which implies that there's some way to use it, when in fact the legend could never have more than one series (thus rendering the legend both useless and misleading). I'm guessing this is due to the default configuration of the graphing library having the ability to show data that Fnordmetric has no way of storing.