mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
24 lines
631 B
Python
Executable file
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()
|