Following up on T400557: Identify Prometheus events required to assess tool health, instrument the events identified on the dashboard, and confirm step.
Scope of this task is to instrument the events in the code, and verify that they are registered.
A follow up task will be used to track the creation of a dashboard that uses these events.
Resource
- https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mw.track
- https://wikitech.wikimedia.org/wiki/Prometheus
Feature monitoring events
- Recommendation
- Single event: Mobile, Desktop
- stats.mediawiki_cx_recommendation_fail_total
- Single event: Mobile, Desktop
- Entrypoints
- Single event: Mobile, Desktop
- stats.mediawiki_cx_entrypoint_{type}_success_total
- Single event: Mobile, Desktop
- Searching for article
- Single event: Mobile, Desktop
- stats_mediawiki_cx_articlesearch_fail_total
- Single event: Mobile, Desktop
Access monitoring events
All of these events have to be added, separately for mobile and desktop.
- Dashboard
- stats.mediawiki_cx_access_dashboard_total
- stats.mediawiki_cx_access_mobile_dashboard_total
- Pick a section step
- stats.mediawiki_cx_access_selectsection_total
- stats.mediawiki_cx_access_mobile_selectsection_total
- Compare step
- stats.mediawiki_cx_access_sectioncompare_total
- stats.mediawiki_cx_access_mobile_sectioncompare_total
- Searching for article (after search is triggered)
- stats.mediawiki_cx_access_articlesearch_total
- stats.mediawiki_cx_access_mobile_articlesearch_total