Exemplo n.º 1
0
 def __init__(self, inteval, hostname):
     self.conn = url.ParseUrl()
     self.last = {}
     self.hostname = hostname
     self.inteval = inteval
     self.confdic = cfg.yamlparse('conf/hadoop.yaml')
     self.apis = cfg.yamlparse('conf/apis.yaml')
Exemplo n.º 2
0
 def __init__(self, inteval, hostname):
     self.inteval = inteval
     self.hostname = hostname
     self.last = {}
     self.apis = cfg.yamlparse('conf/apis.yaml')
Exemplo n.º 3
0
 def __init__(self):
     self.url = cfg.yamlparse('conf/apis.yaml').getmetric('tsdb')
Exemplo n.º 4
0
 def __init__(self, hostname):
     self.hostname = hostname
     self.apis = cfg.yamlparse("conf/apis.yaml")
Exemplo n.º 5
0
 def __init__(self):
     self.prefix = cfg.yamlparse('conf/apis.yaml').getmetric('prefix')
     self.addresslist = cfg.yamlparse('conf/apis.yaml').getmetric('graphite')
     self.master = cfg.yamlparse('conf/apis.yaml').getmetric('graphite_master')
Exemplo n.º 6
0
__author__ = 'jhazheng'

import sys

confdir = 'conf/hbase.yaml'
sys.path.append('..')
import utils.configparse as cfg
import utils.url as url
import utils.clusterinfo as cinfo
import re
import utils.logs as logs

hbaseconfig = cfg.yamlparse(confdir).getmetric('hbase94')
logger = logs.log().logers('default')


class GetData(object):
    def __init__(self):
        self.level = ''
        self.tbl = {}
        self.current = {}
        self.conn = url.ParseUrl()

    def parsedic(self, dic):
        if isinstance(dic, dict):
            for key in dic.keys():
                if len(dic[key]) >= 1:
                    self.level += key + '.'
                if isinstance(dic[key], list):
                    self.parselist(dic[key])
                else: