mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
24 lines
584 B
Python
Executable file
24 lines
584 B
Python
Executable file
#!/srv/newsblur/venv/newsblur/bin/python
|
|
|
|
import os
|
|
from vendor.munin.cassandra import MuninCassandraPlugin
|
|
|
|
class CassandraLoadPlugin(MuninCassandraPlugin):
|
|
title = "load (data stored in node)"
|
|
args = "--base 1024 -l 0"
|
|
vlabel = "bytes"
|
|
fields = [
|
|
('load', dict(
|
|
label = "load",
|
|
info = "data stored in node",
|
|
type = "GAUGE",
|
|
min = "0",
|
|
)),
|
|
]
|
|
|
|
def execute(self):
|
|
info = self.cinfo()
|
|
return dict(load = info['Load'])
|
|
|
|
if __name__ == "__main__":
|
|
CassandraLoadPlugin().run()
|