Page MenuHomePhabricator

Add statsd timing metrics and Grafana dashboard for rest.php API entry points
Closed, ResolvedPublic

Description

Just like we have hit/timing metrics for api.php requests by module, the same should be done for rest entrypoints. We could use the first component of each RestRoutes entry path.

A dashboard should exist, similar to https://grafana.wikimedia.org/d/000000559/api-requests-breakdown?orgId=1

Details

Event Timeline

Krinkle renamed this task from Statsd timing metrics and Grafana dashboard for all rest.php entry points to Add statsd timing metrics and Grafana dashboard for rest.php API entry points.Oct 31 2022, 7:46 PM
Krinkle triaged this task as Medium priority.
Krinkle updated the task description. (Show Details)
Krinkle added a project: Platform Engineering.

Hey @WDoranWMF and @daniel !

We've detected that rest.php could benefit from the same instrumentation api.php already has.

This is a small effort and would help us a lot with our goal to share knowledge and performance awareness with the rest of the Org, not only on how to make the instrumentation available but also how to instruct other teams on how to use it.

Do you think it's possible to get someone to work on this? @aaron could definitely help or pair program with the person.

Change 867616 had a related patch set uploaded (by Krinkle; author: Daniel Kinzler):

[mediawiki/core@master] REST: collect metrics on endpoint access

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

Change 867616 merged by jenkins-bot:

[mediawiki/core@master] REST: collect metrics on endpoint access

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