Filippo Giunchedi has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/403158 )

Change subject: mtail: fix counting for frontend varnish http_method
......................................................................

mtail: fix counting for frontend varnish http_method

IOW match method name as a whole, not prefix

Bug: T183926
Change-Id: I302f6b0033e85ad30dd4685abce645f2118864bb
---
M modules/mtail/files/programs/varnishreqstats.mtail
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/58/403158/1

diff --git a/modules/mtail/files/programs/varnishreqstats.mtail 
b/modules/mtail/files/programs/varnishreqstats.mtail
index a324f12..7c85f6f 100644
--- a/modules/mtail/files/programs/varnishreqstats.mtail
+++ b/modules/mtail/files/programs/varnishreqstats.mtail
@@ -1,7 +1,7 @@
 counter varnish_requests by status, method
 
 /\thttp_status (?P<status>[0-9][0-9][0-9])\thttp_method (?P<method>[A-Z]+)\t/ {
-    /http_method (OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PURGE|PATCH)/ 
{
+    /http_method 
(OPTIONS|GET|HEAD|POST|PUT|DELETE|TRACE|CONNECT|PURGE|PATCH)\t/ {
       varnish_requests[$status][$method]++
     } else {
       varnish_requests[$status]["invalid"]++

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I302f6b0033e85ad30dd4685abce645f2118864bb
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Filippo Giunchedi <fgiunch...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to