-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add draft for swift object auditor plugin
- Loading branch information
Dieter Plaetinck
committed
Apr 19, 2013
1 parent
14c9739
commit 3b54be9
Showing
1 changed file
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from . import Plugin | ||
|
||
|
||
class SwiftObjectAuditorPlugin(Plugin): | ||
# DRAFT PLUGIN | ||
|
||
targets = [ | ||
{ | ||
'match': '^stats\.timers\.(?P<server>[^\.]+)\.object-auditor\.(?P<http_method>[^\.]+)\.timing\.(?P<what>[^\.]+)$', | ||
'target_type': 'timer' | ||
}, | ||
{ | ||
'match': '^stats_counts\.(?P<server>[^\.]+)\.object-server\.?(?P<http_method>[^\.]*)\.(?P<what>async_pendings|errors|timeouts)$', | ||
'state': 'stacked', | ||
'target_type': 'count' | ||
}, | ||
{ | ||
'match': '^stats\.(?P<server>[^\.]+)\.object-server\.?(?P<http_method>[^\.]*)\.(?P<what>async_pendings|errors|timeouts)$', | ||
'target_type': 'rate' | ||
} | ||
] | ||
|
||
# vim: ts=4 et sw=4: |