Skip to content

Commit eef9ebe

Browse files
authored
Merge pull request #361 from replicatedhq/laverya/rook-block-device-disk-stats
collect rook block device disk stats
2 parents 39cf553 + 25a92de commit eef9ebe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pkg/collect/ceph.go

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,18 @@ var CephCommands = []CephCommand{
7575
Format: "json",
7676
},
7777
{
78-
ID: "rgw-stats",
78+
ID: "rgw-stats", // the disk usage (and other stats) of each object store bucket
7979
Command: []string{"radosgw-admin", "bucket", "stats"},
8080
Args: []string{"--rgw-cache-enabled=false"},
81-
Format: "json",
81+
Format: "txt",
8282
DefaultTimeout: "30s", // include a default timeout because this command will hang if the RGW daemon isn't running/is unhealthy
8383
},
84+
{
85+
ID: "rbd-du", // the disk usage of each PVC
86+
Command: []string{"rbd", "du"},
87+
Args: []string{"--pool=replicapool"},
88+
Format: "txt",
89+
},
8490
}
8591

8692
func Ceph(c *Collector, cephCollector *troubleshootv1beta2.Ceph) (map[string][]byte, error) {

0 commit comments

Comments
 (0)