Skip to content

Commit

Permalink
add draft for swift object auditor plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieter Plaetinck committed Apr 19, 2013
1 parent 14c9739 commit 3b54be9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions structured_metrics/plugins/swift_object_auditor.py
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:

0 comments on commit 3b54be9

Please sign in to comment.