(self, name)
return 'ceph.' + base
Given the name of a UDS socket, return the prefix
        for counters coming from that source.
Given the name of a UDS socket, return the prefix
        for counters coming from that source.
Given the name of a UDS socket return the prefix for counters coming from that source .
def _get_counter_prefix_from_socket_name(self, name):
        """Given the name of a UDS socket, return the prefix
        for counters coming from that source.
        """
        base = os.path.splitext(os.path.basename(name))[0]
        if base.startswith(self.config['socket_prefix']):
            base = base[len(self.config['socket_prefix']):]
        return 'ceph.' + base
def _get_counter_prefix_from_socket_name ( self , name ) : base = os . path . splitext ( os . path . basename ( name ) ) [ 0 ] if base . startswith ( self . config [ 'socket_prefix' ] ) : base = base [ len ( self . config [ 'socket_prefix' ] ) : ] return 'ceph.' + base