Page MenuHomePhabricator

Configure MediaWiki to use new StatsLib in production
Closed, ResolvedPublic

Description

Like T343022: Configure MediaWiki to use Stats lib in Test Env, this task is complete when MediaWiki is configured to emit metrics towards statsd-exporter in production.

Event Timeline

colewhite renamed this task from Configure MediaWiki to use new Stats lib in production to Configure MediaWiki to use new StatsLib in production.Aug 4 2023, 11:32 PM
colewhite updated the task description. (Show Details)

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

[mediawiki/core@master] MediaWiki.php: Enable all executeTiming metrics to use the new Stats library

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

lmata added a subscriber: andrea.denisse.

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

[operations/mediawiki-config@master] Configure and enable StatsLib for production

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

colewhite triaged this task as Medium priority.

Change 983229 merged by jenkins-bot:

[operations/mediawiki-config@master] Configure and enable StatsLib for production

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

Mentioned in SAL (#wikimedia-operations) [2023-12-18T14:53:54Z] <urbanecm@deploy2002> Started scap: Backport for [[gerrit:983229|Configure and enable StatsLib for production (T343024)]], [[gerrit:983529|Revert "util.main: Don't use mw.Map(), use a native Map() instead" (T353571 T353076)]]

Mentioned in SAL (#wikimedia-operations) [2023-12-18T14:55:12Z] <urbanecm@deploy2002> cwhite and urbanecm and chlod: Backport for [[gerrit:983229|Configure and enable StatsLib for production (T343024)]], [[gerrit:983529|Revert "util.main: Don't use mw.Map(), use a native Map() instead" (T353571 T353076)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2023-12-18T15:04:19Z] <urbanecm@deploy2002> Finished scap: Backport for [[gerrit:983229|Configure and enable StatsLib for production (T343024)]], [[gerrit:983529|Revert "util.main: Don't use mw.Map(), use a native Map() instead" (T353571 T353076)]] (duration: 10m 20s)

Metrics series line up nicely when compared visually:
divideSeries(MediaWiki.action.view.executeTiming.sum, MediaWiki.action.view.executeTiming.count)

and

sum(rate(mediawiki_action_executeTiming_seconds_sum{action="view"}[2m]))/sum(rate(mediawiki_action_executeTiming_seconds_count{action="view"}[2m])) * 1000

Change 972006 merged by jenkins-bot:

[mediawiki/core@master] MediaWiki.php: Enable all executeTiming metrics to use the new Stats library

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

I'm resolving this one on my understanding that this has already been deployed. Please reopen if that's not the case, and there's work pending. Thanks!