Currently on the wpx-prod-01 instance I have an Apache setting (in /etc/apache2/sites-enabled/000-default.conf) redirecting partnermetrics.wmflabs.org/mediaplaycounts to tools.wmflabs.org/mediaviews-api. I think it would be better if this were taken care by the Redirects project.
Description
Event Timeline
(I'm not sure that Cloud-VPS is the right project, but I couldn't find any tags particular to the Redirects project.)
(old template had both tags, since VPS-Projects is a subproject phab doesn't allow both now)
Mentioned in SAL (#wikimedia-cloud) [2018-06-18T21:59:17Z] <bd808> Added BryanDavis (self) as admin to work on T197517
Mentioned in SAL (#wikimedia-cloud) [2018-06-18T22:06:15Z] <bd808> Added proxy config for https://partnermetrics.wmflabs.org/ (T197517)
Mentioned in SAL (#wikimedia-cloud) [2018-06-18T22:07:10Z] <bd808> Removed BryanDavis (self) from project (T197517)
The redirects project is now handling the 302 response to send https://partnermetrics.wmflabs.org/ to https://tools.wmflabs.org/mediaviews-api. This redirect blindly appends the path from the original request to the target URL, so the mediaviews-api tool will need to handle treating https://tools.wmflabs.org/mediaviews-api/mediaplaycounts properly itself. This can probably be done in the tool's ~/.lighttpd.conf by adding a url.rewrite-if-not-file or similar config stanza.
@Harej There does not seem to be a tool running at mediaviews-api anymore. Should we clean up this proxy or point it somewhere else?
This was replaced by the WMF Analytics endpoint that provides the same data. I think you can delete it.