Ori.livneh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/81561
Change subject: Drop 'country' from NavTiming graphs; rename to 'browser'
......................................................................
Drop 'country' from NavTiming graphs; rename to 'browser'
I'd like to start off simple, and splitting the data by country is more than I
can chew at the moment. Also group metrics under 'stats.timers.browser' rather
than 'stats.timers.navigation', for clarity.
Change-Id: I9f3238adbae2711b7af2328e3fe3b7de6fb4f9f5
---
M files/graphite/modules/navtiming.py
1 file changed, 2 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/61/81561/1
diff --git a/files/graphite/modules/navtiming.py
b/files/graphite/modules/navtiming.py
index 987ad98..db187e2 100644
--- a/files/graphite/modules/navtiming.py
+++ b/files/graphite/modules/navtiming.py
@@ -42,10 +42,9 @@
continue
site = 'mobile' if 'mobileMode' in event else 'desktop'
- country = event.get('originCountry') or 'ZZ'
for metric in metrics:
value = event.get(metric)
- if value > 0:
- stat = 'navigation.%s.%s.%s:%s|ms' % (metric, site, country, value)
+ if value > 0 and value < 60000:
+ stat = 'browser.%s.%s:%s|ms' % (metric, site, value)
sock.sendto(stat.encode('utf-8'), addr)
--
To view, visit https://gerrit.wikimedia.org/r/81561
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f3238adbae2711b7af2328e3fe3b7de6fb4f9f5
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits