Page MenuHomePhabricator

Migrate MediaWiki.global_blocking to statslib
Closed, ResolvedPublic1 Estimated Story Points

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.global_blocking.get_user_block_db_query.rate
  • MediaWiki.global_blocking.get_user_block.rate

Event Timeline

Change #1112781 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/GlobalBlocking@master] Replace StatsD with StatsFactory

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

Change #1112781 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Replace StatsD with StatsFactory

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

I've not been able to find the associated dashboard, so I've asked how to search for it. Moving this back to Ready.

Dashboard appears to be: https://grafana-rw.wikimedia.org/d/000000378/ladsgroup-test

This paste contains an audit of dashboard metrics usage as of Jan 2024: https://phabricator.wikimedia.org/P54551

Dashboard appears to be: https://grafana-rw.wikimedia.org/d/000000378/ladsgroup-test

This paste contains an audit of dashboard metrics usage as of Jan 2024: https://phabricator.wikimedia.org/P54551

Thanks!

I think Trust and Safety Product Team should probably have a panel for this data, so I'll create one (as it doesn't seem to fit into any of our existing dashboards) when the patch reaches all wikis via the train.

Dreamy_Jazz added a subscriber: Ladsgroup.

Created a TSP team miscellaneous dashboard for metrics that don't otherwise fit into other team dashboards. That is displaying data. Upgrading the use of the old metrics in a test dashboard seems out of this ticket's scope. cc @Ladsgroup as this is your test dashboard.

Feel free to just delete that thing. I will do it once I find some time.