Merge pull request #540 from prometheus-community/fix-fsrm-build-failure

Revert fsrm struct removal
This commit is contained in:
Calle Pettersson 2020-06-07 18:06:37 +02:00 committed by GitHub
commit c9f1e5068a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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{