Skip to content

Commit

Permalink
Merge pull request rochaporto#14 from Kallio/patch-1
Browse files Browse the repository at this point in the history
Added data for a specific pool max avail bytes.
  • Loading branch information
grinapo committed Dec 3, 2016
2 parents d19e7af + fbe3ce6 commit 3b353dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ceph_pool_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_stats(self):
# push df results
for pool in json_df_data['pools']:
pool_data = data[ceph_cluster]["pool-%s" % pool['name']]
for stat in ('bytes_used', 'kb_used', 'objects'):
for stat in ('bytes_used', 'kb_used', 'objects','max_avail'):
pool_data[stat] = pool['stats'][stat] if pool['stats'].has_key(stat) else 0

# push totals from df
Expand Down

0 comments on commit 3b353dc

Please sign in to comment.