NewsBlur/config/munin/redis_connects
2016-11-11 11:09:13 -08:00

19 lines
520 B
Python
Executable file

#!/srv/newsblur/venv/newsblur/bin/python
from vendor.munin.redis import MuninRedisPlugin
class MuninRedisTotalConnectionsPlugin(MuninRedisPlugin):
title = "Redis connects"
args = "--base 1000"
vlabel = "connections/sec"
info = "connections per second"
fields = (
('total_connections_received', dict(
label = "connections",
info = "connections",
type = "COUNTER",
)),
)
if __name__ == "__main__":
MuninRedisTotalConnectionsPlugin().run()