Page MenuHomePhabricator

Track MediaWiki stats usage
Closed, ResolvedPublic

Description

Per Hypothesis meeting this afternoon UTC.

We should consider generating a (temporary) set of metrics about StatsdDataFactory and StatsFactory usage. The goal is to create a progress indicator that is communicable to other teams.

Related Objects

StatusSubtypeAssignedTask
OpenNone
Resolvedcolewhite

Event Timeline

Injecting statslib into the legacy statsd code path introduces significant complexity and risk.

The less risky way to do this is to keep the libraries separate and capture both metrics via graphite or combine the two datasources via grafana expressions. We'll explore the former first.

The latter can be accomplished via:
Panel: Gauge
Datasource: Mixed
A: graphite - <metric>.count
B: Prometheus - irate(<metric>[2m])
C: Expression Math - $A/$B*100

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

[mediawiki/core@master] mediawiki: add metric stats.statsdclient.buffered

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

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

[mediawiki/core@master] stats: add metric stats.statslib.buffered

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

Change 974629 merged by jenkins-bot:

[mediawiki/core@master] MediaWikiEntryPoint: add metric stats.statsdclient.buffered

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

Change 974630 merged by jenkins-bot:

[mediawiki/core@master] stats: add metric stats.statslib.buffered

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