Aaron Schulz has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/344472 )

Change subject: Send integer ms to DB lag time guage instead of seconds
......................................................................

Send integer ms to DB lag time guage instead of seconds

Previously, this sent the floating point value in seconds,
which is not what statsd expects here.

Bug: T149210
Change-Id: I8fcd58d7c9e183952df1257b1520d9426a42fd26
---
M maintenance/getLagTimes.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/72/344472/1

diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php
index 677bfa2..5def5c3 100644
--- a/maintenance/getLagTimes.php
+++ b/maintenance/getLagTimes.php
@@ -61,7 +61,7 @@
                                $this->output( sprintf( "%10s %20s %3d %s\n", 
$ip, $host, $lag, $stars ) );
 
                                if ( $this->hasOption( 'report' ) ) {
-                                       $stats->gauge( 
"loadbalancer.lag.$cluster.$host", $lag );
+                                       $stats->gauge( 
"loadbalancer.lag.$cluster.$host", intval( $lag * 1e3 ) );
                                }
                        }
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8fcd58d7c9e183952df1257b1520d9426a42fd26
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to