2016-11-11 11:09:13 -08:00
|
|
|
#!/srv/newsblur/venv/newsblur/bin/python
|
2011-12-02 16:22:38 -08:00
|
|
|
|
2016-11-11 11:06:33 -08:00
|
|
|
from vendor.munin.memcached import MuninMemcachedPlugin
|
2011-12-02 16:22:38 -08:00
|
|
|
|
|
|
|
class MuninMemcachedBytesPlugin(MuninMemcachedPlugin):
|
|
|
|
title = "Memcached bytes read/written stats"
|
|
|
|
args = "--base 1024"
|
|
|
|
vlabel = "bytes read (-) / written (+) per ${graph_period}"
|
|
|
|
info = "bytes read/writter stats"
|
|
|
|
order = ("bytes_read", "bytes_written")
|
|
|
|
fields = (
|
|
|
|
('bytes_read', dict(
|
|
|
|
label = "bytes read",
|
|
|
|
type = "COUNTER",
|
|
|
|
graph = "no",
|
|
|
|
)),
|
|
|
|
('bytes_written', dict(
|
|
|
|
label = "Bps",
|
|
|
|
info = "Bytes read/written",
|
|
|
|
type = "COUNTER",
|
|
|
|
negative = "bytes_read",
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
MuninMemcachedBytesPlugin().run()
|