NewsBlur/vendor/python-munin/plugins/redis_commands
2016-11-11 11:06:33 -08:00

19 lines
466 B
Python
Executable file

#!/usr/bin/env python
from vendor.munin.redis import MuninRedisPlugin
class MuninRedisCommandsPlugin(MuninRedisPlugin):
title = "Redis commands"
args = "--base 1000"
vlabel = "commands/sec"
info = "total commands"
fields = (
('total_commands_processed', dict(
label = "commands",
info = "commands",
type = "COUNTER",
)),
)
if __name__ == "__main__":
MuninRedisCommandsPlugin().run()