From 25a92dec56f0c0dd6fb09f65e6de606efa68b251 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Tue, 20 Apr 2021 15:38:21 -0500 Subject: [PATCH] collect rook block device disk stats this contains both max size and currently used size for each PV --- pkg/collect/ceph.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/collect/ceph.go b/pkg/collect/ceph.go index 1c6fd5d5..8978f725 100644 --- a/pkg/collect/ceph.go +++ b/pkg/collect/ceph.go @@ -75,12 +75,18 @@ var CephCommands = []CephCommand{ Format: "json", }, { - ID: "rgw-stats", + ID: "rgw-stats", // the disk usage (and other stats) of each object store bucket Command: []string{"radosgw-admin", "bucket", "stats"}, Args: []string{"--rgw-cache-enabled=false"}, - Format: "json", + Format: "txt", DefaultTimeout: "30s", // include a default timeout because this command will hang if the RGW daemon isn't running/is unhealthy }, + { + ID: "rbd-du", // the disk usage of each PVC + Command: []string{"rbd", "du"}, + Args: []string{"--pool=replicapool"}, + Format: "txt", + }, } func Ceph(c *Collector, cephCollector *troubleshootv1beta2.Ceph) (map[string][]byte, error) {