From 25521220df24912090c53e32da8e42447a5e6c1e Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Tue, 18 Jan 2022 14:14:41 +0100 Subject: [PATCH] monitoring/grafana: replace filestore osd count Signed-off-by: Pere Diaz Bou (cherry picked from commit 57c26311de9f747122720e14da8e8fea0f889632) --- .../grafana/dashboards/jsonnet/grafana_dashboards.jsonnet | 2 +- monitoring/grafana/dashboards/osds-overview.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monitoring/grafana/dashboards/jsonnet/grafana_dashboards.jsonnet b/monitoring/grafana/dashboards/jsonnet/grafana_dashboards.jsonnet index f2f6736fbe6e3..d4d19ffa0af4f 100644 --- a/monitoring/grafana/dashboards/jsonnet/grafana_dashboards.jsonnet +++ b/monitoring/grafana/dashboards/jsonnet/grafana_dashboards.jsonnet @@ -1287,7 +1287,7 @@ local addStyle(alias, colorMode, colors, dateFormat, decimals, mappingType, patt 'OSD Objectstore Types' ) .addTarget(addTargetSchema('count(ceph_bluefs_wal_total_bytes)', 1, 'time_series', 'bluestore')) - .addTarget(addTargetSchema('count(ceph_osd_metadata) - count(ceph_bluefs_wal_total_bytes)', 1, 'time_series', 'filestore')) + {gridPos: {x: 4, y: 8, w: 4, h: 8}}, + .addTarget(addTargetSchema('absent(ceph_bluefs_wal_total_bytes)*count(ceph_osd_metadata)', 1, 'time_series', 'filestore')) + {gridPos: {x: 4, y: 8, w: 4, h: 8}}, OsdOverviewPieChartPanel( {}, 'The pie chart shows the various OSD sizes used within the cluster', diff --git a/monitoring/grafana/dashboards/osds-overview.json b/monitoring/grafana/dashboards/osds-overview.json index 3e88e5910b7dc..a3c93b53d1cb8 100644 --- a/monitoring/grafana/dashboards/osds-overview.json +++ b/monitoring/grafana/dashboards/osds-overview.json @@ -477,7 +477,7 @@ "refId": "A" }, { - "expr": "count(ceph_osd_metadata) - count(ceph_bluefs_wal_total_bytes)", + "expr": "absent(ceph_bluefs_wal_total_bytes)*count(ceph_osd_metadata)", "format": "time_series", "intervalFactor": 1, "legendFormat": "filestore", -- 2.39.5