The stored health metrics for a device can be retrieved (optionally
for a specific timestamp) with::
- ceph device show-health-metrics <devid> [sample-timestamp]
+ ceph device get-health-metrics <devid> [sample-timestamp]
Health monitoring
-----------------
"perm": "r"
},
{
- "cmd": "device show-health-metrics "
+ "cmd": "device get-health-metrics "
"name=devid,type=CephString "
"name=sample,type=CephString,req=False",
"desc": "Show stored device metrics for the device",
if 'devid' in cmd:
return self.scrape_device(cmd['devid'])
return self.scrape_all()
- elif cmd['prefix'] == 'device show-health-metrics':
+ elif cmd['prefix'] == 'device get-health-metrics':
return self.show_device_metrics(cmd['devid'], cmd.get('sample'))
elif cmd['prefix'] == 'device check-health':
return self.check_health()