From 86dc495aeb7c764b8df471dc70c046d107bdd8c1 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Sun, 7 Jun 2020 17:55:52 +0200 Subject: [PATCH] Revert fsrm struct removal Signed-off-by: Calle Pettersson --- collector/fsrmquota.go | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/collector/fsrmquota.go b/collector/fsrmquota.go index 00b8b8d4..29edec20 100644 --- a/collector/fsrmquota.go +++ b/collector/fsrmquota.go @@ -7,10 +7,23 @@ import ( ) func init() { - registerCollector("fsrmquota",newFSRMQuotaCollector) + registerCollector("fsrmquota", newFSRMQuotaCollector) +} + +type FSRMQuotaCollector struct { + QuotasCount *prometheus.Desc + Path *prometheus.Desc + PeakUsage *prometheus.Desc + Size *prometheus.Desc + Usage *prometheus.Desc + + Description *prometheus.Desc + Disabled *prometheus.Desc + MatchesTemplate *prometheus.Desc + SoftLimit *prometheus.Desc + Template *prometheus.Desc } -// NewSRMQuotaCollector ... func newFSRMQuotaCollector() (Collector, error) { const subsystem = "fsrmquota" return &FSRMQuotaCollector{