NewsBlur/archive/munin/redis_active_connections
2024-04-24 09:50:42 -04:00

20 lines
515 B
Python
Executable file

#!/srv/newsblur/venv/newsblur3/bin/python
from vendor.munin.redis import MuninRedisPlugin
class MuninRedisActiveConnectionsPlugin(MuninRedisPlugin):
title = "Redis active connections"
args = "--base 1000"
vlabel = "Connections"
info = "active connections"
fields = (
('connected_clients', dict(
label = "connections",
info = "connections",
type = "GAUGE",
)),
)
if __name__ == "__main__":
MuninRedisActiveConnectionsPlugin().run()