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

24 lines
631 B
Python
Executable file

#!/usr/bin/env python
from vendor.munin.memcached import MuninMemcachedPlugin
class MuninMemcachedCurrBytesPlugin(MuninMemcachedPlugin):
title = "Memcached current bytes stored"
args = "--base 1024"
vlabel = "bytes"
info = "bytes memory in use"
fields = (
('bytes', dict(
label = "live byte",
info = "live bytes",
type = "GAUGE",
)),
('limit_maxbytes', dict(
label = "max live byte",
info = "max live bytes",
type = "GAUGE",
)),
)
if __name__ == "__main__":
MuninMemcachedCurrBytesPlugin().run()