Page MenuHomePhabricator

Instrument the Prometheus events identified - I
Closed, ResolvedPublic4 Estimated Story Points

Description

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

Feature monitoring events

  • Recommendation
    • Single event: Mobile, Desktop
      • stats.mediawiki_cx_recommendation_fail_total
  • Entrypoints
    • Single event: Mobile, Desktop
      • stats.mediawiki_cx_entrypoint_{type}_success_total
  • Searching for article
    • Single event: Mobile, Desktop
      • stats_mediawiki_cx_articlesearch_fail_total

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

Event Timeline

abi_ removed the point value 4 for this task.Jul 27 2025, 9:43 AM
abi_ updated the task description. (Show Details)
abi_ set the point value for this task to 4.
abi_ changed the task status from Open to In Progress.Sep 17 2025, 7:12 AM
abi_ claimed this task.
abi_ moved this task from Backlog to In Progress on the LPL Essential (2025 Jul-Oct) board.

Change #1189150 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] Remove unused legacy eventlogging script

https://gerrit.wikimedia.org/r/1189150

Change #1189396 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] suggestions.js: Log failure when call to recommendation API fails

https://gerrit.wikimedia.org/r/1189396

Change #1189448 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] page.js: Log when the call to search pages API fails

https://gerrit.wikimedia.org/r/1189448

Change #1189537 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] Add event log for dashboard access

https://gerrit.wikimedia.org/r/1189537

Change #1189833 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] Add event log for search article feature access

https://gerrit.wikimedia.org/r/1189833

Change #1189834 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] Add event log for section selection step

https://gerrit.wikimedia.org/r/1189834

Change #1189835 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] Add event log for section compare step

https://gerrit.wikimedia.org/r/1189835

Change #1189150 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Remove unused legacy eventlogging script

https://gerrit.wikimedia.org/r/1189150

Change #1189396 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] suggestions.js: Log failure when call to recommendation API fails

https://gerrit.wikimedia.org/r/1189396

Change #1189448 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] page.js: Log when the call to search pages API fails

https://gerrit.wikimedia.org/r/1189448

Change #1189537 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add event log for dashboard access

https://gerrit.wikimedia.org/r/1189537

Change #1189833 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add event log for search article feature access

https://gerrit.wikimedia.org/r/1189833

Change #1189834 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add event log for section selection step

https://gerrit.wikimedia.org/r/1189834

Change #1189835 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Add event log for section compare step access

https://gerrit.wikimedia.org/r/1189835

hueitan updated the task description. (Show Details)

all of the above events are added and merged,

pending stats.mediawiki_cx_entrypoint_{type}_success_total, need confirm the variants of "type" and the meaning of it.

Change #1192155 had a related patch set uploaded (by Eamedina; author: Eamedina):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250929

https://gerrit.wikimedia.org/r/1192155

Change #1192155 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20250929

https://gerrit.wikimedia.org/r/1192155

For stats.mediawiki_cx_entrypoint_{type}_success_total (to be added) we have the mw.cx.cta.accept defined but that doesn't appear to be triggered in the mobile editor / unified dashboard codebase.

Change #1193420 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/ContentTranslation@master] SX: Fire event to log campaign details

https://gerrit.wikimedia.org/r/1193420

Change #1193420 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Fire event to log campaign details

https://gerrit.wikimedia.org/r/1193420

All the events have been instrumented. We're doing QA to verify that these are being triggered properly. ETA on completion 2025-10-15.

Change #1195152 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/ContentTranslation@master] Fix the event log for search article feature access

https://gerrit.wikimedia.org/r/1195152

Change #1195152 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] Fix the event log for search article feature access

https://gerrit.wikimedia.org/r/1195152

Change #1195226 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251010

https://gerrit.wikimedia.org/r/1195226

Change #1195226 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 1.0.0+20251010

https://gerrit.wikimedia.org/r/1195226