mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-05 16:49:45 +00:00
25 lines
631 B
Text
25 lines
631 B
Text
![]() |
#!/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()
|