Example #1
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.queue = self.config.get('queue', 'celery')
        self.db = int(self.config.get('db', 0))

        self.clipath = self.config.get('clipath', '/usr/bin/redis-cli')
Example #2
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)
        self.url = self.config.get('url', 'http://localhost:9200').rstrip('\n')
        user = self.config.get('user')
        passwd = self.config.get('password')

        self.client = elasticsearch.ElasticSearch(self.url, user, passwd)
Example #3
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)
        self.url = self.config.get('url', 'http://localhost:9200').rstrip('\n')
        user = self.config.get('user')
        passwd = self.config.get('password')

        self.client = elasticsearch.ElasticSearch(self.url, user, passwd)
Example #4
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.devices = self.config.get('devices')

        self.tcache = {}
        self.trc = {}
        self.twc = {}
Example #5
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.devices = self.config.get('devices')

        self.tcache = {}
        self.trc = {}
        self.twc = {}
Example #6
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.parser = parsers.ApacheLogParser(self.config.get('log_format', 'combined'))

        self.log = follower.LogFollower(self.config['file'],
            parser=self._parser_proxy, history=False)

        self.max_lines = int(self.config.get('max_lines', 2000))
Example #7
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.parser = parsers.ApacheLogParser(self.config.get('log_format', 'combined'))

        self.log = follower.LogFollower(self.config['file'],
            parser=self._parser_proxy, history=False)

        self.max_lines = int(self.config.get('max_lines', 2000))
Example #8
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        host = self.config.get('ip', '127.0.0.1')
        port = int(self.config.get('port', 161))

        # Must add v3 support

        community = self.config.get('community', None)
        self.snmp = SNMPConnection(host, port, community)
Example #9
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.last_t = None

        self.ready = {}
        self.unack = {}

        self.last_ready = 0
        self.last_unack = 0
Example #10
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.last_t = None

        self.ready = {}
        self.unack = {}

        self.last_ready = 0
        self.last_unack = 0
Example #11
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        host = self.config.get('ip', '127.0.0.1')
        port = int(self.config.get('port', 161))

        # Must add v3 support

        community = self.config.get('community', None)
        self.snmp = SNMPConnection(host, port, community)
Example #12
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        parser = parsers.ApacheLogParser(self.config.get('log_format', 'combined'))

        history = self.config.get('history', False)

        self.log = follower.LogFollower(self.config['file'],
            parser=parser.parse, history=history)

        self.max_lines = int(self.config.get('max_lines', 2000))
        self.bucket_res = int(self.config.get('resolution', 10))

        self.bucket = 0
Example #13
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        parser = parsers.ApacheLogParser(self.config.get('log_format', 'combined'))

        history = self.config.get('history', False)

        self.log = follower.LogFollower(self.config['file'],
            parser=parser.parse, history=history)

        self.max_lines = int(self.config.get('max_lines', 2000))
        self.bucket_res = int(self.config.get('resolution', 10))

        self.bucket = 0
Example #14
0
 def __init__(self, *a, **kw):
     Source.__init__(self, *a, **kw)
     self.host = self.config.get('host', '127.0.0.1')
     self.port = self.config.get('port', 11211)
Example #15
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.tcache = {}
        self.trc = {}
        self.twc = {}
Example #16
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.cpu = None
Example #17
0
 def __init__(self, *a, **kw):
     Source.__init__(self, *a, **kw)
     self.host = self.config.get('host', '127.0.0.1')
     self.port = self.config.get('port', 11211)
Example #18
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.url = self.config.get('url', 'unix:/var/run/docker.sock')

        self.cache = PersistentCache(location='/tmp/dockerstats.cache')
Example #19
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.uc = self.config.get('executable', '/usr/sbin/unbound-control')
Example #20
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.cache = {}
Example #21
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.cpu = None
Example #22
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.devices = []
Example #23
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.url = self.config.get('url', 'http://localhost/haproxy?stats;csv')
        self.user = self.config.get('user', 'haproxy')
        self.password = self.config.get('password', 'stats')
Example #24
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.uc = self.config.get('executable', '/usr/sbin/unbound-control')
Example #25
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
Example #26
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.url = self.config.get('url', 'unix:/var/run/docker.sock')

        self.cache = PersistentCache(location='/tmp/dockerstats.cache')
Example #27
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
Example #28
0
 def __init__(self, *a, **kw):
     Source.__init__(self, *a, **kw)
     
     self.url = self.config.get('url', 'http://localhost/haproxy?stats;csv')
     self.user = self.config.get('user', 'haproxy')
     self.password = self.config.get('password', 'stats')
Example #29
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.client = NexgenClient(self.url, self.key)
Example #30
0
 def __init__(self, *a, **kw):
     Source.__init__(self, *a, **kw)
     self.user = self.config.get('user', 'postgres')
     self.password = self.config.get('password', '')
     self.port = self.config.get('port', 5432)
     self.host = self.config.get('host', '127.0.0.1')
Example #31
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.cache = {}