Exemplo n.º 1
0
 def __init__(self,
              config_path=_DEFAULT_CONFIG_PATH,
              metadata_server=_METADATA_SERVICE_ADDRESS):
     self._config_path = config_path
     self._metadata_server = metadata_server
     self._use_iam_role_credentials = False
     self.region = ''
     self.endpoint = ''
     self.ec2_endpoint = ''
     self.host = ''
     self.asg_name = 'NONE'
     self.proxy_server_name = ''
     self.proxy_server_port = ''
     self.debug = False
     self.pass_through = False
     self.push_asg = False
     self.push_constant = False
     self.constant_dimension_value = ''
     self.enable_high_resolution_metrics = False
     self.flush_interval_in_seconds = ''
     self._mapper = None
     self._mapper_time = 0
     self._load_configuration()
     self.whitelist = Whitelist(
         WhitelistConfigReader(self.WHITELIST_CONFIG_PATH,
                               self.pass_through).get_regex_list(),
         self.BLOCKED_METRIC_PATH)
Exemplo n.º 2
0
 def __init__(self, config_path=_DEFAULT_CONFIG_PATH, metadata_server=_METADATA_SERVICE_ADDRESS):
     self._config_path = config_path
     self._metadata_server = metadata_server
     self._use_iam_role_credentials = False
     self.region = ''
     self.endpoint = ''
     self.host = ''
     self.proxy_server_name = ''
     self.proxy_server_port = ''
     self.debug = False
     self.pass_through = False
     self._load_configuration()
     self.whitelist = Whitelist(WhitelistConfigReader(self.WHITELIST_CONFIG_PATH, self.pass_through).get_regex_list(), self.BLOCKED_METRIC_PATH)