forked from rochaporto/collectd-ceph
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph_latency_plugin: suport yet another rados bench format. This is a
fast hack, should be fixed to be not ugly later.
- Loading branch information
grin
authored and
grin
committed
Nov 25, 2016
1 parent
f0527c3
commit 5024baa
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5024baa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you just replace regex_match from line 66
with this
regex_match = re.compile('^([a-zA-Z]+) [lL]atency: +(\w+.?\w+)', re.MULTILINE)
At least it "fixed" my check with hammer ceph
5024baa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kallio The original wasn't created by me so I do not understand what (why) it wanted to achieve. Possibly worked on a different version of rados, but I don't have the time to check half a dozen ones. I don't want to break it for other people without careful inspection.