NewsBlur/vendor/python-munin/plugins/redis_connects

20 lines
501 B
Text
Raw Normal View History

2016-11-11 11:06:33 -08:00
#!/usr/bin/env 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()