From: Afreen Misbah Date: Mon, 3 Aug 2026 21:13:39 +0000 (+0530) Subject: monitoring: show N/A for compression metrics when physical used < 100 GiB X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3961648fb2baa707a2e64a8142f4d88a2424696b;p=ceph.git monitoring: show N/A for compression metrics when physical used < 100 GiB On fresh clusters with no user data, internal metadata compresses at ~10:1, producing misleading ratio/efficiency values. Gate compression ratio, efficiency, storage saved, and ratio trend panels on physical used exceeding 100 GiB. Signed-off-by: Afreen Misbah --- diff --git a/monitoring/ceph-mixin/dashboards_out/ceph-hardware-compression.json b/monitoring/ceph-mixin/dashboards_out/ceph-hardware-compression.json index 7c1a5a51e267..c16f460bd3d2 100644 --- a/monitoring/ceph-mixin/dashboards_out/ceph-hardware-compression.json +++ b/monitoring/ceph-mixin/dashboards_out/ceph-hardware-compression.json @@ -85,7 +85,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "description": "Amount of physical storage capacity saved through hardware compression.", + "description": "Amount of physical storage capacity saved through hardware compression. Displays N/A when physical used is below 100 GiB, as small amounts of internal metadata can produce misleading values.", "fieldConfig": { "defaults": { "color": { @@ -146,7 +146,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) - sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"})", + "expr": "(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) - sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"})) and (sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) > 107374182400)", "instant": false, "legendFormat": "Storage Saved", "range": true, @@ -161,7 +161,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "description": "Ratio of logical data to physical storage after compression. Higher values indicate better compression efficiency.", + "description": "Ratio of logical data to physical storage after compression. Higher values indicate better compression efficiency. Displays N/A when physical used is below 100 GiB, as small amounts of internal metadata can produce misleading values.", "fieldConfig": { "defaults": { "color": { @@ -231,7 +231,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / clamp_min(sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 1)", + "expr": "(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / clamp_min(sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 1)) and (sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) > 107374182400)", "instant": false, "legendFormat": "Compression Ratio", "range": true, @@ -246,7 +246,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "description": "Percentage of storage capacity saved through compression. Shows cost savings and infrastructure efficiency.", + "description": "Percentage of storage capacity saved through compression. Shows cost savings and infrastructure efficiency. Displays N/A when physical used is below 100 GiB, as small amounts of internal metadata can produce misleading values.", "fieldConfig": { "defaults": { "color": { @@ -308,7 +308,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "100 * (1 - sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / clamp_min(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 1))", + "expr": "(100 * (1 - sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / clamp_min(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 1))) and (sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) > 107374182400)", "instant": false, "legendFormat": "Efficiency", "range": true, @@ -903,7 +903,7 @@ "type": "prometheus", "uid": "${datasource}" }, - "description": "Historical compression effectiveness over time. Stable trend indicates consistent workload. Declining ratios suggest more incompressible data.", + "description": "Historical compression effectiveness over time. Stable trend indicates consistent workload. Declining ratios suggest more incompressible data. No data shown when physical used is below 100 GiB.", "fieldConfig": { "defaults": { "color": { @@ -987,7 +987,7 @@ "uid": "${datasource}" }, "editorMode": "code", - "expr": "round(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 0.01)", + "expr": "(round(sum(ceph_extblkdev_dev_log_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) / sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}), 0.01)) and (sum(ceph_extblkdev_dev_phy_util{cluster=~\"$cluster\", instance=~\"$instance\", ceph_daemon=~\"$osd\"}) > 107374182400)", "instant": false, "legendFormat": "Compression Ratio", "range": true,