Prototype Repo to House info on Telemetry probes
Перейти к файлу
irrationalagent 0d5a2a6520 actually change readme 2021-02-09 10:57:44 -07:00
.github/workflows edit readme 2021-02-09 10:56:05 -07:00
metrics edit readme 2021-02-09 10:56:05 -07:00
.gitignore edit readme 2021-02-09 10:56:05 -07:00
README.md actually change readme 2021-02-09 10:57:44 -07:00
functions.py First commit 2021-02-09 10:04:16 -07:00
metrics_schema.yaml First commit 2021-02-09 10:04:16 -07:00
requirements.txt First commit 2021-02-09 10:04:16 -07:00

README.md

Probe Knowledge Repo (Prototype)

This is intended to be a proof of concept repository meant to house knowledge and resources about our telemetry probes.

Each probe for Firefox Desktop and Fenix has its own yaml file found in the ./metrics/fenix and ./metrics/firefox_desktop directories.

Files are split into two sections - the first section contains basic information reproduced from the probe dictionaries. The second section contains user-editable fields meant to be easily updated with links, tribal knowledge, gotchas etc about how the probe can be used analyzed. These yaml files can be edited directly in github.

functions.py contains some (pretty hacky) python functions for pulling probe data down from the probe info service and writing/updating the probe yaml files. Specifically:

  • update_file_list will pull down the most recent probe data from the probe info service and update existing yaml files where needed, as well as write new files if it finds new probes. This function will NOT overwrite what's been added to the user-editable sections of the existing yaml files.

  • build_files will create the per-probe yaml files from scratch. This function WILL overwrite any previous changes to the user-editable sections.

I modified this repo from Jeff's here, but I'm really using what he has there (yet).

Things to do

  1. Are these the right editable fields for the yaml files?
  2. Add tests (validate the format of the yaml files like jeff was doing).
  3. Does the formatting of the additional fields I added make them technically not yaml files anymore?
  4. Setup CI to periodically run the update_file_list function to get new probes and update probe metadata.
  5. Clean up the code in functions.py to conform with all the standards and such. Export the functions so they can be run from the CLI
  6. Define the process for those wanting to edit the yaml files - do we need reviews (I am leaning towards no).
python3 -m venv venv
pip install -r requirements.txt