]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
monitoring/grafana: replace filestore osd count
authorPere Diaz Bou <pdiazbou@redhat.com>
Tue, 18 Jan 2022 13:14:41 +0000 (14:14 +0100)
committerErnesto Puerta <epuertat@redhat.com>
Fri, 28 Jan 2022 11:48:00 +0000 (12:48 +0100)
Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 57c26311de9f747122720e14da8e8fea0f889632)

monitoring/grafana/dashboards/jsonnet/grafana_dashboards.jsonnet
monitoring/grafana/dashboards/osds-overview.json

index f2f6736fbe6e394c42f49ff1c20be8253208cac9..d4d19ffa0af4fa96614fb6ed2f34e4020ba0dbd4 100644 (file)
@@ -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',
index 3e88e5910b7dc6516ab04e179828de904ca2a872..a3c93b53d1cb8c04fca47697c04cafbc73847825 100644 (file)
                "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",