Page MenuHomePhabricator

Baseline API Usage Metrics
Open, HighPublic

Description

User Story
As the API Platform PM,
I want to understand how existing APIs are being used and by whom
so that I can make decisions on which services to migrate when

T324231: Add monitoring of API endpoints for API gateway
T318805: Collate various API Catalogs
T288667: Create Dashboards for AQS 2.0
T280087: HARDEN API Gateway. Establish consistent strategy for namespaces in the API gateway
T290772: Make logging adhere to common logging schema
T320537: <spike> Usage and traffic data for WMF APIs

Success Criteria
  • I can see API usage metrics in a data visualization tool for the following dimensions:
    • User Agent
    • HTTP Method
    • HTTP Status
    • URI Path
    • URI Query
    • Content Type
    • Response Size
    • Any additional identifying data to determine how many individual clients/callers we have, what APIs they use, and how much they use them
References

Event Timeline

sdkim reopened this task as Open.

@BPirkle point of contact with SRE on requesting metrics to maybe inform this

April 14, 2022

  • some of the information may be PII so will need to be taken into consideration

@DAbad to Shift this ticket to focus on future-state logging capabilities coming out of the API Gateway

Open patch https://gerrit.wikimedia.org/r/c/mediawiki/core/+/864833 is related. It collects only some of the suggested data (path, method, status) and only for MediaWiki REST API. (Path is without parameter replacement, so no risk of PII exposure)