Improve getLagTimes.php output and add statsD flag
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 26 Oct 2016 22:17:08 +0000 (15:17 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 4 Nov 2016 21:43:07 +0000 (21:43 +0000)
commita7f993c7f2560d9c73999e96c3dade1d0c3dc0d8
tree937738765356a50bce71252baab26dd94bedc03a
parentfdb9296a5ec0c1436ad993f73d10a25b346de49f
Improve getLagTimes.php output and add statsD flag

* The script now lists all DBs in the LBFactory,
  not just those of the current wiki cluster.
* Add a --report option to send the metrics
  to statsD so that the MediaWiki view of lag can
  be measured, rather than just the DB-level view.
  This avoids some noise with depooled servers.

Bug: T149210
Change-Id: I6eae25e29aecf21251ad0eec53c56a86f35007f5
includes/libs/rdbms/lbfactory/ILBFactory.php
includes/libs/rdbms/lbfactory/LBFactoryMulti.php
includes/libs/rdbms/lbfactory/LBFactorySimple.php
includes/libs/rdbms/lbfactory/LBFactorySingle.php
maintenance/getLagTimes.php