관리-도구
편집 파일: ceph_osd.cpython-39.pyc
a -�_g � @ s4 d dl Z d dlmZmZmZ G dd� deee�ZdS )� N)�Plugin�RedHatPlugin�UbuntuPluginc @ s4 e Zd ZdZdZdZdZdZdZdd� Z d d � Z dS )�CephOSDa� This plugin is for capturing information from Ceph OSD nodes. While the majority of this plugin should be version agnostic, several collections are dependent upon the version of Ceph installed. Versions that correlate to RHCS 4 or RHCS 5 are explicitly handled for differences such as those pertaining to log locations on the host filesystem. Note that while this plugin will activate based on the presence of Ceph containers, commands are run directly on the host as those containers are often not configured to successfully run the `ceph` commands collected by this plugin. These commands are majorly `ceph daemon` commands that will reference discovered admin sockets under /var/run/ceph. zCEPH osdZceph_osd)ZstorageZvirt� containerZceph)zceph-(.*-)?osd.*)z/var/lib/ceph/osd/*z/var/lib/ceph/*/osd*�%/var/snap/microceph/common/data/osd/*c s� | � d�}d}| jj�d�}g d�� |sxd}| �ddi� | �g d�� | �g d �� | �d dg� |r�| �dd g� n0d}| �g d�� | �ddg� |r�| �dg� | �� fdd�| �|�D �� d S )N�all_logs� Z microceph) zbluestore bluefs availableZdump_reservationszbluefs statszbluestore allocator dump blockzbluestore bluefs device infozconfig diffzconfig showzcounter dumpzcounter schemaZdump_blocked_opsZdump_blocklistZdump_historic_ops_by_durationZdump_historic_slow_opsZ dump_mempoolsZdump_op_pq_stateZdump_ops_in_flightZdump_osd_networkZdump_pgstate_historyZdump_recovery_reservationsZdump_scrubsZ dump_watchersZget_mapped_poolsZlist_devicesZlist_unfoundzlog dumpZobjecter_requests�opsz perf dumpzperf histogram dumpzperf schema�status�versionz /var/run/cephz(/var/log/ceph/(.*/)?ceph-(.*-)?osd.*.logZceph_osd_log)z/etc/ceph/*keyring*z/var/lib/ceph/**/*keyring*z/var/lib/ceph/**/tmp/*mnt*z/etc/ceph/*bindpass*)z/run/ceph/**/ceph-osd*z/var/lib/ceph/**/kv_backendz/var/log/ceph/**/ceph-osd*.logz!/var/log/ceph/**/ceph-volume*.logzceph-disk listzceph-volume lvm listz/var/log/ceph/**/ceph-osd*.log*z"/var/log/ceph/**/ceph-volume*.log*z/var/snap/microceph/current/run)z'/var/snap/microceph/common/**/*keyring*z(/var/snap/microceph/current/**/*keyring*z"/var/snap/microceph/common/state/*r z./var/snap/microceph/common/logs/*ceph-osd*.logz//var/snap/microceph/common/logs/*ceph-osd*.log*c s&