mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
19 lines
520 B
Python
Executable file
19 lines
520 B
Python
Executable file
#!/srv/newsblur/venv/newsblur/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()
|