Exemplo n.º 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')
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

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

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

        self.tcache = {}
        self.trc = {}
        self.twc = {}
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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)
Exemplo n.º 15
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.tcache = {}
        self.trc = {}
        self.twc = {}
Exemplo n.º 16
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.cpu = None
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 19
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

        self.cache = {}
Exemplo n.º 21
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.cpu = None
Exemplo n.º 22
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.devices = []
Exemplo n.º 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')
Exemplo n.º 24
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
Exemplo n.º 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')
Exemplo n.º 27
0
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
Exemplo n.º 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')
Exemplo n.º 29
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.client = NexgenClient(self.url, self.key)
Exemplo n.º 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')
Exemplo n.º 31
0
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.cache = {}