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 the ceph insights command. The following are available in data:

  • crashes - summary of daemon crashes for the past 24 hours

  • health - the current and historical (past 24 hours) health checks

  • config - cluster and daemon configuration settings

  • osd_dump - osd and pool information

  • df - storage usage statistics

  • osd_tree - osd topology

  • fs_map - file system map

  • crush_map - the CRUSH map

  • mon_map - monitor map

  • service_map - service map

  • manager_map - manager map

  • mon_status - monitor status

  • pg_summary - placement group summary

  • osd_metadata - per-OSD metadata

  • version - ceph software version

  • errors - any errors encountered collecting this data

The version attribute contains a normalized view of self.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
parse_content(content)[source]

This method must be implemented by classes based on this class.