Page MenuHomePhabricator

Migrate MediaWiki.extension.PageTriage to statslib
Closed, ResolvedPublic

Description

Follow the migration process as outlined below.

Secure/Conduct code review(s).
Deploy the changes to production via the train (https://wikitech.wikimedia.org/wiki/Deployments/Train).
Verify that the changes have been successfully implemented.
Update the relevant dashboard(s) by replacing the old Graphite metric(s) with the new Prometheus metric(s).
Please follow the guidelines and standards outlined in the provided documentation:

https://www.mediawiki.org/wiki/Manual:Stats for detailed guidance on the conversion process.
https://drive.google.com/file/d/12yQEuOapkML1vb9MgCaX1QzbLBdXE6X2/view for a video tutorial on the conversion process.
https://docs.google.com/presentation/d/1SZWf_D3mWNX-XHN8PHYI84LDZr6GUQC2AMhZ9mQXCI0/edit#slide=id.g2795460c956_0_23 for slides on the best practices for converting metrics to statslib.

  • MediaWiki.extension.PageTriage.by_wiki.enwiki.noindex.sum
  • MediaWiki.extension.PageTriage.by_wiki.*.noindex.rate
  • MediaWiki.extension.PageTriage.enwiki.viewsToolbar.delete.error.sum
  • MediaWiki.extension.PageTriage.enwiki.viewsToolbar.tags.error.sum

Event Timeline

Change #1123035 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[mediawiki/extensions/PageTriage@master] mediawiki: Migrate MediaWiki.extension.PageTriage to Prometheus

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

Change #1123035 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] mediawiki: Migrate MediaWiki.extension.PageTriage to Prometheus

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

Hi everyone,

I recently migrated this metric, and the change has already been deployed to production. However, I'm unable to find the metric in the Thanos store, which is needed to migrate the associated Grafana panels.

Here's the dashboard in question: PageTriage Debugging

Unlike other Mw.Track metrics, this particular one isn't showing up when selecting Thanos as the data source.

Could you help me understand why this metric might not be appearing in Thanos? @colewhite @Krinkle @DAlangi_WMF Thanks in advance!

Change #1131814 had a related patch set uploaded (by Andrea Denisse; author: Andrea Denisse):

[mediawiki/extensions/PageTriage@master] mediawiki: Add missing counter to the PageTriage metrics

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

I think it's because the object is the second argument rather than the measurement.

If so, the cause is that mw.track isn't very ergonomic. It has no function signature, nor any clear tips on what the function expects due to its job is only to queue the data up. We're likely see more of these. Probably worth adding a warning on https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mw.track if this is truly the problem.

Change #1131814 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] mediawiki: Add missing counter to the PageTriage metrics

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

I think it's because the object is the second argument rather than the measurement.

If so, the cause is that mw.track isn't very ergonomic. It has no function signature, nor any clear tips on what the function expects due to its job is only to queue the data up. We're likely see more of these. Probably worth adding a warning on https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mw.track if this is truly the problem.

Once the change is deployed in production I can test if it was issue and I'll add the warning in our docs.
Thanks for taking a look!

andrea.denisse changed the task status from Open to In Progress.Mar 27 2025, 10:38 PM
andrea.denisse claimed this task.

Change #1136819 had a related patch set uploaded (by Cwhite; author: Cwhite):

[mediawiki/extensions/PageTriage@master] migrate stats production to Prometheus

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

Change #1136819 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] migrate stats production to Prometheus

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