NewsBlur/vendor/python-munin/plugins/redis_active_connections

20 lines
494 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 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()