예제 #1
0
파일: redis.py 프로젝트: emetens/tensor
    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')
예제 #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)
예제 #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)
예제 #4
0
파일: basic.py 프로젝트: DKrul/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

        self.tcache = {}
        self.trc = {}
        self.twc = {}
예제 #5
0
파일: basic.py 프로젝트: emetens/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

        self.tcache = {}
        self.trc = {}
        self.twc = {}
예제 #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))
예제 #7
0
파일: nginx.py 프로젝트: calston/tensor
    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))
예제 #8
0
파일: snmp.py 프로젝트: calston/tensor
    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)
예제 #9
0
파일: rabbitmq.py 프로젝트: jerith/tensor
    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
예제 #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
예제 #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)
예제 #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
예제 #13
0
파일: nginx.py 프로젝트: calston/tensor
    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
예제 #14
0
파일: memcache.py 프로젝트: calston/tensor
 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)
예제 #15
0
파일: basic.py 프로젝트: hobbeswalsh/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.tcache = {}
        self.trc = {}
        self.twc = {}
예제 #16
0
파일: basic.py 프로젝트: hobbeswalsh/tensor
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.cpu = None
예제 #17
0
파일: memcache.py 프로젝트: emetens/tensor
 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)
예제 #18
0
파일: docker.py 프로젝트: calston/tensor
    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')
예제 #19
0
파일: unbound.py 프로젝트: DKrul/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

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

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

        self.cpu = None
예제 #22
0
파일: sensors.py 프로젝트: emetens/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.devices = []
예제 #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')
예제 #24
0
파일: unbound.py 프로젝트: calston/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.uc = self.config.get('executable', '/usr/sbin/unbound-control')
예제 #25
0
파일: __init__.py 프로젝트: DKrul/tensor
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
예제 #26
0
파일: docker.py 프로젝트: emetens/tensor
    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')
예제 #27
0
파일: __init__.py 프로젝트: emetens/tensor
    def __init__(self, *a):
        Source.__init__(self, *a)

        self.events = self.tensor.eventCounter
        self.rtime = time.time()
예제 #28
0
파일: haproxy.py 프로젝트: calston/tensor
 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')
예제 #29
0
파일: stream.py 프로젝트: emetens/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.client = NexgenClient(self.url, self.key)
예제 #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')
예제 #31
0
파일: munin.py 프로젝트: jerith/tensor
    def __init__(self, *a, **kw):
        Source.__init__(self, *a, **kw)

        self.cache = {}