NewsBlur/archive/munin/memcached_queries

45 lines
1.1 KiB
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.memcached import MuninMemcachedPlugin
2011-12-02 16:22:38 -08:00
class MuninMemcachedQueriesPlugin(MuninMemcachedPlugin):
title = "Memcached query stats"
args = "--base 1000"
vlabel = "queries per ${graph_period}"
info = "get/set stats"
fields = (
('cmd_get', dict(
label = "Gets",
info = "Gets",
type = "DERIVE",
min = "0",
)),
('cmd_set', dict(
label = "Sets",
info = "Sets",
type = "DERIVE",
min = "0",
)),
('get_hits', dict(
label = "Get hits",
info = "Get hits",
type = "DERIVE",
min = "0",
)),
('get_misses', dict(
label = "Get misses",
info = "Get misses",
type = "DERIVE",
min = "0",
)),
('evictions', dict(
label = "Evictions",
info = "Evictions",
type = "DERIVE",
min = "0",
)),
)
if __name__ == "__main__":
MuninMemcachedQueriesPlugin().run()