This task aims to convert MediaWiki statistics end-to-end to a Prometheus-capable metrics library and port/migrate all existing metrics to this new implementation.
The hypothesis driving this project is that by aggregating all MediaWiki statistics in a single modern system, we can improve the developer workflow and assist with troubleshooting by reducing tool fragmentation. Success will be measured by ensuring that all metrics produced by MediaWiki are exported to Prometheus and supported by the observability team.
This project was initiated in follow up to an RFC (T249164: RFC: Better interface for generating metrics in MediaWiki) and a desire to sunset our previous generation metrics collection stack (Graphite - Wikitech && T228380: Tech debt: sunsetting of Graphite).
The transition to Prometheus metrics from Graphite offers several advantages, including the ability to tag and label data, adding multidimensionality to these metrics, and allowing us to stay on a currently supported system and decommission older tech.
Related to: T240685: MediaWiki Prometheus support