Activity Metrics for Firefox Accounts
This repo hosts some supporting scripts for the "activity metrics" pipeline in Firefox Accounts. It's all a little ad-hoc while we figure out exactly what that pipeline will look like.
Right now we have the following moving parts:
A heka filter that dumps an anonymized 10% sample of user activity events as a weekly export in S3.
An EC2 instance accessible at
firstname.lastname@example.org, which is configured to talk to a Redshift instance at
rfkelly-fxa-test.cfvijmj2d97c.us-west-2.redshift.amazonaws.com, and which we run the following via cron:
import_activity_events.pyscript, which pulls the activity event data from S3 into Redshift to populate an "events" table.
calculate_daily_summary.pyscript, which summarizes the raw activity event data to populate of users who were active on each day, and a table of users who qualified as "multi-device" users on each day.
Some redash dashboards that visualize the data from these tables in various ways. They include:
Feel free to create your own visualizations of this data by logging in at the hosted redash instance. The data source is now "rfkelly-fxa-test".