Web-frontend for aggregated telemetry data
Перейти к файлу
Alessio Placitelli 61ed82c89d Move to the non-public section 2024-11-14 11:52:01 -05:00
assets Add Data Catalog 2023-06-16 09:24:18 +02:00
dashboard-generator bug 1648102 - Remove analytics we aren't analysing 2020-06-24 10:52:04 -04:00
histogram-simulator bug 1648102 - Remove analytics we aren't analysing 2020-06-24 10:52:04 -04:00
new-pipeline Update link to use counters dashboard 2024-04-18 09:35:07 -04:00
probe-dictionary redirect old probe dictionary to the new one at PTMO 2019-12-04 15:56:59 -05:00
update-orphaning Revert "Add error notice for DSRE-951 to Update Orphaning dash" 2023-05-18 13:39:32 +02:00
v2 bug 1715050 - Remove Release-channel data display and Auth 2021-06-16 15:58:05 -04:00
wrapper Configurable evoBucketIndex implementation (#571) 2018-08-08 16:17:29 -04:00
.gitignore task: update links on updates dash and add case for 72.0.2 watershed 2020-04-13 11:16:42 -04:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-28 10:28:34 -04:00
LICENSE Added more license disclaimer... 2013-12-17 14:00:55 -08:00
README.md Remove references to s3 2023-05-03 16:06:56 -04:00
favicon.ico Add favicon. 2015-09-12 20:29:40 -04:00
favicon.xcf Add favicon. 2015-09-12 20:29:40 -04:00
index.html Move to the non-public section 2024-11-14 11:52:01 -05:00

README.md

Telemetry Dashboard

This repository contains the source code for telemetry.mozilla.org. The dashboards on this site can be used for everything from checking measure values to figuring out common causes of Firefox hangs.

The main dashboards on telemetry.mozilla.org consume data from Telemetry's backend using Telemetry.js.

This repository also contains the source code for Telemetry.js. The specific files can be found under the v2/ directory.

Deploying Telemetry Dashboard

The telemetry.mozilla.org site is hosted in Github Pages, so it may also be accessed via mozilla.github.io/telemetry-dashboard. In front of Github Pages, there is also a GCP CDN (managed by DSRE).

Updates to the gh-pages branch (also the default branch) will be reflected on telemetry.mozilla.org after a few moments.

Using Telemetry.js

Check out the documentation!

Adding Telemetry Probes

See this MDN article, which outlines the process and details for adding new Telemetry probes to Firefox which can be used with the dashboards.

For setting histogram properties, make sure to check out the histogram simulator, which might help with designing histograms that fit the expected data well.

Contributing to the Telemetry Dashboard

This project is entirely open source, and licensed under the MPL to boot. Contributions welcome!

Getting started

Looking for some task to get started on? Check the list of mentored issues. If you're unsure what to choose, just get in touch.

Communication happens mostly on Github in the comments for issues or pull requests, but we're also active in IRC in #tmo on irc.mozilla.org.

Working on the dashboard

A local webserver is really helpful for running a version of the site on the same machine you're developing on.

  • This can be done as follows (requires Python):

        cd /PATH_TO_REPOSITORY_ROOT
        python -m http.server
        # now visit localhost:8000 in your browser to see the page
    
  • It can also be done with NPM:

        cd /PATH_TO_REPOSITORY_ROOT
        npm install http-server -g
        # now visit localhost:8080 in your browser to see the page
    

Shortlink buttons (in the top right hand corner of the main dashboards) will not work when running the site on local servers. This is because they are shortened with bit.ly, which doesn't allow local links.

Submitting pull requests for the dashboard

For pull requests, it is recommended that you set up a live site hosting your branch. This makes it a lot easier for reviewers to check out the changes.

GitHub Pages is great for this, you can enable this in your forked repository under "Settings", "Github pages" and then share the link in your pull requests comments. The Github help pages have more information.

If you need more than one test site up at a time, try Divshot, a static website hosting service.

Working on Telemetry.js

Telemetry.js (both versions) is pretty straightforward to work on. However, note that sites that use Telemetry.js generally hotlink to the source files - make sure to preserve API backwards compatibility wherever possible.