|
1 | 1 | ``metrics.yaml`` file |
2 | 2 | ===================== |
3 | 3 |
|
4 | | -The ``metrics.yaml`` file defines what metrics and events your application will |
5 | | -collect. |
6 | | - |
7 | | -The top-level of the file must contain the following key-value pair to indicate |
8 | | -that it is a Glean ``metrics.yaml`` file:: |
9 | | - |
10 | | - $schema: moz://mozilla.org/schemas/glean/metrics/2-0-0 |
11 | | - |
12 | | -The other keys at the top level of the file are category names. Category names |
13 | | -must be in ``snake_case``, but may also contain ``.`` to indicate *ad hoc* |
14 | | -subcategories. Category names have a maximum of 40 characters. |
15 | | - |
16 | | -Within each category, the individual metrics are defined. The key is the name of |
17 | | -the metric (``snake_case`` with a maximum of 30 characters), and each value is |
18 | | -an object with the following parameters described below. |
19 | | - |
20 | | -``metrics.yaml`` files must be encoded in UTF-8. |
21 | | - |
22 | | -Metric parameters |
23 | | ------------------ |
24 | | - |
25 | | -.. metric_parameter:: type |
26 | | - |
27 | | -.. metric_parameter:: description |
28 | | - |
29 | | -.. metric_parameter:: notification_emails |
30 | | - |
31 | | -.. metric_parameter:: bugs |
32 | | - |
33 | | -.. metric_parameter:: data_reviews |
34 | | - |
35 | | -.. metric_parameter:: lifetime |
36 | | - |
37 | | -.. metric_parameter:: send_in_pings |
38 | | - |
39 | | -.. metric_parameter:: disabled |
40 | | - |
41 | | -.. metric_parameter:: expires |
42 | | - |
43 | | -.. metric_parameter:: version |
44 | | - |
45 | | -.. metric_parameter:: time_unit |
46 | | - |
47 | | -.. metric_parameter:: labels |
48 | | - |
49 | | -.. metric_parameter:: extra_keys |
50 | | - |
51 | | -.. metric_parameter:: gecko_datapoint |
52 | | - |
53 | | -.. metric_parameter:: no_lint |
| 4 | +Documentation for the ``metrics.yaml`` file has moved to `metrics parameters in the Glean user documentation <https://mozilla.github.io/glean/book/user/metric-parameters.html>`_. |
54 | 5 |
|
55 | 6 | JSON Schema |
56 | 7 | ----------- |
|
0 commit comments