Skip to content

Commit

Permalink
df metric translations: Do not translate fs_used_percent into `fs_u…
Browse files Browse the repository at this point in the history
…sed`

Also fix df metric translations for ceph plugins.

CMK-21091

Change-Id: I29df20cb70a07351998a0827a7193c201b85e549
  • Loading branch information
jherbel committed Jan 14, 2025
1 parent 82fdd75 commit 0c7d8ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmk/plugins/ceph/graphing/df_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
PassiveCheck("cephosdbluefs_slow"),
],
translations={
"~(?!%s).*$": RenameToAndScaleBy("fs_used", MIB),
"~(?!inodes_used|fs_size|growth|trend|reserved|fs_free|fs_provisioning|uncommitted|overprovisioned|dedup_rate|file_count|fs_used_percent).*$": RenameToAndScaleBy(
"fs_used", MIB
),
"fs_used": ScaleBy(MIB),
"fs_size": ScaleBy(MIB),
"reserved": ScaleBy(MIB),
Expand Down
4 changes: 2 additions & 2 deletions cmk/plugins/collection/graphing/translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
),
"trend_hoursleft": translations.ScaleBy(3600),
"uncommitted": translations.ScaleBy(1048576),
"~(?!inodes_used|fs_size|growth|trend|reserved|fs_free|fs_provisioning|uncommitted|overprovisioned|dedup_rate|file_count).*$": translations.RenameToAndScaleBy(
"~(?!inodes_used|fs_size|growth|trend|reserved|fs_free|fs_provisioning|uncommitted|overprovisioned|dedup_rate|file_count|fs_used_percent).*$": translations.RenameToAndScaleBy(
"fs_used",
1048576,
),
Expand Down Expand Up @@ -1509,7 +1509,7 @@
),
"trend_hoursleft": translations.ScaleBy(3600),
"uncommitted": translations.ScaleBy(1048576),
"~(?!inodes_used|fs_size|growth|trend|reserved|fs_free|fs_provisioning|uncommitted|overprovisioned|dedup_rate|file_count).*$": translations.RenameToAndScaleBy(
"~(?!inodes_used|fs_size|growth|trend|reserved|fs_free|fs_provisioning|uncommitted|overprovisioned|dedup_rate|file_count|fs_used_percent).*$": translations.RenameToAndScaleBy(
"fs_used",
1048576,
),
Expand Down

0 comments on commit 0c7d8ca

Please sign in to comment.