Metrics
This document enumerates the metrics collected by this project using the Glean SDK. This project may depend on other projects which also collect metrics. This means you might have to go searching through the dependency tree to get a full picture of everything collected by this project.
Pings
usage
Sent when the mach invocation is completed (regardless of result). Contains information about the mach invocation that was made, its result, and some details about the current environment and hardware.
This ping includes the client id.
Data reviews for this ping:
Bugs related to this ping:
All Glean pings contain built-in metrics in the ping_info and client_info sections.
In addition to those built-in metrics, the following metrics are added to the ping:
Name |
Type |
Description |
Data reviews |
Extras |
Expiration |
|
|---|---|---|---|---|---|---|
mach.argv |
Parameters provided to mach. Absolute paths are sanitized to be relative to one of a few key base paths, such as the “$topsrcdir”, “$topobjdir”, or “$HOME”. For example: “/home/mozilla/dev/firefox/python/mozbuild” would be replaced with “$topsrcdir/python/mozbuild”. If a valid replacement base path cannot be found, the path is replaced with “ |
never |
||||
mach.command |
The name of the mach command that was invoked, such as “build”, “doc”, or “try”. |
never |
||||
mach.duration |
How long it took for the command to complete. |
never |
||||
mach.moz_automation |
True if this command is being run on Mozilla Automation/CI |
never |
||||
mach.success |
True if the mach invocation succeeded. |
never |
||||
mach.system.cpu_brand |
CPU brand string from CPUID. |
never |
||||
mach.system.crowdstrike_running |
True if CrowdStrike security software is running. |
never |
||||
mach.system.distro |
The name of the operating system distribution. |
never |
||||
mach.system.distro_version |
The high-level OS version. |
never |
||||
mach.system.fleet_running |
True if FleetDM endpoint management tool is running. |
never |
||||
mach.system.logical_cores |
Number of logical CPU cores present. |
never |
||||
mach.system.memory |
Amount of system memory. |
never |
||||
mach.system.physical_cores |
Number of physical CPU cores present. |
never |
||||
mach.system.ssh_connection |
True if the current shell is a remote SSH connection. |
never |
||||
mach.system.vscode_running |
True if there is an instance of vscode running. |
never |
||||
mach.system.vscode_terminal |
True if the current terminal is opened via Visual Studio Code. |
never |
||||
mozbuild.artifact |
True if |
never |
||||
mozbuild.ccache |
True if |
never |
||||
mozbuild.clobber |
True if the build was a clobber/full build. |
never |
||||
mozbuild.compiler |
The compiler type in use (CC_TYPE), such as “clang” or “gcc”. |
never |
||||
mozbuild.debug |
True if |
never |
||||
mozbuild.opt |
True if |
never |
||||
mozbuild.project |
The project being built. |
never |
||||
mozbuild.sccache |
True if ccache in use is sccache. |
never |
||||
mozbuild.target |
The target architecture for the build, such as “x86_64-pc-mingw32”. |
never |
||||
mozbuild.tier_artifact_duration |
How long it took for the artifact tier of the build to complete. |
never |
||||
mozbuild.tier_compile_duration |
How long it took for the compile tier of the build to complete. |
never |
||||
mozbuild.tier_configure_duration |
How long it took for the configure tier of the build to complete. |
never |
||||
mozbuild.tier_export_duration |
How long it took for the export tier of the build to complete. |
never |
||||
mozbuild.tier_libs_duration |
How long it took for the libs tier of the build to complete. |
never |
||||
mozbuild.tier_misc_duration |
How long it took for the misc tier of the build to complete. |
never |
||||
mozbuild.tier_pre_export_duration |
How long it took for the pre-export tier of the build to complete. |
never |
||||
mozbuild.tier_tools_duration |
How long it took for the tools tier of the build to complete. |
never |
Data categories are defined here.