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.
A few observations
- When I trigger an event, for example, visit a page on the monitored app, the visited page appears in the fnordmetric toplist gauge. But after a couple of minutes, it disappears.
- I've tried to increase the storage duration setting, without effect.
- As can be seen in the screenshot, the number of samples is not zero (it is 2.00). Therefore, the data has to be in the database, but it is not displayed.
Source code
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
Does anyone have a clue what I'm doing wrong?