Now that Sampler API is deployed and collecting data on Drupal.org, we'll want to convert http://drupal.org/metrics to use it for consistency. sampler already provides three of the five metrics on that page by default, so some of the work is already done. Remaining is:

  • Write sampler metrics for 'Commits created by month' and 'Committers by month'. we'll need to figure out where these metrics will live, it would be great if they were general enough to live in one of the versioncontrol modules.
  • Backfill data for the two metrics above. The other three have already been backfilled as part of #1497332: backfill metrics collected by Sampler API
  • Rework the page to use views_sparkline

Deployment

  • Upgrade sampler module
  • drush sampler-update-storage-plugin drupalorg drupalorg_user_metric drupal_database_table_per_metric
  • drush sampler-update-method-plugin drupalorg drupalorg_user_metric periodic
  • drush sampler-sample drupalorg drupalorg_user_metric --startstamp=1010275200

Comments

mikey_p’s picture

We'll probably need to write all new metrics for these since sampler's current metrics seem to be based on weekly stats, and trying to display a chart with reasonable time range with that granularity is fairly unreadable graph.

hunmonk’s picture

@mikey_p: we can configure sampler's metrics to run on a longer sample time, i believe bdragon has a patch that adds a monthly time period to the periodic method plugin, or it currently can be configured to sample every 4 weeks.

also, we can certainly consider taking the existing weekly samples and using them for a different display. :)

hunmonk’s picture

#1559916: Monthly support has landed, so we can now convert users/nodes/comments to monthly if we want.

webchick’s picture

Priority: Normal » Critical

http://drupal.org/metrics is a blank page. It wasn't before this sampler stuff was done. Needs fixing.

hunmonk’s picture

Priority: Critical » Normal

it's not a blank page for me.

also, the sampler 'changes' have done nothing but populate database tables with metric data, so any UI bugs are definitely not related.

mikey_p’s picture

Just opened #1568080: Add sampler support to track metrics for commits. I'll try to get the relevant metrics created and added over there.

drumm’s picture

Title: convert http://drupal.org/metrics to be driven by sampler metrics » Convert http://drupal.org/metrics to be driven by sampler metrics
Project: Drupal.org infrastructure » Drupal.org customizations
Version: » 7.x-3.x-dev
Component: Metrics » Code
Issue summary: View changes
Parent issue: » #2193959: [meta] Add more metrics

  • drumm committed fd5ccd7 on 1556474-sampler-metrics
    Issue #1556474: Initial pass at user count metric, with country...
drumm’s picture

Issue summary: View changes
drumm’s picture

Issue summary: View changes
drumm’s picture

Issue summary: View changes