(self)
return config
Returns the default collector settings
Returns the default collector settings
Returns the default collector settings
def get_default_config(self):
        """
        Returns the default collector settings
        """
        config = super(MongoDBCollector, self).get_default_config()
        config.update({
            'path': 'mongo',
            'hosts': ['localhost'],
            'user': None,
            'passwd': None,
            'databases': '.*',
            'ignore_collections': '^tmp\.mr\.',
            'network_timeout': None,
            'simple': 'False',
            'translate_collections': 'False',
            'replace_dashes_in_metric_keys': 'True',
            'collection_sample_rate': 1,
            'ssl': False,
            'replica': False,
            'replset_node_name': '_id'
        })
        return config
def get_default_config ( self ) : config = super ( MongoDBCollector , self ) . get_default_config ( ) config . update ( { 'path' : 'mongo' , 'hosts' : [ 'localhost' ] , 'user' : None , 'passwd' : None , 'databases' : '.*' , 'ignore_collections' : '^tmp\.mr\.' , 'network_timeout' : None , 'simple' : 'False' , 'translate_collections' : 'False' , 'replace_dashes_in_metric_keys' : 'True' , 'collection_sample_rate' : 1 , 'ssl' : False , 'replica' : False , 'replset_node_name' : '_id' } ) return config