gemhome / fnordmetric

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

My Toplist Gauges Disappear #75

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by fiedl Tuesday Dec 10, 2013 at 10:11 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/171


What I'm trying to do

I'm using FnordMetric Classic through the fnordmetric ruby on rails gem, as shown in Railscasts #378.

I would like to have a list of my "popular pages", where a page is a type of content of my web app.

Problem

Regardless of the used version, in production as well as in development, the contents of my so called toplist gauges keep disappearing.

This can be seen in the following screenshot, where the list "Top Keys" of the "Popular Pages Toplist Gauge" is empty, where it should be filled with the most visited pages.

Screenshot -- the toplist gauge is empty, but it should not

A few observations

This is the relevant part of the source code to create this gauge:

 # script/fnordmetric_app.rb
 require 'fnordmetric'

 FnordMetric.namespace :my_web_app do
   toplist_gauge :popular_pages, title: "Popular Pages"
   event :show_page do
     observe :popular_pages, data[:title]
   end
   # ...
 end

 FnordMetric::Web.new(port: 4242, use: middleware)
 FnordMetric::Worker.new
 FnordMetric.run

Thank you for your help!


I've posted this issue also as stackoverflow question, but so far without solution.