Skip to content

Commit

Permalink
Grab serialized zpool status output in debug (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubad786 authored Oct 9, 2024
1 parent d296f1b commit d54a9dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ixdiagnose/plugins/zfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,20 @@ class ZFS(Plugin):
),
CommandMetric('pool_history', [Command(['zpool', 'history'], 'ZFS Pool(s) History', serializable=False)]),
CommandMetric('arc_summary', [Command(['arc_summary'], 'ARC Summary', serializable=False)]),
CommandMetric('pool_status_serialized', [
Command(['zpool', 'status', '-jP', '--json-int'], 'ZFS Pool(s) Status', serializable=True)
]),
MiddlewareClientMetric('pool_query', [MiddlewareCommand('pool.query')]),
MiddlewareClientMetric(
'pool_scrub_tasks', [
MiddlewareCommand('pool.scrub.query', result_key='scrub_tasks'),
]
),
MiddlewareClientMetric(
'middleware_pool_status', [
MiddlewareCommand('zpool.status', [{'real_paths': True}], result_key='middleware_pool_status'),
]
),
PythonMetric('encryption_summary', encryption_summary),
]
raw_metrics = [
Expand Down

0 comments on commit d54a9dc

Please sign in to comment.