NewsBlur/config/munin/redis_used_memory

20 lines
475 B
Text
Raw Normal View History

2020-12-03 14:05:32 -05:00
#!/srv/newsblur/venv/newsblur3/bin/python
2011-12-02 16:22:38 -08:00
2016-11-11 11:06:33 -08:00
from vendor.munin.redis import MuninRedisPlugin
2011-12-02 16:22:38 -08:00
class MuninRedisUsedMemoryPlugin(MuninRedisPlugin):
title = "Redis used memory"
args = "--base 1024"
vlabel = "Memory"
info = "used memory"
fields = (
('used_memory', dict(
label = "used memory",
info = "used memory",
type = "GAUGE",
)),
)
if __name__ == "__main__":
MuninRedisUsedMemoryPlugin().run()