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
|
|
|
|
2024-04-24 09:50:42 -04:00
|
|
|
|
2011-12-02 16:22:38 -08:00
|
|
|
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()
|