Ottomata has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71817
Change subject: Fixing PacketLossLogtailer all_roles metric, also limiting the
number of roles reported to ganglia via rolematcher.py
......................................................................
Fixing PacketLossLogtailer all_roles metric, also limiting the number of roles
reported to ganglia via rolematcher.py
Change-Id: I805ddffca823d5d82e48e6f4370371b6a7416c0d
---
M files/misc/PacketLossLogtailer.py
M files/misc/rolematcher.py
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/17/71817/1
diff --git a/files/misc/PacketLossLogtailer.py
b/files/misc/PacketLossLogtailer.py
index 78c62dd..00bc2a3 100644
--- a/files/misc/PacketLossLogtailer.py
+++ b/files/misc/PacketLossLogtailer.py
@@ -73,6 +73,7 @@
# filtering out HTTPS/IP6 traffic as the packetloss
numbers
# are inaccurate.
if role != 'https':
+ self.percentloss_dict.setdefault('all_roles', [])
self.percentloss_dict['all_roles'].append(percentloss)
else:
raise LogtailerParsingException("regmatch failed to match")
diff --git a/files/misc/rolematcher.py b/files/misc/rolematcher.py
index fe97efa..dc089b6 100644
--- a/files/misc/rolematcher.py
+++ b/files/misc/rolematcher.py
@@ -58,7 +58,7 @@
return False
def get_role(self):
- return self.__str__()
+ return self.role
def manual_init():
--
To view, visit https://gerrit.wikimedia.org/r/71817
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I805ddffca823d5d82e48e6f4370371b6a7416c0d
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits