NewsBlur/vendor/python-munin/plugins/memcached_items
2016-11-11 11:06:33 -08:00

19 lines
476 B
Python
Executable file

#!/usr/bin/env python
from vendor.munin.memcached import MuninMemcachedPlugin
class MuninMemcachedItemsPlugin(MuninMemcachedPlugin):
title = "Memcached new items stats"
args = "--base 1000"
vlabel = "Items"
info = "items stats"
fields = (
('total_items', dict(
label = "items",
info = "number of new items",
type = "COUNTER",
)),
)
if __name__ == "__main__":
MuninMemcachedItemsPlugin().run()