Mozilla Community Analytics 101

Access Community Analytics

Search Data

  • Top right, set the time range to Last 2 years
  • Left navigation bar: Select the index (data source) you want to query (e.g. discourse_enrich)
  • See Available Fields
  • A click on a specific field reveals the top 5 matches for that field (e.g. top 5 users)
  • These fields can also be used as filters in the search box on the top (e.g. username:henx)

Filter Examples

  • username:henx
  • All Discourse posts by Henrik
  • (username:mkohler OR username:henx) AND reads:[10 TO *]
  • All Discourse posts by Henrik and Michael which have been read at least 10 times or more.

Data Visualization

This is where cool stuff happens, but I am not familiar enough with Kibana 4 to provide a lot of details here.

More Filter Fun

Query for an enumerated list of contributors:
{
  "query": {
    "terms": {
      "author_name": [
        "Adriano Cupello",
        "Geraldo Barros",
        "Andre Garzia",
        "Clauber Stipkovic",
        "Carlos Valim"
      ]
    }
  }
}

Query for all ParSys contributions:
{
  "query": {
    "terms": {
      "repo_name": [
        "https://github.com/mozilla/discourse-auth0-mozilla.git",
        "https://github.com/mozilla/discourse-auto-email-in.git",
        "https://github.com/mozilla/discourse-expose-emails-in.git",
        "https://github.com/mozilla/discourse-mozillians.git",
        "https://github.com/mozilla/discourse.mozilla-community.org.git",
        "https://github.com/mozilla/iam-project-backlog.git",
        "https://github.com/mozilla/mozilla-django-oidc.git",