From cc565225710625c655b88156693ad1106cea751e Mon Sep 17 00:00:00 2001 From: Xav Paice Date: Mon, 9 Oct 2023 16:53:20 +1300 Subject: [PATCH] feat: add ceph df to ceph collector (#1358) --- pkg/collect/ceph.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/collect/ceph.go b/pkg/collect/ceph.go index 3815bcda4..98fff75e5 100644 --- a/pkg/collect/ceph.go +++ b/pkg/collect/ceph.go @@ -98,6 +98,13 @@ var CephCommands = []CephCommand{ Format: "txt", DefaultTimeout: "30s", }, + { + ID: "df", // the disk usage of each pool + Command: []string{"ceph", "df"}, + Args: []string{"-f", "json-pretty"}, + Format: "json", + DefaultTimeout: "30s", + }, { ID: "osd-df", Command: []string{"ceph", "osd", "df"},