From 3b54be9559e30945a4386c19fcd001d4b7fca038 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 19 Apr 2013 12:56:00 -0400 Subject: [PATCH] add draft for swift object auditor plugin --- .../plugins/swift_object_auditor.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 structured_metrics/plugins/swift_object_auditor.py diff --git a/structured_metrics/plugins/swift_object_auditor.py b/structured_metrics/plugins/swift_object_auditor.py new file mode 100644 index 0000000..74b2ac0 --- /dev/null +++ b/structured_metrics/plugins/swift_object_auditor.py @@ -0,0 +1,23 @@ +from . import Plugin + + +class SwiftObjectAuditorPlugin(Plugin): +# DRAFT PLUGIN + + targets = [ + { + 'match': '^stats\.timers\.(?P[^\.]+)\.object-auditor\.(?P[^\.]+)\.timing\.(?P[^\.]+)$', + 'target_type': 'timer' + }, + { + 'match': '^stats_counts\.(?P[^\.]+)\.object-server\.?(?P[^\.]*)\.(?Pasync_pendings|errors|timeouts)$', + 'state': 'stacked', + 'target_type': 'count' + }, + { + 'match': '^stats\.(?P[^\.]+)\.object-server\.?(?P[^\.]*)\.(?Pasync_pendings|errors|timeouts)$', + 'target_type': 'rate' + } + ] + +# vim: ts=4 et sw=4: