Description
We recently announced that we will be enforcing rate limits on the APIs. To make product level analysis and adhoc queries easier, there are a few new data points that we would like see in Turnilo.
For example, in cases where users report that they are being rate limited in unexpected ways, we would like to be able to quickly look up how the user is being classified for rate limits to verify whether they are in the expected class or not. Having these data points will also make it easier to inform decisions about if/how limits should be adjusted post-launch.
Implementation notes
The fields we need are already in logstash:
- x-wmf-ratelimit-class header: https://phabricator.wikimedia.org/T417864
- x_trusted_request header: https://phabricator.wikimedia.org/T418455
Next steps from @JAllemandou:
- webrequest_sampled streaming job, to extract the fields from the x_analytics header into dedicated fields for Druid
- Druid ingestion, to consider the newly generated fields
- Turnilo config, to show that data
Needed by
It would be great to have this in place as soon as possible. The MediaWiki-Core-Platform-Team is enabling rate limiting on 3/12. While we can track these fields directly through logstash, having them in Turnilo will make additional adhoc analysis significantly easier for non-engineers in particular.
