(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(HAProxyCollector, self).get_default_config()
        config.update({
            'method':           'http',
            'path':             'haproxy',
            'url':              'http://localhost/haproxy?stats;csv',
            'user':             'admin',
            'pass':             'password',
            'sock':             '/var/run/haproxy.sock',
            'ignore_servers':   False,
        })
        return config
def get_default_config ( self ) : config = super ( HAProxyCollector , self ) . get_default_config ( ) config . update ( { 'method' : 'http' , 'path' : 'haproxy' , 'url' : 'http://localhost/haproxy?stats;csv' , 'user' : 'admin' , 'pass' : 'password' , 'sock' : '/var/run/haproxy.sock' , 'ignore_servers' : False , } ) return config