Looks like ceph changed its json format for perf_stat data per osd
Change-Id: I1707f535cdd3c64a16f516a8b3ba57688580b9e1
This commit is contained in:
parent
a65d893a27
commit
50b3092fbb
@ -226,14 +226,24 @@ class CollectdCephStorage(object):
|
||||
self.dispatch_value(
|
||||
osd_id, 'num_snap_trimming', osd['num_snap_trimming'],
|
||||
self.ceph_pg_stats_interval)
|
||||
self.dispatch_value(
|
||||
osd_id, 'apply_latency_ms',
|
||||
osd['fs_perf_stat']['apply_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
self.dispatch_value(
|
||||
osd_id, 'commit_latency_ms',
|
||||
osd['fs_perf_stat']['commit_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
if 'fs_perf_stat' in osd:
|
||||
self.dispatch_value(
|
||||
osd_id, 'apply_latency_ms',
|
||||
osd['fs_perf_stat']['apply_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
self.dispatch_value(
|
||||
osd_id, 'commit_latency_ms',
|
||||
osd['fs_perf_stat']['commit_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
elif 'perf_stat' in osd:
|
||||
self.dispatch_value(
|
||||
osd_id, 'apply_latency_ms',
|
||||
osd['perf_stat']['apply_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
self.dispatch_value(
|
||||
osd_id, 'commit_latency_ms',
|
||||
osd['perf_stat']['commit_latency_ms'],
|
||||
self.ceph_pg_stats_interval)
|
||||
|
||||
def read_ceph_pool(self):
|
||||
"""Reads stats from "ceph osd pool" and "ceph df" commands."""
|
||||
|
Loading…
Reference in New Issue
Block a user