def _get_stats_from_socket(self, name):
        try:
            json_blob = subprocess.check_output(
                [self.config['ceph_binary'],
                 '--admin-daemon',
                 name,
                 'perf',
                 'dump',
                 ])
        except subprocess.CalledProcessError, err:
            self.log.info('Could not get stats from %s: %s',
                          name, err)
            self.log.exception('Could not get stats from %s' % name)
            return {}

        try:
            json_data = json.loads(json_blob)
        except Exception, err:
            self.log.info('Could not parse stats from %s: %s',
                          name, err)
            self.log.exception('Could not parse stats from %s' % name)
            return {}

        return json_data
Geocoder._coerce_point_to_string address string
dataset/ETHPy150Open BrightcoveOS/Diamond/src/collectors/ceph/ceph.py/CephCollector._get_stats_from_socket--crossover with--dataset/ETHPy150Open geopy/geopy/test/geocoders/base.py/GeocoderTestCase.test_point_coercion_address