Пример #1
0
 def __init__(self, *args, **kwargs):
     AgentCheckTest.__init__(self, *args, **kwargs)
     self.config = {
         'instances': [
             {
                 'lighttpd_status_url': 'http://localhost:9449/server-status',
                 'tags': ['instance:first'],
             }
         ]
     }
Пример #2
0
 def __init__(self, *args, **kwargs):
     AgentCheckTest.__init__(self, *args, **kwargs)
     self.config = {
         "instances": [{
             'url': 'http://localhost:3835/stats',
             'username': '******',
             'password': '******',
             'status_check': True,
             'collect_aggregates_only': False,
             'tag_service_check_by_host': True,
         }]
     }
     self.config_open = {
         'instances': [{
             'url': 'http://localhost:3836/stats',
             'collect_aggregates_only': False,
         }]
     }
Пример #3
0
 def __init__(self, *args, **kwargs):
     AgentCheckTest.__init__(self, *args, **kwargs)
     self._expvar_url = os.path.join(os.path.dirname(__file__), "go_expvar", "expvar_output")
     self.mock_config = {
         "instances": [{
             "expvar_url": self._expvar_url,
             "tags": ["optionaltag1", "optionaltag2"],
             "metrics": [
                 {
                     # Contains list traversal and default values
                     "path": "memstats/BySize/1/Mallocs",
                 },
                 {
                     "path": "memstats/PauseTotalNs",
                     "alias": "go_expvar.gc.pause",
                     "type": "rate"
                 },
                 {
                     "path": "random_walk",
                     "alias": "go_expvar.gauge1",
                     "type": "gauge",
                     "tags": ["metric_tag1:metric_value1", "metric_tag2:metric_value2"]
                 }
                 ]
             }]
     }
     self.mocks = {
         '_get_data': _get_data_mock,
     }
     self.config = {
         "instances": [{
             "expvar_url": 'http://localhost:8079/debug/vars',
             'tags': ['my_tag'],
             'metrics': [
                 {
                     'path': 'last_user'
                 },
                 {
                     'path': 'num_calls',
                     "type": "rate"
                 },
             ]
         }]
     }
Пример #4
0
 def __init__(self, *args, **kwargs):
     AgentCheckTest.__init__(self, *args, **kwargs)
     self.config = {"instances": [{"url": "http://localhost:4001"}]}
Пример #5
0
 def __init__(self, *args, **kwargs):
     AgentCheckTest.__init__(self, *args, **kwargs)
     self.config = {"instances": [{"url": "http://localhost:4001"}]}