Gilles has uploaded a new change for review.

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

Change subject: Set up beacon endpoint for virtual media views
......................................................................

Set up beacon endpoint for virtual media views

Bug: T89088
Change-Id: Ie20ed8fc7041e89510a6558d9e2647c67a0a4bbf
---
M templates/varnish/bits.inc.vcl.erb
1 file changed, 5 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/21/190821/1

diff --git a/templates/varnish/bits.inc.vcl.erb 
b/templates/varnish/bits.inc.vcl.erb
index 037a74d..58e513a 100644
--- a/templates/varnish/bits.inc.vcl.erb
+++ b/templates/varnish/bits.inc.vcl.erb
@@ -21,15 +21,17 @@
 <% end -%>
 
 sub vcl_recv {
-       if (req.url ~ "^/(event\.gif|statsv[/?])") {
-               // URLs that start with 'event.gif' or 'statsv' are logging 
beacon endpoints.
+       if (req.url ~ "^/(event\.gif|view\.gif|statsv[/?])") {
+               // URLs that start with 'event.gif', 'view.gif' or 'statsv' are 
logging beacon endpoints.
                // They are handled by log tailers (varnishkafka and 
varnishncsa) that filter
                // the Varnish shm log for reqs to these endpoints and forward 
them to log
                // processors for storage and analysis.
                //
                // /event.gif is used by EventLogging 
<https://wikitech.wikimedia.org/wiki/EventLogging>
+               // /view.gif is used to record virtual media views.
                // statsv is used by MediaWiki for statsd-like performance 
metrics.
-               // Ori is the contact person for both.
+               // The analytics team is responsible for EventLogging and 
processing media views data.
+               // Ori is the contact person for statsv.
                error 204;
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/190821
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie20ed8fc7041e89510a6558d9e2647c67a0a4bbf
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Gilles <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to