--- url: "https://asyncapi.com/docs/tools/cli/metrics_collection" titulek: "Metrics Collection | AsyncAPI Initiative for event-driven APIs" h1: "Metrics Collection" popis: "Metrics collection guideline AsyncAPI anonymously tracks command executions to improve the specification and tools, ensuring no sensitive data reaches our servers. It aids in comprehending how AsyncA" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:45:05" znaku: 3379 slov: 438 kodovani: "utf-8" sha256: "67cc6799b4ceb0a5b0fb153b3fbda278cdfa57bb7b138446afa7e55bd0e2439d" --- ##### On this page Metrics collection guideline What we collect Where the data is stored How to disable tracking # Metrics Collection Found an error? Have a suggestion?[Edit this page on GitHub](https://github.com/asyncapi/cli/tree/master/docs/metrics_collection.md) # Metrics collection guideline AsyncAPI **anonymously** tracks command executions to improve the specification and tools, ensuring no sensitive data reaches our servers. It aids in comprehending how AsyncAPI tools are used and adopted, facilitating ongoing improvements to our specifications and tools. Even though metrics collection is enabled by default, you can always disable tracking if you want to. ## What we collect We are collecting the following metrics: - `asyncapi_adoption.action.invoked` : With this metric we are tracking the command executed on the CLI as soon as the command is invoked, so it has already been executed but not finished yet. We just want to know which commands are used, regardless they have failed or succeeded. Example of the data collected by this metric when the `validate` command has been executed: ``` asyncapi_adoption.action.invoked COUNTER { action: 'validate' } 1 ``` - `asyncapi_adoption.action.finished` : This metric tracks the command executed once it has already finished, carrying the result of the execution and some metadata based on the AsyncAPI document in place. Example for `validate` command successfully executed and finished: ``` asyncapi_adoption.action.finished COUNTER { validation_result: 'valid', success: true, asyncapi_version: '2.6.0', asyncapi_servers: 2, asyncapi_channels: 4, asyncapi_messages: 3, asyncapi_operations_send: 3, asyncapi_operations_receive: 1, asyncapi_schemas: 52, action: 'validate' } 1 ``` ## Where the data is stored We are making use of [New Relic API](https://docs.newrelic.com/docs/apis/intro-apis/introduction-new-relic-apis/#rest-api) to send the metrics collected to *New Relic* servers, where they are stored, and finally visualized on the AsyncAPI website. Metrics won't be collected in CI environments, or when the "CI" env variable is set up to "true". The analytics config file will be store by default at your home directory. In case you prefer to change the file path then you should set the `ASYNCAPI_METRICS_CONFIG_PATH` env var to any specific path value when running any command. For instance: ``` ASYNCAPI_METRICS_CONFIG_PATH=/tmp/.asyncapi-analytics asyncapi config analytics --status ``` ## How to disable tracking To disable tracking, please run the following command: `asyncapi config analytics --disable` Once disabled, if you want to enable tracking back again then run: `asyncapi config analytics --enable` In case you do not know the current status of analytics, then you can append the "--status" flag to be aware of it: `asyncapi config analytics --status` Remember that keeping this tracking enabled will help AsyncAPI community to provide better specifications and tools in the future. [Go BackDebugging & Testing Guide](/docs/tools/cli/debugging-testing) [Up NextGuides - Overview](/docs/guides) Was this helpful? Help us improve the docs by sharing your feedback. [Submit Feedback](https://github.com/asyncapi/website/issues/new?template=docs-feedback.yml&title=Docs%20Feedback%3A%20%2Fdocs%2Ftools%2Fcli%2Fmetrics_collection&labels=%F0%9F%93%91%20docs) OR [Create Issue on GitHub](https://github.com/asyncapi/website/issues/new/choose)