mirror of
https://github.com/prometheus-community/windows_exporter
synced 2025-02-16 12:07:13 +00:00
Merge pull request #540 from prometheus-community/fix-fsrm-build-failure
Revert fsrm struct removal
This commit is contained in:
commit
c9f1e5068a
@ -7,10 +7,23 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
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) {
|
func newFSRMQuotaCollector() (Collector, error) {
|
||||||
const subsystem = "fsrmquota"
|
const subsystem = "fsrmquota"
|
||||||
return &FSRMQuotaCollector{
|
return &FSRMQuotaCollector{
|
||||||
|
Loading…
Reference in New Issue
Block a user