FnordMetric Toplist Gauges Disappear

Maybe the title attribute on the data you send is blank?

You could also check the data is redis with redis-cli (I would use the MONITOR command).

Also FordMetrics is now discontinued and is now a charting library called clip:

What happened to the project name?

The project was started in 2011 and was initially called “FnordMetric”. The first version from 8 years ago also included facilities for storing and transforming data in addition to the charting code. Over time, the data processing parts were removed, leaving only the plotting code. However, as a consequence, most of the search queries for the project name would return outdated information, resulting in a generally confusing and stale-feeling situation. The best solution seemed to be to rename the project and so it was renamed to “clip”.

Nowadays I would write it manually in the database instead of redis:

  • have an events table with kind (string) and data (jsonb)
  • on a products#show, create an event with kind: product_show and data product.attributes like Ryan Bates did in the railscast
  • In your admin interface do a query like:
Event
  .where(kind: "product_show")
  .group("data->>'id'")
  .select("count(*) as count, array_agg(data->>'title')[1] as title)
  • render those products

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)