···11+# Metrics collecting {#metrics}
22+33+<!--
44+Copyright 2022, Collabora, Ltd. and the Monado contributors
55+SPDX-License-Identifier: BSL-1.0
66+-->
77+88+## Requirements
99+1010+Monado comes with it's own metrics collection and is built by default. No action
1111+is needed by the developer to build the Monado sides of things. You will need to
1212+checkout the [metrics repo][] to get the tools to analyse the resulting output
1313+from Monado.
1414+1515+## Running
1616+1717+Launch the service with the env variable `XRT_METRICS_FILE` set.
1818+1919+```bash
2020+XRT_METRICS_FILE=/path/to/file.protobuf monado-service
2121+```
2222+2323+After Monado has finished running run the tool in the [metrics repo][], follow
2424+the instructions in the [README.md][] file inside of that repo, there are more
2525+instructions there.
2626+2727+[metrics repo]: https://gitlab.freedesktop.org/monado/utilities/metrics
2828+[README.md]: https://gitlab.freedesktop.org/monado/utilities/metrics/-/blob/main/README.md