ceph_insights - command ceph insights
- class insights.parsers.ceph_insights.CephInsights(*args, **kwargs)[source]
Bases:
CommandParser
Parse the output of the
ceph insights
command.- version
version information of the Ceph cluster.
- Type:
dict
- data
a dictionary of the parsed output.
- Type:
dict
The
data
attribute is a dictionary containing the parsed output of theceph insights
command. The following are available indata
:crashes
- summary of daemon crashes for the past 24 hourshealth
- the current and historical (past 24 hours) health checksconfig
- cluster and daemon configuration settingsosd_dump
- osd and pool informationdf
- storage usage statisticsosd_tree
- osd topologyfs_map
- file system mapcrush_map
- the CRUSH mapmon_map
- monitor mapservice_map
- service mapmanager_map
- manager mapmon_status
- monitor statuspg_summary
- placement group summaryosd_metadata
- per-OSD metadataversion
- ceph software versionerrors
- any errors encountered collecting this data
The
version
attribute contains a normalized view ofself.data["version"]
.Examples
>>> ceph_insights.version["release"] == 14 True >>> ceph_insights.version["major"] == 0 True >>> ceph_insights.version["minor"] == 0 True >>> isinstance(ceph_insights.data["crashes"], dict) True >>> isinstance(ceph_insights.data["health"], dict) True