NewsBlur-viq/archive/munin/redis_connects
2022-02-01 14:59:05 -05:00

19 lines
521 B
Python
Executable file

#!/srv/newsblur/venv/newsblur3/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()