Dump the cluster and get pg stats
(self)
| 2475 | return r |
| 2476 | |
| 2477 | def get_pg_stats(self): |
| 2478 | """ |
| 2479 | Dump the cluster and get pg stats |
| 2480 | """ |
| 2481 | out = self.raw_cluster_cmd('pg', 'dump', '--format=json') |
| 2482 | j = json.loads('\n'.join(out.split('\n')[1:])) |
| 2483 | try: |
| 2484 | return j['pg_map']['pg_stats'] |
| 2485 | except KeyError: |
| 2486 | return j['pg_stats'] |
| 2487 | |
| 2488 | def get_osd_df(self, osdid): |
| 2489 | """ |