Revert fsrm struct removal

Signed-off-by: Calle Pettersson <carlpett@users.noreply.github.com>
This commit is contained in:
Calle Pettersson 2020-06-07 17:55:52 +02:00
parent 418b5b3ca9
commit 86dc495aeb
1 changed files with 15 additions and 2 deletions

View File

@ -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{