(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(DiskUsageCollector, self).get_default_config()
        config.update({
            'path':     'iostat',
            'devices':  ('PhysicalDrive[0-9]+$' +
                         '|md[0-9]+$' +
                         '|sd[a-z]+[0-9]*$' +
                         '|x?vd[a-z]+[0-9]*$' +
                         '|disk[0-9]+$' +
                         '|nvme[0-9]+n[0-9]+$' +
                         '|dm\-[0-9]+$'),
            'sector_size': 512,
            'send_zero': False,
        })
        return config
def get_default_config ( self ) : config = super ( DiskUsageCollector , self ) . get_default_config ( ) config . update ( { 'path' : 'iostat' , 'devices' : ( 'PhysicalDrive[0-9]+$' + '|md[0-9]+$' + '|sd[a-z]+[0-9]*$' + '|x?vd[a-z]+[0-9]*$' + '|disk[0-9]+$' + '|nvme[0-9]+n[0-9]+$' + '|dm\-[0-9]+$' ) , 'sector_size' : 512 , 'send_zero' : False , } ) return config